![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| hi every one am looking for the simplest way to make tow type of timers (on dellay and off dellay) using pic can any one help me thank you | |
| |
| | (permalink) | |
| Quote:
Then simply call the one second delay as many times as you need to give your required delay, using a single loop counter will give you a maximum of 255 seconds, by using two loop counters this increases to 65,535 seconds. | ||
| |
| | (permalink) |
| i want to control the time by a linear variable resistor | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| thank u mr.nigel, but could u make me a favore and send me a practical circut with a working program for it | |
| |
| | (permalink) | |
| Quote:
But everything you need is in the tutorials, I would suggest you get a PIC and have a play. For a nice simple timer, here's a (very) simple way to write the program: 1: Read A2D to get pot position. 2: Display pot value (optional). 3: Check if start button pressed. 4: Button not pressed, goto 1: 5: Delay 'pot value' number of seconds. 6: Do what ever you need to at the end of the timed period, turn an LED on, switch a relay - anything you want. 7: Goto back to 1: Hardware wise I would suggest something like a 16F818/9 or 16F876, an LCD display (to show what the time is set to, and you could make the display count down as well), a Start button, probably a Stop button, and some output device - an LED would do for testing. | ||
| |