How to interface 3.3V Digital I/O

evive 3.3V Input Output
About This Tutorial
This tutorial discusses the use of bidirectional logic shifter as 3.3V digital input and output with the help of an Arduino IDE sketch.
Tutorial Info

Components Required

ImageComponentQuantityAvailable in Kit
USB A-B Cable1


evive has two bidirectional logic level shifters which are accessible from digital pin 36 and 37 in Arduino IDE. The flow of direction is controlled by digital pin 33. evive uses 74LVC245 for level shifting.

Digital pins 36 and 37 are directly connected to the level shifter. Level shifter takes 5V input and output from the digital pins and converts them to 3.3V I/O. These 3.3V I/O pins are shown in the figure below. If you want to give 3.3V output from these pins, then you must configure digital pins 36 and 37 as output pins in Arduino IDE. You can use the IO3V3 pins as input pins anytime without configuring them as INPUT or OUTPUT. You must, however, change the state of digital pin 33 to LOW before using them as input pins.

evive 3.3V Input Output


Programming in Arduino IDE:

By changing the state of digital pin 33, you can change the characteristics of the logic shifter either as input or output. If the state of digital pin 33 is HIGH, then the IO3V3 pins act as output pins; but if the state is LOW, then they act like input pins.

evive Alert
The digital pin 33 should always be configured as output pins.


Below is the Arduino IDE sketch showing how to use the  bidirectional logic shifter as 3.3V digital input and output:

[pastacode lang=”c” manual=”%2F*%0AThis%20code%20demonstrates%20the%20use%20of%20bidirectional%20logic%20shifter%20as%203.3V%0Adigital%20output%20and%20input.%20Connect%20the%20positive%20pin%20of%20the%20LED%20to%20IO3V3%0Apin%201%20and%20negative%20pin%20to%20the%20GND.%0AThis%20code%20will%20link%20the%20LED%20using%203.3V%20digital%20output%20as%20well%20as%20read%20the%20state%20of%20LED%20and%20IO3V3%20pin%202.%0A%0AModified%20by%20Pankaj%20Kumar%20Verma%0Aon%2018%20Jan%2C%202017%0A*” message=”3.3V Digital Input-Output Example” highlight=”” provider=”manual”/]

This helped
This didn't help
Share this Tutorial
Share on facebook
Share on twitter
Share on google
Share on pinterest
Share on reddit
Share on print
Related Projects & Tutorials
All articles loaded
No more articles to load
Featured Projects
DIY Robotic Arm Bartender

This project will show you how to make your own robotic arm bartender that will make you a star host!

All articles loaded
No more articles to load
Close Menu


No mo #FOMO on the coolest project-making app out there!

Check it out RIGHT NOW on Product Hunt!
Dabble is trending on Product Hunt!
Check it out and let us know what your favorite feature is. 😉