Hi I am currently designing a robotics platform that incorporates the
Beagle Bone. I have been doing a ton of research and I need to clarify
a few things. What I currently have for a plan is to use a TxB0108
level shifter to convert from 3.3V to 5V. How should I go about
attaching the Txb0108 to the expantion headers. I am thinking anyboard
with 2 2x22 headers that has jumpers from gpio pins directly to the A
inputs on the txb0108. Should I use any pull down resistors? if so how
much resistance should I use? Also if I understand correctly I just
have to put the gpio pins I am using in mode7 and then I can write a
piece of code that sets the gpio pin on the expansion port to high or
low. However I based that off of existing beagle board code as there
is not much beagle bone code that I could find. I did notice however
that the naming of the gpio pins is different on the beagle board and
bone. I'm confused on say how p8 pin 15 is named gpio1_15. is this
just one gpio pin or is it multiplexed with others? What is the
significance of the two numbers?
So. Can I assume that you plan to make all the signals you use just GPIO pins?
How many inputs?
How many outputs?
Are some of the bi-directional?
It would help to understand what you are trying to do.
If they are one direction, you can use level translating buffers instead of the TxB0108
As to a pullup or down, that is your call. What do you need the default state to be?
The significance of the numbers is they are labeled the way they are labeled in the datasheet of the processor and the schematic. There are groups of GPIO pins and then 16 pins within each group. To reference the datasheet, you need to know the signal names Or, you can use the PROC pin numbers n the SRM which correlate to the processor pin numbers.
Gerald
Thank you very much for your clarity and quick response. I am using 8
GPIO pins that in my schematic connect with no resistors to A1-A8 of a
Txb0108 Bi-directional level shifter with auto-direction sensing. B1-
B6 go to an L298 motor controller and B7,B8 act as a pulse to control
2 5v servos. I chose a bi-directional level shifter so that later I
have the choice to use it for more than just output. I noticed that on
page 2 of the txb0108 datasheet it states that when the output-enable
(OE) input is low, all outputs are placed in the high-impedance state.
If I understand correctly high impedance state means it would need a
pull down resistor to keep it low when it is supposed to be. So I have
OE set to high so I don't need pull down resistors on my outputs. For
the motor controller I intend on using 25khz pwm so I don't have to
hear an annoying 1000hz tone. Im want my default state to be off but
do I even need that?
I am not sure I have a complete picture of what you want to do. You propose a solution and you ask if the solution will work. But you have not clearly stated the problem. As I read this, you want to spin two motors.
If I just think about level shfiting the control pins, what you propose will work. As to pullups or pulldowns, pull it to the level that turns it off.
Gerald
Thank+you+for+your+help.%0D%0A%0D%0AOn+Nov+14%2C+7%3A29%C2%A0pm%2C
+Gerald+Coley+%3Cger...%40beagleboard.org%3E+wrote%3A%0D%0A%3E+I+am+not
+sure+I+have+a+complete+picture+of+what+you+want+to+do.+You+propose%0D
%0A%3E+a+solution+and+you+ask+if+the+solution+will+work.+But+you+have
+not+clearly%0D%0A%3E+stated+the+problem.+As+I+read+this%2C+you+want+to
+spin+two+motors.%0D%0A%3E+%0D%0A%3E+If+I+just+think+about+level
+shfiting+the+control+pins%2C+what+you+propose%0D%0A%3E+will+work.+As
+to+pullups+or+pulldowns%2C+pull+it+to+the+level+that+turns+it%0D%0A%3E
+off.%0D%0A%3E+%0D%0A%3E+Gerald%0D%0A%3E+%0D%0A%3E+%0D%0A%3E+%0D%0A%3E
+On+Mon%2C+Nov+14%2C+2011+at+6%3A45+PM%2C+driechers+%3Cdriechers...
%40gmail.com%3E+wrote%3A%0D%0A%3E+%3E+Thank+you+very+much+for+your
+clarity+and+quick+response.+I+am+using+8%0D%0A%3E+%3E+GPIO+pins+that
+in+my+schematic+connect+with+no+resistors+to+A1-A8+of+a%0D%0A%3E+%3E
+Txb0108+Bi-directional+level+shifter+with+auto-direction+sensing.+B1-
%0D%0A%3E+%3E+B6+go+to+an+L298+motor+controller+and+B7%2CB8+act+as+a
+pulse+to+control%0D%0A%3E+%3E+2+5v+servos.+I+chose+a+bi-directional
+level+shifter+so+that+later+I%0D%0A%3E+%3E+have+the+choice+to+use+it
+for+more+than+just+output.+I+noticed+that+on%0D%0A%3E+%3E+page+2+of
+the+txb0108+datasheet+it+states+that+when+the+output-enable%0D%0A%3E+
%3E+%28OE%29+input+is+low%2C+all+outputs+are+placed+in+the+high-
impedance+state.%0D%0A%3E+%3E+If+I+understand+correctly+high+impedance
+state+means+it+would+need+a%0D%0A%3E+%3E+pull+down+resistor+to+keep+it
+low+when+it+is+supposed+to+be.+So+I+have%0D%0A%3E+%3E+OE+set+to+high
+so+I+don%27t+need+pull+down+resistors+on+my+outputs.+For%0D%0A%3E+%3E
+the+motor+controller+I+intend+on+using+25khz+pwm+so+I+don%27t+have+to
%0D%0A%3E+%3E+hear+an+annoying+1000hz+tone.+Im+want+my+default+state+to
+be+off+but%0D%0A%3E+%3E+do+I+even+need+that%3F%0D%0A%3E+%0D%0A%3E+%3E
+On+Nov+14%2C+4%3A55+pm%2C+Gerald+Coley+%3Cger...%40beagleboard.org%3E
+wrote%3A%0D%0A%3E+%3E+%3E+So.+Can+I+assume+that+you+plan+to+make+all
+the+signals+you+use+just+GPIO%0D%0A%3E+%3E+%3E+pins%3F%0D%0A%3E+%3E+
%3E+How+many+inputs%3F%0D%0A%3E+%3E+%3E+How+many+outputs%3F%0D%0A%3E+
%3E+%3E+Are+some+of+the+bi-directional%3F%0D%0A%3E+%3E+%3E+It+would
+help+to+understand+what+you+are+trying+to+do.%0D%0A%3E+%3E+%3E+If+they
+are+one+direction%2C+you+can+use+level+translating+buffers+instead%0D
%0A%3E+%3E+of%0D%0A%3E+%3E+%3E+the+TxB0108%0D%0A%3E+%0D%0A%3E+%3E+%3E
+As+to+a+pullup+or+down%2C+that+is+your+call.+What+do+you+need+the
+default%0D%0A%3E+%3E+%3E+state+to+be%3F%0D%0A%3E+%0D%0A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A%A
%A%A%A%A%A%A%A%A%A%A%A%A%+a+few+things.+What+I+currently+have+for+a
+plan+is+to+use+a+TxB0108%0D%0A%3E+%3E+%3E+%3E+level+shifter+to+convert
+from+3.3V+to+5V.+How+should+I+go+about%0D%0A%3E+%3E+%3E+%3E+attaching
+the+Txb0108+to+the+expantion+headers.+I+am+thinking+anyboard%0D%0A%3E+
%3E+%3E+%3E+with+2+2x22+headers+that+has+jumpers+from+gpio+pins
+directly+to+the+A%0D%0A%3E+%3E+%3E+%3E+inputs+on+the+txb0108.+Should+I
+use+any+pull+down+resistors%3F+if+so+how%0D%0A%3E+%3E+%3E+%3E+much
+resistance+should+I+use%3F+Also+if+I+understand+correctly+I+just%0D%0A
%3E+%3E+%3E+%3E+have+to+put+the+gpio+pins+I+am+using+in+mode7+and+then
+I+can+write+a%0D%0A%3E+%3E+%3E+%3E+piece+of+code+that+sets+the+gpio
+pin+on+the+expansion+port+to+high+or%0D%0A%3E+%3E+%3E+%3E+low.+However
+I+based+that+off+of+existing+beagle+board+code+as+there%0D%0A%3E+%3E+
%3E+%3E+is+not+much+beagle+bone+code+that+I+could+find.+I+did+notice
+however%0D%0A%3E+%3E+%3E+%3E+that+the+naming+of+the+gpio+pins+is
+different+on+the+beagle+board+and%0D%0A%3E+%3E+%3E+%3E+bone.+I%27m
+confused+on+say+how+p8+pin+15+is+named+gpio1_15.+is+this%0D%0A%3E+%3E+
%3E+%3E+just+one+gpio+pin+or+is+it+multiplexed+with+others%3F+What+is
+the%0D%0A%3E+%3E+%3E+%3E+significance+of+the+two+numbers%3F%0D%0A%3E+
%0D%0A%3E+%3E+%3E+%3E+--%0D%0A%3E+%3E+%3E+%3E+You+received+this+message
+because+you+are+subscribed+to+the+Google%0D%0A%3E+%3E+Groups%0D%0A%3E+
%3E+%3E+%3E+%22Beagle+Board%22+group.%0D%0A%3E+%3E+%3E+%3E+To+post+to
+this+group%2C+send+email+to+beagleboard%40googlegroups.com.%0D%0A%3E+
%3E+%3E+%3E+To+unsubscribe+from+this+group%2C+send+email+to%0D%0A%3E+
%3E+%3E+%3E+beagleboard%2Bunsubscribe%40googlegroups.com.%0D%0A%3E+%3E+
%3E+%3E+For+more+options%2C+visit+this+group+at%0D%0A%3E+%3E+%3E+
%3Ehttp%3A%2F%2Fgroups.google.com%2Fgroup%2Fbeagleboard%3Fhl%3Den.%0D
%0A%3E+%0D%0A%3E+%3E+--%0D%0A%3E+%3E+You+received+this+message+because
+you+are+subscribed+to+the+Google+Groups%0D%0A%3E+%3E+%22Beagle+Board
%22+group.%0D%0A%3E+%3E+To+post+to+this+group%2C+send+email+to
+beagleboard%40googlegroups.com.%0D%0A%3E+%3E+To+unsubscribe+from+this
+group%2C+send+email+to%0D%0A%3E+%3E+beagleboard%2Bunsubscribe
%40googlegroups.com.%0D%0A%3E+%3E+For+more+options%2C+visit+this+group
+at%0D%0A%3E+%3Ehttp%3A%2F%2Fgroups.google.com%2Fgroup%2Fbeagleboard
%3Fhl%3Den.
I think I will pass on reading this one.
Gerald
Looks like Shellcode to me…
If you only need to output a signal to a 5V peripheral, just try it directly.
Most 5V stuff acknowledges a “high” from about 3V to 5V and a “low” from 0V to some 2V. Outputting 0V and 3.3V could just work without needing to shift up the signal.
Note: apparently the 3.3V GPIOs of the Beagleboard cannot source current (GPIOs are signal only)… am I right?
I guess the 3.3V GPIO inputs of the Beaglebone are not 5V-tolerant (like, for example, those “mbed.org” things).
BB signals are not even 3.3V tolerant. You must use level shifters to
interface anything what doesn't work with 1.8V logic. I used simple
MOSFET-based level shifters for i2c and they worked fine. You just
have to use transistors with low enough threshold voltage.
j.
BeagleBone is 3.3V. The other two versions are not.
Gerald
Good point. I was thinking about BeagleBoards.
j.
They can run together for sure!
Gerald