Go to Post I don't remember who said it or what the words are exactly...(I think it was Hopalong Cassidy) Don't say goodbye, just say see you later. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 05-02-2014, 01:39
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Digital Side Car Wiring Of I/O & Solenoid Output Card

Hello,

1st year mentor and under the gun. I have a few quick questions about connecting I/O to the Digital Side Car and Solenoid card
1) Encoders [US Digital E4P-250-250-N-S-D-D-B encoder (am-0174)] connect to 2 GPIO points (Channels A & B), correct?
2) Are the GPIO points both Inputs and Outputs or just Inputs?
3) Do the GPIO points use the same connectors as the premade PWM cables?
A)If so, how do we connect "extra inputs & outputs (either via the GPIO
or Relay points) that do not come w/ premade cables?
3) We are using and ultrasonic sensor (Maxbotix MB7366) that has 3 output options (Analog Voltage, PWN, Serial). Can we connect the PWN singal to a GPIO as an input or do we have to use the Analog input route?
4) We are using an electromagnet that uses 12VDC. Can we connect that directly to Solenoid Output card or should I use an interposing relay (24VDC coil) and then use a NO contact to energize the electromagnet?

Thanks all,
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2014, 09:24
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,072
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by James Lightfoot View Post
1) Encoders [US Digital E4P-250-250-N-S-D-D-B encoder (am-0174)] connect to 2 GPIO points (Channels A & B), correct?
You need 2 channels to use a quadrature encoder properly. One of the Channels will provide power in addition to being an input channel. The other is just a channel.

Quote:
2) Are the GPIO points both Inputs and Outputs or just Inputs?
GPIO means General Purpose Input/Output. Each pin can be either input or output depending on software.

Quote:
3) Do the GPIO points use the same connectors as the premade PWM cables?
A)If so, how do we connect "extra inputs & outputs (either via the GPIO
or Relay points) that do not come w/ premade cables?
Yes, PWM outputs, GPIO, Relay outputs and Analog inputs all use the same connectors.

Quote:
3) We are using and ultrasonic sensor (Maxbotix MB7366) that has 3 output options (Analog Voltage, PWN, Serial). Can we connect the PWN singal to a GPIO as an input or do we have to use the Analog input route?
The Maxbotix sensor PWM output can be read by the GPIO. There may be more coding involved than using the Analog Voltage method.

Quote:
4) We are using an electromagnet that uses 12VDC. Can we connect that directly to Solenoid Output card or should I use an interposing relay (24VDC coil) and then use a NO contact to energize the electromagnet?
It depends on how much current your electromagnet uses. If it's less than .75A, then you can use the Solenoid Breakout. If not, then you can use a Spike, which can handle up to 20A continuous.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2014, 09:35
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,736
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

A few notes for your electromagnet...

Per Q&A 217

Quote:
If the electromagnet causes movement, it is covered by R29. If the electromagnet only creates an attraction force, it is legal as long as it meets all other applicable rules.
So if your electromagnet causes movement, it's considered an electrical solenoid actuator, and per R29:

Quote:
Electrical solenoid actuators, no greater than 1 in. stroke and rated electrical input power no greater than 10 watts (W) continuous duty at 12 volts (VDC)
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2014, 18:12
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by James Lightfoot View Post
3) Do the GPIO points use the same connectors as the premade PWM cables?
A)If so, how do we connect "extra inputs & outputs (either via the GPIO
or Relay points) that do not come w/ premade cables?
4) We are using and ultrasonic sensor (Maxbotix MB7366) that has 3 output options (Analog Voltage, PWN, Serial). Can we connect the PWN singal to a GPIO as an input or do we have to use the Analog input route?
3A: Unfortunately you will have to wire it up yourself. We use 2 standard cables and cut / strip what we need, soldering the connections.

4: Strongly consider using the analog input instead. The sensor delivers a voltage that is linearly and directly proportional to distance. For example 2.56 V is 256 inches, 0.83 is 83 inches. Your voltages may vary.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2014, 03:46
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Thanks Don. I have a few quick question to clarify your last response.

3A1) For the Relay Outputs, I'm guessing that the A & B signal states [0 or 1] are controlled by the Java DigitalInput class, correct? Making pin A the PWM signal controlling a Spike Relay's FWD direction [depending on the code & wiring] a PWM signal of 1.0 to 1.5, correct?

3A2) For GPIO's, a discrete device like a Limit Switch will be "powered" by the available 5VDC on GPIO's pin 2, and the signal will connect to the GPIO's pin 1. Which leaves the GPIO's pin 3 tied to the DC Common bus,

3A3) For the Solenoid Breakout Board, the Outputs are sourcing also; hence, we would tie the Solenoid Output's + pin to the + terminal of a solenoid and the Solenoid Output's GND pin to a solenoids - terminal, correct?
I will not be surprised if tell I've all 3 of the above scenarios backwards.

4A) Will the voltage out on the "long range" ultrasonic sensor (3cm - 10m) also be linear but 5.3V = 5.3m?

Thank you very much.
Reply With Quote
  #6   Spotlight this post!  
Unread 23-02-2014, 06:56
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by James Lightfoot View Post
3A1) For the Relay Outputs, I'm guessing that the A & B signal states [0 or 1] are controlled by the Java DigitalInput class, correct? Making pin A the PWM signal controlling a Spike Relay's FWD direction [depending on the code & wiring] a PWM signal of 1.0 to 1.5, correct?
Use the Relay class - it works like this:

http://wpilib.screenstepslive.com/s/...hanisms-relays

Quote:
Originally Posted by James Lightfoot View Post
3A2) For GPIO's, a discrete device like a Limit Switch will be "powered" by the available 5VDC on GPIO's pin 2, and the signal will connect to the GPIO's pin 1. Which leaves the GPIO's pin 3 tied to the DC Common bus,
If it is a limit switch (a simple mechanical closure), connect the common and normally open (or closed) contacts on the limit switch to the ground and signal connections of a digital I/O port. Then use the DigitalInput class to read the state.

Quote:
Originally Posted by James Lightfoot View Post
3A3) For the Solenoid Breakout Board, the Outputs are sourcing also; hence, we would tie the Solenoid Output's + pin to the + terminal of a solenoid and the Solenoid Output's GND pin to a solenoids - terminal, correct?
Yes - this connection is correct. Use the Solenoid or DoubleSolenoid class to control the solenoids.

Check here: http://wpilib.screenstepslive.com/s/...ders-solenoids

and here: http://www.usfirst.org/sites/default...d_Breakout.pdf

Quote:
Originally Posted by James Lightfoot View Post
4A) Will the voltage out on the "long range" ultrasonic sensor (3cm - 10m) also be linear but 5.3V = 5.3m?
We use this one: http://www.maxbotix.com/documents/MB1020_Datasheet.pdf

The datasheets for each are on the maxbotix web site. For the MB1020 the analog number is VCC/512 per inch.

Good Luck!
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #7   Spotlight this post!  
Unread 23-02-2014, 12:33
James Lightfoot James Lightfoot is offline
Programming & Electrical Mentor
FRC #3737 (Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Wayne County, NC
Posts: 21
James Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really niceJames Lightfoot is just really nice
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by wireties View Post
If it is a limit switch (a simple mechanical closure), connect the common and normally open (or closed) contacts on the limit switch to the ground and signal connections of a digital I/O port. Then use the DigitalInput class to read the state.Good Luck!
Just so I make sure I get it:
GPIO Pin 1 to LS NO pin
GPIO Pin 3 to LS Common/Swing Point
GPIO pin 2 is not used

Correct or am I still getting it backwards?
Reply With Quote
  #8   Spotlight this post!  
Unread 23-02-2014, 16:01
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,169
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by James Lightfoot View Post
Just so I make sure I get it:
GPIO Pin 1 to LS NO pin
GPIO Pin 3 to LS Common/Swing Point
GPIO pin 2 is not used

Correct or am I still getting it backwards?

This is correct. In this case it would not matter if you were getting it backwards. The switch just shorts the signals going into the DIO port. The DIO inputs are pulled up internally so it will read '1' if pins 1 and 3 are not shorted and '0' if pins 1 and 3 are shorted.

Good luck!
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #9   Spotlight this post!  
Unread 23-02-2014, 08:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,731
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Digital Side Car Wiring Of I/O & Solenoid Output Card

Quote:
Originally Posted by James Lightfoot View Post
Making pin A the PWM signal controlling a Spike Relay's FWD direction [depending on the code & wiring] a PWM signal of 1.0 to 1.5, correct?
Just a quick additional point.
The two Relay signal pins (one for Forward, and the other for Reverse) do not output a PWM signal.
It is a simple steady voltage when on, and zero volts when off.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
Reply


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 07:30.

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