Picaxe 14M2 Switching output when no input

#1
Basically i have a program that when C.0 detects an electrical signal it should turn B.0 on which runs a relay which runs a motor. The problem isn't with the latter part but with the initial.
My 14M2 is switching B.0 on when there is no input, why is this and how can i stop this from happening?
 
#2
Basically i have a program that when C.0 detects an electrical signal it should turn B.0 on which runs a relay which runs a motor. The problem isn't with the latter part but with the initial.
My 14M2 is switching B.0 on when there is no input, why is this and how can i stop this from happening?
Have you connected the input pin you want to use to a pull-up or pull-down resistor to keep it in a stable idle state? When a pin is used as an input, it has an extremely high impedance and is very sensitive to electromagnetic fields and electrostatic discharges and will float between low and high states without any physical connection. Refer to "Input Device 1" in Manual 3.
 

hippy

Technical Support
Staff member
#3
My 14M2 is switching B.0 on when there is no input, why is this and how can i stop this from happening?
It does sound like you have a floating or unreliable input but as B.0 is the Serial Out pin it could be that it is being triggered by a SERTXD, SEROUT or DEBUG command. It cold also be that the PICAXE is seeing what it thinks is a download initiation.

Perhaps post your circuit diagram and source code.
 
#4
It does sound like you have a floating or unreliable input but as B.0 is the Serial Out pin it could be that it is being triggered by a SERTXD, SEROUT or DEBUG command. It cold also be that the PICAXE is seeing what it thinks is a download initiation.

Perhaps post your circuit diagram and source code.
In the last case the SerialIn pin could therefore be floating - if there is no permanently connected programming circuit.
 

techElder

was Texasclodhopper
#5
Try to imagine for a moment what it would be like to work on your television with a blindfold over your eyes. ... We'll wait. :D

You'll get more than guesses if you supply more than wishes.


Basically i have a program that when C.0 detects an electrical signal it should turn B.0 on which runs a relay which runs a motor. The problem isn't with the latter part but with the initial.
My 14M2 is switching B.0 on when there is no input, why is this and how can i stop this from happening?
 
Top