![]() |
Analog Breakout?
We want to use a honeywell microswitch as a ball counter to determine the amount of balls the robot is currently holding. How do we connect this up and program for it? I think we connect this to the analog breakout but I'm not sure. Thanks in advance.
http://www.usfirst.org/uploadedFiles...icroswitch.pdf |
Re: Analog Breakout?
What language are you using to program your robot? Also, you can just put that on a i/o slot on your digital sidecar, analogue breakout is more for values between 0 and 1, not high-low values.
|
Re: Analog Breakout?
We are going to program in java. And how would we connect the cables to the microswitch?
|
Re: Analog Breakout?
Then it should look something like this, probably not exactly though...
Code:
DigitalInput ballCounter = new DigitalInput(I/O slot); |
Re: Analog Breakout?
Okay, thanks
|
Re: Analog Breakout?
No problem.
|
Re: Analog Breakout?
Quote:
Red is +5 volts. Black is the power return. If the switch makes contact, it'll short out the 5 volt supply on your Digital Sidecar. The supply is protected against this, so it won't be ruined, but everything else connected to +5 will lose power for the duration of the switch activation. What you should use are the black (-) and white or yellow (signal) wires. Black goes to the Common terminal on the microswitch. The signal wire connects to either the Normally Open or the Normally Closed terminal. |
Re: Analog Breakout?
Quote:
I will add that it is IMHO good practice to use a pick to undo the red wire's clip at the female end and remove the cable and metal terminal from the plug... you could call it extra insurance against shorting. |
Re: Analog Breakout?
I apologize for the misinformation, that was how i was told to do it by last year's seniors, glad i have never put it into practice myself. Thanks for the info.
|
Re: Analog Breakout?
Quote:
|
| All times are GMT -5. The time now is 09:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi