0
rsegoly

Solved [Solved in later thread] 16X2 lcd I2C

Recommended Posts

I am currently using 16x2 LCD with arduino, so I guess, it should be almost the same. find the 2 wire I2C pins on OPi, I guess you could adapt your RPi program for the OPi one pins (if not the same ones, maybe it is a compatible header?)

Share this post


Link to post
Share on other sites

I tried using same procedure i do for raspberry

 

sudo nano /etc/modprobe.d/raspi-blacklist.conf - Adding (needed on Orangepi?)

blacklist spi-bcm2708

#blacklist i2c-bcm2708

 

sudo nano /etc/modules

snd-bcm2835

i2c-dev

 

sudo apt-get install i2c-tools

sudo apt-get install python-smbus

sudo adduser pi i2c (no such group created on Orange)

Reboot

 

Edit /boot/config.txt and add the text

dtparam=i2c1=on

dtparam=i2c_arm=on

LCD PI

wget https://bitbucket.org/MattHawkinsUK/rpispy-misc/raw/master/python/lcd_i2c.py

 

 And run the script

 

Failed

Share this post


Link to post
Share on other sites

I am not such expert. so any support will be welcomed

I do not see i2c package  loaded at all lsmod

The above script gives error

Share this post


Link to post
Share on other sites

I can see the iec device on 0x27

But running python script gets this result

 

Traceback (most recent call last):
  File "lcd_i2c.py", line 135, in <module>
    lcd_byte(0x01, LCD_CMD)
  File "lcd_i2c.py", line 83, in lcd_byte
    bus.write_byte(I2C_ADDR, bits_high)
IOError: [Errno 70] Communication error on send

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
0