1 / 32

Tachometer

Tachometer. -=. 4 Simple Commands. Lcd_putsf (“ Eclub welcomes u ”); // prints constant string Lcd_putchar (‘a’); // character to be printed Lcd_puts (c); // c is a variable string. What about integers ?. Convert Integer to strings Use two simple Commands

pier
Télécharger la présentation

Tachometer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tachometer

  2. -=

  3. 4 Simple Commands • Lcd_putsf(“Eclub welcomes u ”); // prints constant string • Lcd_putchar(‘a’); // character to be printed • Lcd_puts(c); // c is a variable string

  4. What about integers ?

  5. Convert Integer to strings • Use two simple Commands • Itoa(i,c) & ftoa(f,3,c)

  6. Using Itoa

  7. Result

  8. Using ftoa

  9. Result

  10. Using LCD in CVCAVR

  11. Select any Port • Use the 4 magical Functions

  12. Triggered externally • Not at regular intervals of time

  13. So Now we are able to know when the obstacle attached to the shaft comes in way • Able to display on LCD

  14. What remains ? • Calculate time at which external interrupt occurs • HOW ???

  15. HINT • Use one more Internal interrupt to get time

  16. TSOP frequency 38 Khz and frequency of IR= 405 THz (10^12) - 300 GHz (10^9) . So 38 khz is frequency is Blinking frequency

  17. Pit Falls Pit Falls • Internal Interrupts functions call themselves after specific intervals of time . Its not like C Programming that to use a function you need to call it in main program .But here time calls the function itself after time interval set by you . You need to mention anything inside main function to call interrupt after specific interval of time • Declare variables global if declaring them inside main block results in error

  18. Downloading the Software • Components distribution (When and where ) • Prelims (when , where & what to show )

More Related