|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
|||
|
|||
|
Re: Analog Breakout?
We are going to program in java. And how would we connect the cables to the microswitch?
Last edited by 2869Robotics : 27-01-2012 at 23:13. |
|
#4
|
||||
|
||||
|
Re: Analog Breakout?
Then it should look something like this, probably not exactly though...
Code:
DigitalInput ballCounter = new DigitalInput(I/O slot); Last edited by jp1247 : 27-01-2012 at 23:20. |
|
#5
|
|||
|
|||
|
Re: Analog Breakout?
Okay, thanks
|
|
#6
|
||||
|
||||
|
Re: Analog Breakout?
No problem.
|
|
#7
|
|||||
|
|||||
|
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. |
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
||||
|
||||
|
Re: Analog Breakout?
My personal preference is to fold back the power wire and heat shrink it so that the wire can't ever complete a circuit unless it's immersed in saline.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|