74Views3Replies

Author Options:

picaxe sensitivitį Answered

hi there instructables, recently I have bought a picaxe starter kit, soldered it and stuff, played with some code and leds, but now I want to make a time control, so I bought a cheepo alarm clock, desolder the piezo beeper and extended the wires so I can conect them to my picaxe, turns out its too sensitive, the pin I've set to input piks up heat fom my fingers about a centimeter away, breath too, I think it picks up grounding as a signal too, does it ment to be that sensitive or have I messed something up with soldering or the code? 

heres the code I used 

main: if pinc.4 = 1 then goto led
goto main

led: high c.1
pause 500
low c.1
pause 100
goto main

Discussions

0
mpilchfamily
mpilchfamily

5 years ago

The alarm from teh clock isn't going to be able to trigger the pin. Especially if you don't have the 2 items sharing a common ground. What you need is a circuit between the 2 that can take the signal from the buzzer and close a switch. In which case you won't need the micro controller. If you want to control something with a timer then get a RTC (Real Time Clock) module for your micro controller. Then you can set things to happen at whatever time or interval you wish. You can also do the same without the RTC but it won't be vary accurate and could become buggy over time.

0
batonas
batonas

Reply 5 years ago

what I need is time control, and when it connects to last for half an hour or so, it should be possible with picaxe, they make robots with those, I guess Im doing something wrong. any suggestions for a simple time delay?

0
mpilchfamily
mpilchfamily

Reply 5 years ago

Every pause and delay in the code takes up time. A pause of 500 is waiting 500 milliseconds. If you need it to wait half an hour before doing anything you can set the pause for 30000 and then have it perform the action you want. Like i said it won't be exact so using a RTC would be best.