Logic Level Converter TXS0108E
Logic Level Converter TXS0108E
Logic Level Converter TXS0108E
Have fun!
Table of Contents
Introduction....................................................................................................3
Specifications................................................................................................4
The pinout.....................................................................................................5
How to set-up Arduino IDE............................................................................7
How to set-up the Raspberry Pi and Python...............................................12
Connecting with Uno...................................................................................13
Connecting with Raspberry Pi.....................................................................15
-2-
Introduction
A logic level converter is a circuit that is used to translate signals from one
logic level or voltage domain to another, allowing compatibility among
different ICs (integrated circuits) with different voltage requirements. It is
also called logic level shifter or voltage level translator. The level converter
can be uni-directional, where all input pins are dedicated to one voltage
domain and all output pins to the other, and bi-directional, where each
voltage domain has both input and output pins. Simply put, level converters
fix voltage incompatibility between various elements of the system. It
connects one digital circuit that uses one logic level to another digital circuit
that uses another logic level.
-3-
Specifications
» Bi-directional
» Automatic direction control
» Maximum data rates: 110 Mbps (push pull)
1.2 Mbps (open drain)
» Low voltage 1.4 to 3.6 V
» High voltage 1.65 to 5.5 V
» Dimensions: 26 x 16 mm
The A-port accepts I/O voltages varying from 1.4 V to 3.6 V. The B-port
accepts I/O voltages from 1.65 V to 5.5 V.
-4-
The pinout
The Logic Level Converter TXS0108E has 20 pins. The pinout is shown in
the following image:
The VCCA pin receives any supply voltage between 1.4 V and 3.6 V. The A
port tracks the VCCA pin supply voltage. The VCCB pin receives any supply
voltage between 1.65 V and 5.5 V. The B port tracks the VCCB pin supply
voltage. Two 0.1mF capacitors are recommended between the VCC
connectors and GROUND.
-5-
GROUND is connected to both devices. And OE (Output Enable) is
connected to VCCA (the lower voltage) through a 10 kOhm pullup resistor.
-6-
How to set-up Arduino IDE
If the Arduino IDE is not installed, follow the link and download the
installation file for the operating system of choice.
For Windows users, double click on the downloaded .exe file and follow
the instructions in the installation window.
-7-
For Linux users, download a file with the extension .tar.xz, which has to
be extracted. When it is extracted, go to the extracted directory and open
the terminal in that directory. Two .sh scripts have to be executed, the first
called arduino-linux-setup.sh and the second called install.sh.
To run the first script in the terminal, open the terminal in the extracted
directory and run the following command:
sh arduino-linux-setup.sh user_name
user_name - is the name of a superuser in Linux operating system. A
password for the superuser has to be entered when the command is
started. Wait for a few minutes for the script to complete everything.
The second script, called install.sh, has to be used after the installation
of the first script. Run the following command in the terminal (extracted
directory): sh install.sh
-8-
After the installation of these scripts, go to the All Apps, where the
Arduino IDE is installed.
Almost all operating systems come with a text editor preinstalled (for
example, Windows comes with Notepad, Linux Ubuntu comes with
Gedit, Linux Raspbian comes with Leafpad, etc.). All of these text
editors are perfectly fine for the purpose of the eBook.
Next thing is to check if your PC can detect an Arduino board. Open freshly
installed Arduino IDE, and go to:
Tools > Board > {your board name here}
{your board name here} should be the Arduino/Genuino Uno, as it can
be seen on the following image:
-9-
The port to which the Arduino board is connected has to be selected. Go to:
Tools > Port > {port name goes here}
and when the Arduino board is connected to the USB port, the port name
can be seen in the drop-down menu on the previous image.
- 10 -
If the Arduino IDE is used on Windows, port names are as follows:
- 11 -
How to set-up the Raspberry Pi and Python
For the Raspberry Pi, first the operating system has to be installed, then
everything has to be set-up so that it can be used in the Headless mode.
The Headless mode enables remote connection to the Raspberry Pi,
without the need for a PC screen Monitor, mouse or keyboard. The only
things that are used in this mode are the Raspberry Pi itself, power supply
and internet connection. All of this is explained minutely in the free eBook:
Raspberry Pi Quick Startup Guide
- 12 -
Connecting with Uno
An example of the usage of Logic Level Converter with the Uno is shown on
the following connection diagram:
- 13 -
The Logic Level converter is connected to the Uno and to the 84x48 LCD
Display. The operating voltage for 84x48 LCD Display is 3.3V and for Uno it
is 5V, so the Logic Level Converter is needed to prevent damaging the
devices.
For those who want to know more about the devices or look for an example
sketch, there is a Quick Start Guide for 84x48 LCD Display on our AZ-
Delivery website.
- 14 -
Connecting with Raspberry Pi
The Logic Level Converter is connected to the Raspberry Pi and to the I2C
adapter which is connected with 20x04 Green LCD Screen. The operating
voltage for I2C adapter is 5V and for Raspberry Pi it is 3.3V, therefore the
Logic Level Converter is needed, otherwise Raspberry Pi can be damaged.
For those who want to know more about the devices or look for a Python
example script, there is a Quick Start Guide for 20x04 Green LCD with I2C
adapter on our AZ-Delivery website.
- 15 -
Now it is the time to learn and make your own projects. You can do that with
the help of many example scripts and other tutorials, which can be found on
the Internet.
If you are looking for the high quality products for Arduino and
Raspberry Pi, AZ-Delivery Vertriebs GmbH is the right company to get
them from. You will be provided with numerous application examples,
full installation guides, eBooks, libraries and assistance from our
technical experts.
https://az-delivery.de
Have Fun!
Impressum
https://az-delivery.de/pages/about-us
- 16 -