rsegoly Posted July 7, 2016 Posted July 7, 2016 I use smoothly such LCD on my raspberry Can I use it on Orangepi (one)? Any tutorials?
wildcat_paris Posted July 7, 2016 Posted July 7, 2016 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?)
rsegoly Posted July 8, 2016 Author Posted July 8, 2016 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
Igor Posted July 8, 2016 Posted July 8, 2016 On most boards I2C works out of the box and you don't need to install anything. Check this simple code: https://github.com/vvromanov/cb_i2c_lcd Add: I tested I2C on A10, A20, imx6, and Marvell 38x based boards with stock Armbian.
rsegoly Posted July 8, 2016 Author Posted July 8, 2016 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
rsegoly Posted July 9, 2016 Author Posted July 9, 2016 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
Recommended Posts