Go to Post Hard work is a necessary prerequisite for luck. - Ian Curtis [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2012, 21:27
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
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   Spotlight this post!  
Unread 27-01-2012, 23:07
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
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.
__________________
"No, you can't use the Kinect to do pelvic thrusts."
  #3   Spotlight this post!  
Unread 27-01-2012, 23:10
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
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   Spotlight this post!  
Unread 27-01-2012, 23:16
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
Re: Analog Breakout?

Then it should look something like this, probably not exactly though...

Code:
 DigitalInput ballCounter = new DigitalInput(I/O slot);
As for wiring it, you're going to want to take a PWM cable, clip off the male end, and solder the red and black wires to either terminal on the switch. Then plug the PWM into the digital i/o slot on your digital sidecar in the appropriate slot, and orientation.
__________________
"No, you can't use the Kinect to do pelvic thrusts."

Last edited by jp1247 : 27-01-2012 at 23:20.
  #5   Spotlight this post!  
Unread 27-01-2012, 23:23
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Re: Analog Breakout?

Okay, thanks
  #6   Spotlight this post!  
Unread 27-01-2012, 23:24
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
Re: Analog Breakout?

No problem.
__________________
"No, you can't use the Kinect to do pelvic thrusts."
  #7   Spotlight this post!  
Unread 28-01-2012, 00:23
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Analog Breakout?

Quote:
Originally Posted by jp1247 View Post
As for wiring it, you're going to want to take a PWM cable, clip off the male end, and solder the red and black wires to either terminal on the switch.
Don't do this.

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   Spotlight this post!  
Unread 28-01-2012, 00:31
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: Analog Breakout?

Quote:
Originally Posted by Alan Anderson View Post
Don't do this.

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.
Agreed x100.

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.
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
  #9   Spotlight this post!  
Unread 17-02-2012, 22:06
jp1247's Avatar
jp1247 jp1247 is offline
No the cRio does not like aluminum!
FRC #1247 (ROK BOT)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: New Hampshire
Posts: 60
jp1247 is an unknown quantity at this point
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.
__________________
"No, you can't use the Kinect to do pelvic thrusts."
  #10   Spotlight this post!  
Unread 17-02-2012, 23:48
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Analog Breakout?

Quote:
Originally Posted by ratdude747 View Post
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.
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.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi