Jump to content

Thomas Pfeiffer

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Thomas Pfeiffer

  1. Update - solved! :-) I added param_w1_pin=PG11 to /boot/armbianEnv.txt - now it works.
  2. Thanks very much for helping, martinayotte! cat /proc/device-tree/soc/pinctrl@01c20800/w1_pins/pins PG11 So this seems to be correct. cat /boot/armbianEnv.txt [...] overlay_prefix=sun8i-h3 overlays=i2c0 i2c1 i2c2 usbhost1 usbhost2 w1-gpio [...] I added w1-gpio by using armbian-config. I tried armbian-add-overlay as well (mentioned in https://docs.armbian.com/User-Guide_Allwinner_overlays/ ): armbian-add-overlay w1-gpio.dts Error: dtc does not support compiling overlays Please try to install matching kernel headers Thanks in advance! Thomas
  3. I think that's not the case: dtc -I dtb -O dts sun8i-h3-w1-gpio.dtbo.orig > orig.dts dtc -I dtb -O dts sun8i-h3-w1-gpio.dtbo.new > new.dts diff orig.dts new.dts 12c12 < pins = "PD14"; --- > pins = "PG11"; The real file name in /boot/dtb/overlay/ is sun8i-h3-w1-gpio.dtbo. :-)
  4. Is there a difference to the NanoPi NEO Air? I tried to setup W1 with my NanoPi NEO Air (Rev 1.0) but i failed. I changed pins to "PG11" in /boot/dtb/overlay/sun8i-h3-w1-gpio.dtbo (and in sun7i*w1 and sun4i*w1 as well), but W1 remains on gpio-110: cat /sys/kernel/debug/gpio gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl: gpio-10 ( |nanopi:blue:status ) out hi gpio-110 ( |w1 ) in lo To be sure, i double checked the new dtbo files by decompiling them again. Kernel: Linux nano01 4.14.65-sunxi #1 SMP Mon Aug 20 08:45:20 CEST 2018 armv7l GNU/Linux Do you have some hints for me? Best regards, Thomas
  5. I ordered two NanoPi NEO Air on November 19th, 2016 which did not come with any wifi antennas. But great to hear that they are adding an antenna now! :-)
  6. There's no wifi antenna included. I bought an internal wifi antenna ( https://www.aliexpress.com/wholesale?SearchText=wifi+antenna+internal) which works fine.
  7. If PWM does not work with the NanoPi NEO Air, maybe you could use the 16 channel PWM device PCA9685? (Just as a work around. :-) )
  8. According to the website linked above, 1-wire should work up to 500 m. If your circuit fails at 10 m, there's something wrong with your wiring, resistors, devices, ... - so i'd aim to fix the root cause rather than trying to initialize a second 1-wire bus. My suggestion is to do some experiments with different pull-up resistors.
  9. I use a DS18B20 with about 30 m twisted pair cable. As far as i remember, my pullup resistor is about 1K. Maybe you could give it a try and check if a 1K resistor is working? You can find more information here: https://www.maximintegrated.com/en/app-notes/index.mvp/id/148
  10. Have you already measured the current with an amperemeter? This should give you some hints on the fuse to use.
  11. Ah, sorry, my fault - all i said above is for a 3.4.something kernel (armbian's and friendlyarm's default images).
  12. As far as i remember, i just had to install the i2c-tools (and made i2c available for python as well). Unfortunately, not all my i2c devices were recognized properly. So i use Friendlyarm's Ubuntu, where i2c works fine. (I used the same breadboard for both Armbian and Ubuntu, so it was not a hardware issue.) apt-get install i2c-tools -y apt-get install python-smbus -y
  13. First sorry for starting a similar thread here and in [1]. I try to read a DS18B20, which does not work with Armbian, DietPi, and Friendlyarm's Ubuntu. This morning, my idea was to slow down the CPU - and it worked. In detail: By running some useless cpu consuming python scripts, reading the DS18B20 works fine. As soon as i stop them, reading the sensor immediately fails. So there might be some timing issues in the implementations of w1-gpio and w1-gpio-board. Are there any hints how i can get these issues fixed? Thanks! Thomas [1] http://www.friendlyarm.com/Forum/viewtopic.php?f=47&t=393
  14. Hi, was it really working or did you just see the 1-wire device in the filesystem? I tried to use a DS18B20 as well, but i failed when reading the device. For more details see: http://www.friendlyarm.com/Forum/viewtopic.php?f=47&t=393 I got the same error message on both Armbian and Friendly Arm's Ubuntu. On the other hand, when i connect the same circuit to a Raspberry Pi, everything works fine. So my question: Is there anybody here who successfully gets data from a DS18B20 using a NanoPi NEO Air? Thanks and best regards, Thomas
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines