Bus I2c su Shield Raspberry I/O

Informazioni riguardo il mondo della Linux: Raspberry Pi, Cubieboard, PCduino, MK802...
Rispondi
stefanopelo
Messaggi: 1
Iscritto il: 13/04/2014, 11:37
Home_Page: http://

Bus I2c su Shield Raspberry I/O

Messaggio da stefanopelo »

Buongiorno a tutti, ho acquistato qualche giorno fa il kit contenete raspberry pi libro e scheda I/O,
sto seguendo gli esercizi proposti sul libro ma sono fermo per un errore che mi da utilizzando il bus I2c,
al comando ' i2cdetect -y 1 ' rilevo il seguente output

0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- 4d -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


mentre il libro mi dice che dovrei ottenere un dato all'indirizzo 0x48, inoltre quando eseguo il comando ' i2cset -y 1 0x48 0x00 ' ottengo questo errore: '
Error: Write failed ', quindi il software descritto non funziona, ad esempio il programma ' TempLux.py ' opportunamente commentato, restituisce il seguente errore:

root@raspberrypi:~# python /home/LR/TempLux.py
Traceback (most recent call last):
File "/home/LR/TempLux.py", line 82, in <module>
bus.write_byte(adc_address1,adc_channel1)
IOError: [Errno 5] Input/output error

Dov'è l'errore ?
Avatar utente
Boris Landoni
Messaggi: 349
Iscritto il: 04/11/2009, 17:18

Re: Bus I2c su Shield Raspberry I/O

Messaggio da Boris Landoni »

Ciao assicurati di portare i dip switch presenti sulla scheda a ON.
Fammi sapere
Camron70
Messaggi: 1
Iscritto il: 16/10/2014, 14:18
Home_Page: http://
Compleanno: 17 apr 1990
Città: UIK

Re: Bus I2c su Shield Raspberry I/O

Messaggio da Camron70 »

Hello everyone, I bought a few days ago, the kit containing raspberry pi book and I / O board,
I am following the exercises in the book but I'm still for a mistake by me using the I2C bus,
Rispondi