Pages: [1]   Go Down
Author Topic: NEED OF HELP!!!! CAN I USE MY 5VOLT CNC OUTPUT AS SENSOR!  (Read 718 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8821
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
God Member
*****
Karma: 2
Posts: 713
a, b = b, a+b
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

consider not using all caps, mby.
Logged


Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 619
Posts: 33974
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
if there is somebody out there that can help me...
Two knocks for yes and one knock for no.
It looks like the spirit world is your only hope if you don't post your code because only they will be able to see it and see your error.
« Last Edit: July 15, 2012, 10:38:20 am by Grumpy_Mike » Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12070
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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 
I wonder where the freewheel diode is for that solenoid valve?  It may be that somewhat more than 5V is appearing on that output as a result.  I'd suggest taking the precaution of connecting the solenoid valve output to the Arduino pin via a 10k resistor - it will then be safe against moderate over-voltage pulses.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: