slitza
Newbie level 5
- Joined
- Jan 9, 2013
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- South Africa
- Activity points
- 1,453
It won't work quite as you drew the diagram because the timer won't run if it has to switch itself on!
Also consider that the LED will drain the battery whenever it is lit...
...the classic method would be to use three timers,...
I would do it this way - simple PIC (under $1US) flashes LED briefly once per second to show it is switched on, driving a small beeper with say 1KHz bursts of tone for 250mS once every 5 minutes.
Surely this can all be done with two NE555 timer chips, or one NE556 dual-timer?...the classic method would be to use three timers...
Cool - a fellow programmer.I do have some experience programming using Delphi 7, so if there is programming involved you just upped my excitement level to do this project!
"hook it up to the computer somehow" is where the problem comes in. You write the code on your PC, but then to download it to the PIC microcontroller you need special hardware - a "PIC programmer", and they're not cheap.About the PIC processor- does it imply I need to buy a PIC processor component, hook it up to the computer somehow, write the code to execute the 5minute-beeping-procedure....
Yes, but the first two can be done with a single timer. The duty cycle just has to be set appropriately - 250mS on, 5 minutes off.The three timers are there because you need three different periods for it to work:
1. the timer to set the 5 minutes between beeps
2. the timer that is triggered by timer 1 but runs for say 250mS to set how long the beep sound should last for
3. the timer that produces the high and low signals at 200Hz to drive the speaker. (actually, 200Hz is rather low, 750Hz to 1,500Hz is a better choice)
Rethinking the whole thing...I was advised to look up every 5 minutes or my eyes will stay myopic (nearsighted). So...
Based on the diagram in my first post, would connection a third wire in parallel to the volume control and beeper fix the chicken-egg,egg-chicken ****-up? Im actually glad you took the diagram literal because that was exactly how i thought it could work!the current through the speaker would flow through the timer so between beeps, the timer wouldn't run
I am willing to learn assembly code if it is the code most often (or most preferably) used in PIC programming. On the contrary, I'm starting to think writing the timer's code in delphi will be too big for the chip. Im guessing that both of you, Brian and Godfrey, are able to write code for the PIC's- do you guys use assembly or another low level language when writing code for PIC's?If you can program in Delphi you would have no problem at all with any of the PIC languages. In view of the small amount of memory in the 10F200 which is just 256 bytes, it would be easiest to use assembly language, the programming tools are free but you would need a gadget to store it in the chip itself. Let us know what you think of my suggestions and we can work from there.
Hi BrianGodreyl....
RS-online looks good. I haven't bought from them myself yet, as it's been more convenient for me (near Cape Town) to get stuff over the counter from one of the Yebo stores. Yebo's range of goodies has shrunk alarmingly over the last few years though.I am currently looking for a local store....
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?