• Content Count

  • Joined

  • Last visited

About dwood

  • Rank

Profile Information

  • Gender
  • Location
    Chicago, IL
  1. The main utility to read and write GPIO pins on Raspian is /usr/local/bin/gpio. It was written by Gordon Henderson (http://wiringpi.com) and also comes with an api library suitable for C/C++ development. A couple of years ago I found an excellent version ported for the Orange Pi (https://github.com/zhaolei/WiringOP.git). The one thing that they both do is set the SUID bit on the GPIO utility, thus allowing any user to run it.
  2. I did the kernel upgrade to 3.4.113-sun8i on my Orange Pi One three days ago and did not have any problems. I don't have the i2c driver in my modules.conf file and don't think it was there in the initial Armbian install. Do you know if your old Orange Pi Zero install included this line? The following is the contents of my modules.conf: # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. 8189es #gpio_sunxi w1-sunxi w1-gpio w1-therm #gc2035
  3. data needs to go on GPIO 26, which is physical pin 37. Additionally, need to make sure you have a 4.7k resistor tied to your data and 3.3v legs.
  4. Hi Radim - Your CRC check fails as indicated by the word NO. Your code should first check to make sure it says YES before attempting to read the value. In my experience, any one of the following is likely to produce a CRC failure: 1. faulty wiring connection (loose wire, wrong terminals, etc) 2. wrong/bad resistor 3. bad/faulty DS18B20 chip. Can you reproduce with a different one? Hope that helps.
  5. Point taken - just wanted to point out the importance of validating the pin orientation.
  6. I have the same Wiring Orange Pi you referenced on my DS18b20 application and have no compatibility issues. I did however, have a lot of difficulty when migrating my application from the Raspberry Pi, but in the end it was the result of stupid mistakes on my part. My pin out is as follows: Data -> pin 37 3.3v -> pin 17 GND -> pin 9 4.7k resistor tied to data and 3.3v leads. Uncomment the lines I mentioned earlier, and everything is golden. Also, make certain that you are correctly referencing pin 1!!! The 40 pin header is oriented 180 degrees different than the Raspberry Pi. One way to know that you've made that mistake is that your probe will probably get very hot as your data pin that was supposed to be on pin 37 is now on pin 4 and is now drawing 5V!
  7. you do not need to uncomment the gpio_sunxi line - just the lines beginning with w1- I have the following line in my config scripts and that's all I need: sed -i 's/#w1/w1/g' /etc/modules followed by a reboot....