3Bpi - Three Branch Pi


Level translator board for Raspberry Pi

Board 0508_v2



Tweet

set05_08v2 - 3Bpi set05_08 - 3Bpi on Raspberry Pi


Scheme

set05_08_v01_sch.png

Description


    This board translates bidirectionally inputs/outputs of the Raspberry Pi's GPIO from 3.3V to 5V TTL levels.

    The second revision of Raspberry Pi (indentifiable because there are two holes for mechanical subjection and an extension of the GPIO of 8 pins without terminals, P5) allows a GPIO extension soldering terminals on P5. The advantages of P5 are: 1) use of a 2nd TWI/I2C bus (if you don't use S5 for Raspberry Pi's camera) and 2) direct access to RTS and CTS signals from UART.

Rpi with P5
Rpi without P5

    3Bpi's P2 is an UART serial communication port. Through jumpers Raspberry Pi can be set as master or slave. To communicate as master without hardware flow control jumpers should be set on RX_A and TX_A. To communicate as slave jumpers should be set on RX_B and TX_B. If hardware flow control is needed jumpers should be set on CTS_A and RTS_A working as master or on CTS_B and RTS_B as slave. Using CTS and RTS is possible if Raspberry Pi's P5 connector is soldered. If P5 is not soldered (or using first revision of Raspberry Pi) levels at I2C0_SCL and I2C0_SDA can be forced through jumpers.

3Bpi - jumpers 3Bpi jumpers PCB


3Bpi - P2 P3 P4 Sch
3Bpi - P2 P3 P4 picture

    3Bpi's P3 can be used as input/output port, as I2C0 bus (P5 soldered and not using camera's S5) or as SPI3 (for instance a resistive touchscreen using two SPI chips, one for screen and other for resistive touch control).
   
   
3Bpi's P4 can be used as input/output, as TWI/I2C bus (I2C_0 in Raspberry Pi first revision and I2C_1 in second revision) or as SPI bus using SPI4.

3Bpi's video introduction:
 

Code used in this video : p4v2_01.c

Raspberry Pi using 3Bpi and set03_03 :

Code used in this video : twiDetect.c, twi01.c


Using two I2C buses on Raspberry Pi
using 3Bpi, set01_05 and set03_03:



Serial connection example using set01_03 and set01_05 :

set05_08 - 3Bpi - Serial connection

    How to set serial port on Raspberry Pi : setRs232up.html

set05_08 - 3Bpi - Silk
set05_08 - 3Bpi - Comp
set05_08 - 3Bpi - Sold

This design is based on Jim Hagerman's article, Nokia Mobile Phones, San Diego, California, entitled "Two Transistor Form Bidirectional Level Translator".

twitter
youtube
Creative Commons License Disclaimer eCat