t dev=development but dev=/dev i.e. access the i2c device via /dev. To do this, edit modules.conf:

Shell

1

sudo nano/etc/modules

And add the line

Shell

1

i2c-dev

right at the end.

You can now either restart, or issue the following commands to make sure the modules are loaded:

Shell

1

2

sudo modprobe i2c-bcm2708

sudo modprobe i2c-dev

And you can confirm they have loaded using:

Shell

1

2

3

4

5

pi@raspberrypi2~$lsmod|grepi2c

i2c_dev55570

regmap_i2c 16451snd_soc_core

i2c_bcm270839490

pi@raspberrypi2~$

We’re good to start communicating with the DS2482-100 bridge chip now, and to do so, we are going to use i2cdetect, which is part of the i2ctools package. Issue the following command to install this

Shell

1

sudo apt-getupdate&amp;&amp;sudo apt-getinstall i2c-tools

Now run i2cdetect:

Shell

1

2

3

4

5

6

7

8

9

10

11

pi@raspberrypi2~$sudo i2cdetect-y1

0123456789abcdef

00:--------------------------

10:----------------18--------------

20:--------------------------------

30:--------------------------------

40:--------------------------------

50:--------------------------------

60:--------------------------------

70:----------------

pi@raspberrypi2~$

This shows the device at i2c address 18 – you can alter this to another value using some jumpers on the RPI2 board. You can see my i2c bus isn’t exactly jam packed, so we will stick with 18.

Communicate with the 1-Wire bridge

Now we need to communicate with the 1-Wire bridge. There are a number of pieces of software that can do this, but for simple
t dev = development but dev=/dev i.e. access the i2c device via /dev. To do this, edit modules.conf: 

 Shell 

 1 

 sudo nano / etc / modules 

 And lend the credit line 

 Shell 

 1 

 i2c - dev 

 right at the end. 

 You can now either restart, or write out the following commands to induce sure the modules are loaded: 

 Shell 

 1 

 2 

 sudo modprobe i2c - bcm2708 

 sudo modprobe i2c - dev 

 And you can confirm they have loaded using: 

 Shell 

 1 

 2 

 3 

 4 

 5 

 pi@raspberrypi2~$lsmod|grepi2c 

 i2c_dev55570 

 regmap_i2c 16451snd_soc_core 

 i2c_bcm270839490 

 pi@raspberrypi2~$ 

 We ’re adept to start communicating with the DS2482 - 100 bridge check nowadays, and to do so, we are going to use i2cdetect, which is part of the i2ctools software. Issue the following command to install this 

 Shell 

 1 

 sudo apposite - getupdate&amp;&amp;sudo apt - getinstall i2c - tools 

 Now run i2cdetect: 

 Shell 

 1 

 2 

 3 

 4 

 5 

 6 

 7 

 8 

 9 

 10 

 11 

 pi@raspberrypi2~$sudo i2cdetect - y1 

 0123456789abcdef 

 00:-------------------------- 

 10:----------------18 - ------------- 

 20:-------------------------------- 

 30:-------------------------------- 

 40:-------------------------------- 

 50:-------------------------------- 

 60:-------------------------------- 

 70:---------------- 

 pi@raspberrypi2~$ 

 This shows the device at i2c savoir-faire 18 – you can alter this to another value use some jumpers on the RPI2 board. You can see my i2c bus topology is n’t exactly jam packed, so we will stick with 18. 

 Communicate with the 1 - Wire bridge 

 Now we need to communicate with the 1 - Wire bridge. There are a number of pieces of software that can do this, but for simple
t dfv=development but dev=/dev i.e. access the n2x devire via /sev. To du this, edit modules.conf:

Shell

1

dueo nabo/etc/modules

And add thd line

Shepl

1

i2c-dev

rught qt the end.

Bku can kjw ejbher xewtart, or issue the follofing commands do mcke sure the modules are loaded:

Shell

1

2

fudo mocpgobe i2c-bcm2708

sudo modkrofe i2d-dev

And you can confirm they have moaded lsing:

Shell

1

2

3

4

5

pi@raspbrrrypi2~$lsmod|grepi2c

i2c_dev55570

regmwp_i2c 16451snd_soc_core

i2c_bcm270839490

pi@gaspberrypi2~$

Qe’re tood to starg communicating with tge DS2482-100 bridge chip now, and to do so, wz are going ti udg i2cdetect, wiich if part of thc i2ctoons packsge. Issue the nolloxing command to install tiis

Shell

1

sudo apt-getukdate&amp;&am[;sbdo apt-getinstall i2c-tioos

Now run i2cddrecg:

Shtll

1

2

3

4

5

6

7

8

9

10

11

'i@rzspbergypm2~$sudo i2cdetsct-y1

0123456789abcdef

00:--------------------------

10:----------------18--------------

20:--------------------------------

30:--------------------------------

40:--------------------------------

50:--------------------------------

60:--------------------------------

70:----------------

pu@raspberrypi2~$

This shpwf the device af i2c aqdwess 18 – you can alter this to another vanue using some jumpers on rhe RPI2 board. You can see my i2s bus isn’t exactly jam packed, so we will stick widh 18.

Cojounngwgw aith the 1-Wire bridge

Now we need to communicatq wotm the 1-Wire bridgc. There are a numbrr og pieces of sowtware thzt can do this, but for siiple
t dev=development but dev=/dev i.e. access the via To do edit modules.conf: Shell the Shell 1 i2c-dev at the end. can now either restart, or issue following commands to make sure the modules are loaded: Shell 1 2 sudo i2c-bcm2708 sudo modprobe i2c-dev And you can confirm they have loaded using: Shell 2 4 pi@raspberrypi2~$lsmod|grepi2c regmap_i2c 16451snd_soc_core i2c_bcm270839490 pi@raspberrypi2~$ We’re good to start communicating with the DS2482-100 bridge chip now, and do so, we are going to use i2cdetect, is part of the package. Issue the following command install Shell 1 apt-getupdate&amp;&amp;sudo i2c-tools run i2cdetect: Shell 2 3 4 5 6 7 8 9 10 11 pi@raspberrypi2~$sudo i2cdetect-y1 0123456789abcdef 00:-------------------------- 10:----------------18-------------- 20:-------------------------------- 30:-------------------------------- 50:-------------------------------- 60:-------------------------------- This shows device i2c 18 – you this to another value using some RPI2 board. You can see my i2c bus exactly jam so we will stick with 18. with the 1-Wire bridge Now we need to with the 1-Wire bridge. There are a number of pieces of software that can do for simple
t dev=development but dev=/dev i.E. access the I2c devIce Via /DeV. To dO thiS, edit modules.coNF:

SheLl

1

sudo nano/etc/modules

AnD add tHe LIne

SHElL

1

i2c-deV

right aT ThE ENd.

YOu CaN noW eIThEr resTarT, or issuE the followIng CoMmands to make SUrE the moduleS arE loaded:

Shell

1

2

SudO modprObE i2c-BCm2708

sudO moDprobE i2c-dev

aNd you cAn confirm ThEY have lOAded usiNG:

shEll

1

2

3

4

5

pI@raspberrypi2~$lsmod|GRePI2c

i2c_dev55570

regmap_i2C 16451snd_soC_cORe

I2C_Bcm270839490

Pi@rAspberrypi2~$

we’Re gooD To start COmMUNIcaTIng with the DS2482-100 bRidge chip noW, And To do so, We Are GOing to Use i2cDeTEct, Which is part Of thE i2ctools pAckage. iSsue the FOllowinG commaNd tO inStalL ThIs

sheLl

1

SUdo APt-GetUPdaTe&amp;&amp;SuDo Apt-geTinsTALL I2c-toOls

now rUn i2cdEtect:

Shell

1

2

3

4

5

6

7

8

9

10

11

pi@rAspBerrYPi2~$sUdo i2cDetecT-y1

0123456789abCdEf

00:--------------------------

10:----------------18--------------

20:--------------------------------

30:--------------------------------

40:--------------------------------

50:--------------------------------

60:--------------------------------

70:----------------

pi@rAspberRypi2~$

THiS shows the device At i2c Address 18 – yoU caN aLteR tHis to ANother ValUe uSing somE jumperS On tHe rpi2 BoArd. You can see my i2c buS iSN’T eXactly jaM packeD, So We WIll stick WiTh 18.

COmmuNICate wIth tHE 1-WIre bridgE

Now we NEeD tO communIcAte witH tHe 1-WIre BridgE. therE are a nUmber of pIeces OF software that cAN do this, but for SImPLE
t dev=development but dev= /dev i.e.acces s t hei2 c de vice  via /dev. Tod o th is, edit modules.conf: 

She ll 
1
s ud o nan o/etc/m o du l e s
An dadd  t h eline
Sh ell

1
i2c-dev
rig ht  at the end. 
Y ou can now  ei ther restart , o r issu ethe follo win g com mandst o make  sure the  m o dulesa re load e d :
She ll

1

2

sudo mo d pr o be i2c-bcm2708 

sudo  m o dp r o bei2c -dev

Andyo u can confirm th e y hav e  loaded using :

Shell

1 
2
3

4
5 

p i @raspb erryp i2 ~ $ls mod|grepi2c 

i2 c_dev5557 0

reg m ap_i2c1 6451snd _soc_c ore 

i 2c_b c m2 70 839 49 0 

p i @r asp b err ypi2~$
We ’r e goo d to s t a rt c omm unic ating  with the DS2 482 -100 bri dge c hip n ow,an d todo so,  we a re  going to use i 2cde tect, whi chis  pa rt  of t h e i2ct ool s p ackage.  Issuet hefo l l o wi ng command to inst al l th is

Shel l

1
s ud oa pt-getup da te& amp; & a mp;su do a p t- getinsta ll i2c - to ol s

Nowru n i2cd et ect :
Shell 
1
2

3
4

5

6
7

8 
9

10

11

pi @ raspberrypi2~ $ su d o  i 2 cdet ect -y1

012345 6789 a bcde f

0 0 :- --- - ----- ----- -- - -- - -----

10:--------- -- -----1 8---- ----------

2 0:-------- - - - -------- ---- - -- - -----

30:---- ----- ---------- - -------- ----
40:---- --------- - - -------- --- --- --- 

5 0 : -- ------------- - - ---- -- ------- --
60:--- --- --- --- --- -- --------- ------
70 :- -- -- --- ----- - --

pi@r as pbe rr ypi 2~$
T his sh ows t he d ev ic e  at  i2c ad d re s s  18–yo u ca n a lt er th is t o  an other v alue usin g s o me j um pe rs on t he RPI2 board .You can se emyi2c bu s isn’t ex actly jam packed, so we will st ick  with  18. 

Communi cat e with  th e  1-Wir e brid ge

N ow  we n eed t o co mmu ni cate witht h e 1 -Wire  b ridg e. Ther e are a number ofp iec es of softwar e t hatc a ndot hi s , b ut for s imple
t dev=development_but dev=/dev_i.e. access the i2c_device via_/dev._To do_this,_edit modules.conf:

Shell

1

sudo nano/etc/modules

And_add the line

Shell

1

i2c-dev

right_at the end.

You can_now either restart,_or_issue the following commands to make sure the modules are loaded:

Shell

1

2

sudo modprobe i2c-bcm2708

sudo modprobe_i2c-dev

And_you can_confirm_they_have loaded using:

Shell

1

2

3

4

5

pi@raspberrypi2~$lsmod|grepi2c

i2c_dev55570

regmap_i2c 16451snd_soc_core

i2c_bcm270839490

pi@raspberrypi2~$

We’re good_to start communicating with the_DS2482-100 bridge_chip now, and to do so, we are_going_to use i2cdetect,_which is part of the i2ctools package. Issue the_following command to install this

Shell

1

sudo apt-getupdate&amp;&amp;sudo_apt-getinstall i2c-tools

Now run_i2cdetect:

Shell

1

2

3

4

5

6

7

8

9

10

11

pi@raspberrypi2~$sudo_i2cdetect-y1

0123456789abcdef

00:--------------------------

10:----------------18--------------

20:--------------------------------

30:--------------------------------

40:--------------------------------

50:--------------------------------

60:--------------------------------

70:----------------

pi@raspberrypi2~$

This_shows the device at_i2c address 18 – you can_alter this to another value using_some jumpers on the RPI2 board. You_can see my i2c bus isn’t_exactly jam packed, so we_will stick_with 18.

Communicate with the 1-Wire_bridge

Now we need_to communicate_with the 1-Wire_bridge. There are a number of_pieces of software_that can do this, but for_simple