Go Down

Topic: NEED OF HELP!!!! CAN I USE MY 5VOLT CNC OUTPUT AS SENSOR! (Read 777 times) previous topic - next topic

rexcobey1

Hi,

I'm newbie about electronic and i don't know if i can used my cnc out that gives 5volts as sensor?
Here is what would like to make.

i have a cnc oxygen fuel machine that have a solenoid valve that hook up in cnc out. when my cnc machine trigger to open the solenoid valve the output give 5 volts to open that valve.

my question is can i use this 5volt as sensor to arduino uno.

Thanks 

johnwasser

If it's a signal that switches between (near) 0V and (near) 5V you can read it with a digitalRead(). Make sure that the signal ground is connected to the Arduino ground.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

rexcobey1


If it's a signal that switches between (near) 0V and (near) 5V you can read it with a digitalRead(). Make sure that the signal ground is connected to the Arduino ground.


Sorry but i don't get it. please give more details because i don't know where to put the positive 5volts.

Thanks

rexcobey1


If it's a signal that switches between (near) 0V and (near) 5V you can read it with a digitalRead(). Make sure that the signal ground is connected to the Arduino ground.


johnwasser thanks i finally get it and try and its working the only problem now is the code, i think there is something wrong about my code.
if there is somebody out there that can help me...

thanks 

johnwasser



If it's a signal that switches between (near) 0V and (near) 5V you can read it with a digitalRead(). Make sure that the signal ground is connected to the Arduino ground.

johnwasser thanks i finally get it and try and its working the only problem now is the code, i think there is something wrong about my code.
if there is somebody out there that can help me...


It will be hard to help unless you show your code.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up