Hello there,
Complete beginner here.
I'm trying to flip a bistable relay with set and reset 5VDC coils from a momentary button push switch. The code I have put together seems to work to the extent that I can alternately turn on a couple of LEDs (instead of a Darlington driver and relay), but instead of briefly turning on, they remain illuminated until the switch is again pressed.
Curiously, when I run the simulator, it seems to function correctly with the outputs going high only when the input goes low.
My momentary switch has a debounce network ( 0,47uF cap, 560R and 10K resistors) series-paralleled across it and brings pin 3 low when pressed. The Picaxe 08-M2 controller is mounted on a suitable proto board.
I'd be grateful for any help.
Regards,
Complete beginner here.
I'm trying to flip a bistable relay with set and reset 5VDC coils from a momentary button push switch. The code I have put together seems to work to the extent that I can alternately turn on a couple of LEDs (instead of a Darlington driver and relay), but instead of briefly turning on, they remain illuminated until the switch is again pressed.
Curiously, when I run the simulator, it seems to function correctly with the outputs going high only when the input goes low.
My momentary switch has a debounce network ( 0,47uF cap, 560R and 10K resistors) series-paralleled across it and brings pin 3 low when pressed. The Picaxe 08-M2 controller is mounted on a suitable proto board.
I'd be grateful for any help.
Regards,
Attachments
-
73.7 KB Views: 14