Character LCD I2c Adapter (I2c Connection Example)
by xxreef in Circuits > Electronics
3758 Views, 20 Favorites, 0 Comments
Character LCD I2c Adapter (I2c Connection Example)

)
I'm doing a connection schema for a character display i2c adapter.
Now I add olso a wiring connection schema to use original library not my forked.
In the github project you can find schema, photo and library code.
Here a video of milled PCB derived from Fritzing breadboard schema.
Part for Original Library
![s-l1600[1].jpg](/proxy/?url=https://content.instructables.com/FP6/RI2O/JB3ZV2S7/FP6RI2OJB3ZV2S7.jpg&filename=s-l1600[1].jpg)
You can find the component for the original library (not my forked) from eBay.
Now here you can find the same connection schema that have same behavior.
Wiring Diagram: Back Light

As you can see in the wiring diagram I connect to P7 an NPN (2N2222) transistor to enable/disable backlight.
Wiring Diagram: Address


I set the address all low (you can connect It as you need, in the datasheet you can find all configuration).
I find very useful sketch that search all i2c component attached, use this to check address.
Wire Diagram: Trimmer

To select correct contrast you need to add a 10k trimmer.
Wiring Diagram: Transfer Data

Blue and yellow wire is to send data to device, I don't connect the device as original library so I must fork the lib and add some change.
Change to the Original Lib




As you can see in the image I shift some bit (right to left), and on right bit I put fixed declaration of Enable, RW, Register Select, and Back light pin.
If you want you can reconvert the schema to the original. If I find some time I'm going to do It for you (and test It) so you can use original library.
Original Lib and Connection Schema



I recreate connection schema of original library, so you can use standard library with this.
Wire Diagram: SDA SCL

Banded wire is the SDA SCL pin of my arduino.
Wire Diagram
![SchemaLCD_i2c_bb[1].png](/proxy/?url=https://content.instructables.com/FOD/ZRO5/JB3ZUS9O/FODZRO5JB3ZUS9O.png&filename=SchemaLCD_i2c_bb[1].png)


As you can see the wiring diagram is quite simple, than I try to create It on prototype board of the schema.
Prototype Board



It's not so beatiful but It's work.
Milling PCB




)

From the schema I create a PCB and I try to mill PCB with my router (I'm starting a guide how to mill PCB).
Thanks
i2c project series (Collection):