Jump to content

pastito

Members
  • Posts

    5
  • Joined

  • Last visited

  1. Thank you guys for your answers! I am a very seasoned linux sysadmin (been working on it since 1995). It does not seem to be worth the effort to create an overlay to make the bus work since twi1 is working. I will investigate overlays though... when I have a few spare cycles. So far I was able to port everything that I had running on the raspberry pi into the orange pi with Armbian. That is a DS18B0 digital thermometer, a 4 channel optically coupled relay board, an LDR with a 1uF to check light levels and the ADS1115 with 4 hygrometers. Everything is working great. Plus I was able to install apache / PHP / rrdtool and it is generating beautiful graphics on a ramdisk and sync'in the data once a day (in order not to burn the flash quickly). My experience has been very pleasant thanks to you. I was afraid of buying the orange pi as everybody on the internet is talking that it has poor support and that it is hard to do some things on it. Well in my experience y only took a few hours to make it work and it is a great value. I will probably buy a few more powerful ones to create other projects... my gardening setup is almost ready for deployment! I am waiting for the solenoid water valves and need to write some watering code based on humidity statistics! Thanks and regards
  2. Thank you for the information. Now I was trying to set that up, but I cannot seem to find /boot/config.txt in Armbian there is only /boot/armbianEnv.txt I added the following lines: dtparam=i2c_arm=on dtoverlay=ads1115 dtparam=cha_enable dtparam=chb_enable dtparam=chc_enable dtparam=chd_enable dtparam=cha_enable,cha_cfg=0A Then I compiled with mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr And rebooted, but still no luck. It does not work. I see the following error in dmesg [ 82.263791] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x76) [ 82.264134] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x77) Any ideas? Thanks!
  3. It works nicely, thank you! Here is a hygrometer connected to port 2 root@orangepilite:~/Adafruit_Python_ADS1x15/examples# ./test.py Reading ADS1x15 values, press Ctrl-C to quit... | 0 | 1 | 2 | 3 | ------------------------------------- | 5460 | 4780 | 25822 | 25822 | | 5716 | 4770 | 25823 | 6356 | Now I wonder why I can only use I2C bus 1 (twi1 --GPIO pins PA19 and PA18--) and not 0 (twi0 --PA11 and PA12--) I also tested this on Raspberry Pi 3 rev B and works nicely too. Thanks and regards
  4. Hi, I am having doubts on how to use I2C ADS1115 unit on Orange Pi Lite. I already have I2C module and tools installed (see below). Thing is, where do I get the Phyton library to make use of it? Are there any examples? The other question is about wiring. When I connect to twi0 I cannot see the I2C device: root@orangepilite:~# i2cdetect -y twi0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- But when I connect to twi1 a 48 appears (I believe that is the device address) root@orangepilite:~# i2cdetect -y twi1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- How do you read that? As i2cget returns 0x00 root@orangepilite:~# i2cget -y twi1 0x48 0x00 Thanks and Regards
  5. Hi I am new in the forum and the happy owner (as of yesterday) of an Orange Pi Lite. Nice little board. I managed to install Armbian server, configure Wi-Fi upgrade and install apache / php and mrtg. I also was able to enable one wire protocol to play around with a DS18B20 thermometer. My idea is to create an automated garden watering system with nice stats (graphs) I already have a 4 channel relay board (to connect solenoid water valves), a DS18B20 to sense temperature, an LDR to graph sunlight hours and 4 hygrometers --moisture sensors--. Those I want to connect through an I2C ADS1115 ADC module (which I also already have). I have never done a project like this one so I will be searching the forums a lot and probably be asking silly questions. I also noticed that the H3 processor gets really hot even whithout heavy load, so I installed a small heat sink. Thank you for reading! Regards
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines