We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:xu4_hardware_1wire [2017/07/13 16:19]
ck.kim [Dallas 1-Wire Support]
en:xu4_hardware_1wire [2017/07/17 10:48] (current)
luke.go
Line 8: Line 8:
  
 <WRAP left round tip 70%> <WRAP left round tip 70%>
-XU3 / XU4 CON10(30 pin) All GPIO and AIN pins use VDD_IO (1.8V) for the signals. ​  +XU3 / XU4 CON10(30 pin) All GPIO and AIN pins use VDD_IO (1.8V) for the signals. ​\\ 
-level converter is required to connect the sensor.+So the level converter is required to connect the sensor. 
 + 
 +Hardkernel Shifter-Shield is not working well with multiple 1-wire devices due to a timing issue.\\ 
 +So we used Sparkfun [[https://​www.sparkfun.com/​products/​12009|Level converter board]]
 </​WRAP>​ </​WRAP>​
-\\ 
-\\ 
 \\ \\
 \\ \\
Line 25: Line 26:
 CON10 Pin 26 (XE.INT16): Level converter LV1 \\ CON10 Pin 26 (XE.INT16): Level converter LV1 \\
 Sensor signal : Level converter HV1 \\ Sensor signal : Level converter HV1 \\
 +{{:​en:​level_shifter.jpg?​nolink|}}
  
   * **Connection:​ With External-Supply**   * **Connection:​ With External-Supply**
Line 63: Line 64:
 </​code>​ </​code>​
  
-Temperature is t=27375or ​27.375 degree'​s Celsius.+Temperature is t=27375 or 27.375 degree'​s Celsius.
  
  
Line 76: Line 77:
 </​code>​ </​code>​
 Two sensors in parallel. Two sensors in parallel.
- 
-====== Change the Default GPIO pin for 1-Wire interface ====== 
-Ex) Default GPIO pin change to GPIOX.BIT19 \\ 
-Please refer to below links for details related to gpio mapping in the device-tree.\\ 
-[[https://​github.com/​hardkernel/​linux/​blob/​odroidc2-3.14.y/​include/​dt-bindings/​gpio/​gxbb.h | C2 gpio mapping in the device-tree]] \\ 
- 
-<​code>​ 
-odroid@odroid64:​~$ sudo apt-get install device-tree-compiler 
-odroid@odroid64:​~$ fdtget /​media/​boot/​meson64_odroidc2.dtb /onewire gpios 
-18 113 0 
-odroid@odroid64:​~$ fdtput /​media/​boot/​meson64_odroidc2.dtb /onewire gpios 18 111 0 
-odroid@odroid64:​~$ fdtget /​media/​boot/​meson64_odroidc2.dtb /onewire gpios 
-18 111 0 
-odroid@odroid64:​~$ sudo reboot 
-</​code>​ 
-If the reboot doesn'​t affect the dtb update, you need a hard reset(power off/on).\\ 
- 
-**Use the first number in the fdtget command output when you run fdtput command. For example, 18(0x12) is the GPIO group number.** 
- 
-DS1820 is connected to Pin #11 
- 
-Pin 1 (Left): Ground (-) 
- 
-Pin 2 (Middle): Pin #11 C2 (GPIOX.BIT19) 
- 
-Pin 3 (Right): Ground (-) 
  
en/xu4_hardware_1wire.1499932141.txt.gz · Last modified: 2017/07/13 16:19 by ck.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0