lil program help..
okemoabe
Posts: 12
I have designed a countdown device and have already wrote functions,·'highTone' , 'lowTone' and 'Vibrate' for it.
I need someone to sample me a BS2 coding idea·that·will make the device·to;
···--·produce 'lowTone'·from·count=1500 down to count=700 and then
·· -- make ('highTone'·+ 'Vibrate') at·count < 700.
Using IF, THEN, WHILE, FOR , NEXT, DO UNTIL·etc for PBASIC is a big problem for me as the logic ended up giving me a deadlock now.
Thanx in advance
I need someone to sample me a BS2 coding idea·that·will make the device·to;
···--·produce 'lowTone'·from·count=1500 down to count=700 and then
·· -- make ('highTone'·+ 'Vibrate') at·count < 700.
Using IF, THEN, WHILE, FOR , NEXT, DO UNTIL·etc for PBASIC is a big problem for me as the logic ended up giving me a deadlock now.
Thanx in advance
Comments
or
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Simple Servo Tester, a kit from Gadget Gangster.
Post Edited (W9GFO) : 4/1/2010 6:17:07 AM GMT
Can u show me how to run them concurrently with 'Vibrate' at count < 700...
What is vibrate? Is it a typical DC motor with a counterweight? Or something else?
If it's just a DC motor, you'll obviously need at least a trasnsistor or relay to drive it off one BS pin. Then you'd just turn on the pin with OUT and then gusub hightone.
The pin stays ON, while your hightone routine oscillates the speaker.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.