Jump to content

Recommended Posts

Posted

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?)

Posted

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

Posted

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

Posted

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
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines