跳到主要內容

1 wire DS2431 setup on raspberry pi

precursor:

The January 2015 Raspbian release, with Pi 2 support, switches to a new kernel (3.18), and includes a configuration change to enable Device Tree support by default.  

use sudo raspi-config to enable I2C in Advanced Options > I2C.

Now we start:


Here we are using 1-wire eeprom DS2431 as example, with 2k2 resistor as pull up to 3v3 Vcc.

We chose GPIO25 of BCM, ( which is  wiringPi Pin6) as I/O pin of DS2431


referring to https://www.raspberrypi.org/forums/viewtopic.php?p=518859#p518859




step 1
sudo su -


In /boot/config.txt need to be add following line:

dtoverlay=w1-gpio,gpiopin=25

>>> reboot

step 2
before modprobe:


sudo su -
modprobe w1-gpio
ls /sys/bus/w1/devices
 you can see eeprom is NOT yet found under 2d-00001ac198e4 (2d is family code of DS2431)

modprobe w1_ds2431
ls -al /sys/bus/w1/devices



now you see eeprom. Bingo!

step 3

To dump the eeprom content, while still at /sys/bus/w1/devices/2d-00001ac198e4 directory:

su -c 'echo "CHIP EEPROM TEST"  > eeprom'

step 4. to display versions of w1gpio module:

modinfo w1gpio


in etc/modules, add

w1_ds2431

this will load the w1_ds2431 every time in boot up


step 5

install OWFS




references:
nextthing
device tree

1-wire not working...see reply from philE
 packtpub on install owfs ( needs some minor update on instructions...)

留言

這個網誌中的熱門文章

劣質洗衣機入水喉

上面白色是最易找到,$2x. 但漏水. 灰色, $4x, 是假冒 "MADE IN ITALY"  假冒 "MADE IN ITALY"  的標緻  左面是白色膠喉的喉頭, 右面是灰色膠喉的喉頭, 上圖左面是真正 好貨 ( MADE IN ITALY )灰色膠蓋.右面是冒牌 白色膠蓋. 膠蓋在安裝扭緊時爆開  上圖左面是真正 好貨 , 標了其他規格.右面是冒牌, 單單印了 MADE IN ITALY  好貨的膠蓋是可以下移, 露出喉頭及黑色軟膠墊 黑色軟膠墊是有坑紋. 質感較柔軟. 緊後可以"迫實"水龍頭 及喉蓋, 沒有滲漏 正板 MADE IN ITALY 賣 $4x, 價錢絕對合理. 冒牌貨在旺角新填地街買的, 也是$4x. 真是要小心!!! NB: MADE IN ITALY 是否真正 意大利制造實在無從考 証

越南香草

Ngo ~ "N-gaw" Mui ~ "Moo-ee" Ngo ~ "N-gaw" Mui ~ "Moo-ee" Ngo ~ "N-gaw" Mui ~ "Moo-ee" Ngo (N-gaw) ,  Mui  (Moo-ee )  Cilantro Coriandrum sativum, chinese parsley  Ngo Gai (N-gaw guy), Mui Tau (Moo-ee Tao), Ngo Tau (N-gaw Tao)   Mexican Coriander,  Sawtooth Coriander, Cilantro Eryngium foetidum    娥女帝(拼音), 刺芹   特徵:娥女帝是短株形的植物,氣味清淡,葉邊呈鋸齒形,十分容易辨認。來源地:越南。 功效:和白夏差不多,娥女帝亦有祛濕、解毒及驅風的療效。建議食法: Pho,  (Bánh Xeò) 越南煎餅, 炒菜,湯,咖哩 Ngo Gai ~ "N-gaw guy" Mui Tau ~ "Moo-ee Tao" Ngo Tau ~ "N-gaw Tao" - See more at: http://vietworldkitchen.typepad.com/blog/vietnamese-herb-primer.html#sthash.I9rzkzwI.dpuf Rau Ram (Rau Rahm) Vietnam Coriander, Laksa Leaf, "Vietnamese mint(actually not a mint)". Polygonum leaf Polygonum odoratum Peppery, quite spicy. In salad, soup Hung (Hoong), , Hung Lang (Hoong Lang) Spearmint.  Vietnamese coriander Hung Lui (Hoong Lou-ee), Hung ...

ES8311 and ES8388 codec IC

ES8388 audio codec module is one of the audio codec modules available that is supported by ESP32 and official ESP-ADF releases. The ES8388 module lets you have: Stereo microphone and line input Stereo headphone and line out Up to 96 kHz 24 bpp high quality audio This module is compatible with all MCUs that have I2C and I2S ports (like ESP32, ESP8266, STM32, i.MX6, Raspberry Pi, etc) ES8311 Maxgerhardt github PCBartist twblogs ESP32-A1S  (limited stock)Audio codec AC101 or ES8388 built-in. NB the pinouts and firmware are different! Arduino - ESP31-A1S instructable Phil Schatzmann and his github   Simple A2DP thaaraak github on ESP32-A1S github of Yveaux and  Marcel-licence ESP ADF   example:  Logitech PiCorePlayer squeeze lite squeezebox forum   ESP32-Audio-kit  (from AI thinker) based on ESP32-A1S, is simple and small. But upgrade-ability seems limited  Alex John Talbert mixer equalizer: can this be used as simple equalizer? how about proces...