|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
I can't find it in any documentation, but I just remembered this, and thinking it was counterintuitive.
|
|
#2
|
||||
|
||||
|
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
|
||||
|
||||
|
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. Last edited by Thad House : 27-12-2013 at 17:25. |
|
#4
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
Quote:
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
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
Quote:
Here's the schematic. http://www.usfirst.org/uploadedFiles...matic%20v7.pdf |
|
#6
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
Quote:
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
|
||||
|
||||
|
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.
|
|
#8
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
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
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
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
|
|||
|
|||
|
Re: 3V3 digital signal to the cRIO
Quoting this because I'd recommend it in most generic situations.
|
|
#12
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
Quote:
.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
|
||||
|
||||
|
Re: 3V3 digital signal to the cRIO
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|