Pages: [1]   Go Down
Author Topic: SMC Auto Switch for pneumatic ram  (Read 846 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi.
I just got a SMC pneumatic ram with two Auto switches to sense when its at at either end of its stroke.
I was hoping to connect these with the arduino but have a question.
I have looked up the data sheet for the auto switch.
Its a D-M9P. have included some basic specs and a wiring diagram.
my question is...

because i wont be connection it to a plc. do i need to put those resistors and diode in before connecting to my arduino?
and if so what resistors and diode should i use.

thanks
fulstop


* photo-1.PNG (254.36 KB, 960x640 - viewed 12 times.)

* photo.jpg (82.31 KB, 960x640 - viewed 15 times.)
Logged

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

My best guess would be Blue to Ground, Brown to +5, and Black to a data input pin.  Measure the voltage between Blue and Black with the switch ON and OFF.  If it's always LOW (near 0), add a 10K pull-up resistor between Black and +5.
Logged

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

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

I tried connecting it in the way you suggested. But to an Independant power source.
I got 0v and pretty much 5v respectively. Also a led lit up on the switch when it was on.
Do I need to put a current limiting resistor or some protection for the arduino?
Thanks
Logged

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

Do I need to put a current limiting resistor or some protection for the arduino?

You don't need current limiting for inputs, just outputs.
Logged

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

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

Thank!
Logged

Pages: [1]   Go Up
Jump to: