Go to Post So once and a while no matter how addicted you may be, try to think outside the 48'x24' box of FIRST. - Tytus Gerrish [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-12-2013, 16:22
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by Joe Ross View Post
correct



Where did you get that information?
I can't find it in any documentation, but I just remembered this, and thinking it was counterintuitive.
  #2   Spotlight this post!  
Unread 27-12-2013, 17:00
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: 3V3 digital signal to the cRIO

If all else fails you could always make up a converter with any open collector transistor. Off the top of my head a MPSA14 or MPSA13 would work very nice to change the 3.3 to 5 volt. All you need is to drive the base with the 3.3 logic and then use a 4.7K pullup to cRIO 5 volts on the collector. Be sure to use a common ground between the PI and cRIO.
  #3   Spotlight this post!  
Unread 27-12-2013, 17:23
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,103
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: 3V3 digital signal to the cRIO

You actually DO NOT want to directly connect a pin on the Pi to a pin on the Sidecar. The sidecar has an internal pullup to 5V in it. Putting that 5V to the Pi could destroy the Pi. Either a Pull down, voltage divider, or logic converter would be needed in order to protect the Pi. The CRIO can take up to i think 24v on an input, so no need to worry about damaging the CRIO at the levels you are using.

That 5V comes from the Sidecar even if it is set as an input, so it needs to be worked out even if the CRIO is set as input.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.

Last edited by Thad House : 27-12-2013 at 17:25.
  #4   Spotlight this post!  
Unread 27-12-2013, 20:01
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by sst.thad View Post
You actually DO NOT want to directly connect a pin on the Pi to a pin on the Sidecar. The sidecar has an internal pullup to 5V in it. Putting that 5V to the Pi could destroy the Pi. Either a Pull down, voltage divider, or logic converter would be needed in order to protect the Pi. The CRIO can take up to i think 24v on an input, so no need to worry about damaging the CRIO at the levels you are using.

That 5V comes from the Sidecar even if it is set as an input, so it needs to be worked out even if the CRIO is set as input.
That could be true. I am kind of comparing to the BASIC stamp which has 5v I/O. Just stay safe and buy a cheap level shifter. $5 could save you from buying more $35 RPis, so being safe-than-sorry would also be the cheaper way in this case.

Is that true that the pin is held up? That reduces some of the nightmares I have, about limit switches having the pins floating, so thanks
  #5   Spotlight this post!  
Unread 27-12-2013, 20:06
Thad House Thad House is online now
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,103
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by yash101 View Post
That could be true. I am kind of comparing to the BASIC stamp which has 5v I/O. Just stay safe and buy a cheap level shifter. $5 could save you from buying more $35 RPis, so being safe-than-sorry would also be the cheaper way in this case.

Is that true that the pin is held up? That reduces some of the nightmares I have, about limit switches having the pins floating, so thanks
Yeah they include a 10k Pullup to 5V inside the sidecar.

Here's the schematic.
http://www.usfirst.org/uploadedFiles...matic%20v7.pdf
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #6   Spotlight this post!  
Unread 27-12-2013, 20:24
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by sst.thad View Post
Yeah they include a 10k Pullup to 5V inside the sidecar.

Here's the schematic.
http://www.usfirst.org/uploadedFiles...matic%20v7.pdf
Thank you sst_thad I forgot about the 10K inside the sidecar. Using the MPSA transistor will work just fine in an open collector configuration to change the Pi 3.3 V to the cRIO 5 V level.

Just as a side note, I have a 5 volt micro computer stand alone system that is used to drive an 'H' bridge that runs at 24 volts with no problems handling the two voltages.

As long as you use the transistor between the Pi and Digital side car no problem as the transistor will act as the buffer between the two.
  #7   Spotlight this post!  
Unread 27-12-2013, 20:38
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 3V3 digital signal to the cRIO

Are you talking about this excerpt (attached below)? It shows a set of pull-up resistors connected to the I/O.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2013-12-27 at 6.36.23 PM.png
Views:	28
Size:	55.4 KB
ID:	15664  
  #8   Spotlight this post!  
Unread 27-12-2013, 20:55
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by yash101 View Post
Are you talking about this excerpt (attached below)? It shows a set of pull-up resistors connected to the I/O.
That's the one and you are interested in the GPIO [1-14] as they are the digital inputs on J26 for the Rev 7 digital sidecar. You made me pull out my book.
  #9   Spotlight this post!  
Unread 27-12-2013, 21:27
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: 3V3 digital signal to the cRIO

Here is section of my ‘H’ bridge that is driven by TTL 5 volt logic and then will either source B+ (24 volts) or sink the 24 volts.

The TTL control signals are on the right hand side and called;
COL3 when logic high will source B+ (24 volts) through Q11 (TIP127)
With the help of Q33 (MPSA14) that is used an a inverted in this case.

COL3’ when logic high will sink the B+ through Q22 (TIP122)

Just a side note here, NEVER put a logic high on both COL3 and COL3’ at the same time as it will create a short from B+ to ground and blow the fuse F11.


For your application all you need is COL3 (Output from PI) R22 (220ohm) R55 (1K) and Q33 (MPSA14). The point where Q33 connects to R33 is not needed but instead would go GPIO [1-14] on the digital side card.

So just three parts and your Pi can talk to your cRIO. I am sure there is a I/C chip that will also work but I don’t have my data books handy.

If you need more help just ask.

The other picture is the actual boards in the project.
Attached Thumbnails
Click image for larger version

Name:	H bridge section.JPG
Views:	27
Size:	723.3 KB
ID:	15665  Click image for larger version

Name:	Clock.JPG
Views:	32
Size:	1.24 MB
ID:	15666  
  #10   Spotlight this post!  
Unread 27-12-2013, 23:55
nuttle nuttle is offline
Registered User
AKA: Allen Nuttle
FRC #4080
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: United States
Posts: 104
nuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud ofnuttle has much to be proud of
Re: 3V3 digital signal to the cRIO

A couple of other possibilities:

-- Use an analog input, instead of a digital one (via the analog breakout board, I mention this mainly in case someone comes along, reads this, and wants something easy and quick)

-- Use an opto-isolator (this not only level shifts, but avoids potential problems with ground loops -- you probably don't need to worry about this, but it is very good to be aware of and on the lookout for this type of problem)
  #11   Spotlight this post!  
Unread 28-12-2013, 00:05
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,413
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by nuttle View Post
-- Use an opto-isolator (this not only level shifts, but avoids potential problems with ground loops -- you probably don't need to worry about this, but it is very good to be aware of and on the lookout for this type of problem)
Quoting this because I'd recommend it in most generic situations.
__________________
Be Healthy. Never Stop Learning. Say It Like It Is. Own It.

Like our values? Flexware Innovation is looking for Automation Engineers. Check us out!
  #12   Spotlight this post!  
Unread 28-12-2013, 02:10
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by nuttle View Post
A couple of other possibilities:

-- Use an analog input, instead of a digital one (via the analog breakout board, I mention this mainly in case someone comes along, reads this, and wants something easy and quick)

-- Use an opto-isolator (this not only level shifts, but avoids potential problems with ground loops -- you probably don't need to worry about this, but it is very good to be aware of and on the lookout for this type of problem)
An opto-isolator is a splendid idea that will almost always work. Why did someone not already bring it up?!?! Kudos to you .

Using an analog signal would be getting a little off from what we want here. For something like the raspberry pi or propeller would be hard to interface with a DAC/ADC couple. On the RPi, I don't know if you'd even have enough GPIO!
  #13   Spotlight this post!  
Unread 28-12-2013, 08:34
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: 3V3 digital signal to the cRIO

Quote:
Originally Posted by yash101 View Post
An opto-isolator is a splendid idea that will almost always work. Why did someone not already bring it up?!?! Kudos to you .

Using an analog signal would be getting a little off from what we want here. For something like the raspberry pi or propeller would be hard to interface with a DAC/ADC couple. On the RPi, I don't know if you'd even have enough GPIO!
I think the idea behind the analog inputs is to use the analog module on the cRIO because it doesn't have a pull up resistor like the digital ones do. You can make the analog input behave like a digital input and return true if the voltage is above 2v, and false if it is below, without having to worry about the pullup resistor to 5v.
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 12:35.

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