Roboteurs / slushengine

The software package that supports the SlushEngine hardware
Other
18 stars 18 forks source link

I2C #16

Open AlvaroGordo opened 5 years ago

AlvaroGordo commented 5 years ago

Hey, I’m thinking about buy Pi Hat module of Slushengine, I want to communicate raspberry with arduino through I2C pins on UEXT. Do you know is it possible?

legel commented 5 years ago

“Hey, I'm thinking about buy Pi Hat module of Slushengine, I want to communicate raspberry with arduino between I2C pin on UEXT. Do you know is it possible?”

// I think the answer is almost certainly yes

My colleague in Amsterdam, Andrejs, may be able to help confirm at some point: andrejs@3co.ai

Cheers, Lance

Mango-kid commented 5 years ago

Hey Alvaro,

Yes the I2C pins are routed straight from the pi to the UEXT header. Pinout is the same as specified by Olimex.

On Tue, Jun 18, 2019 at 12:25 PM AlvaroGordo notifications@github.com wrote:

Hey, I'm thinking about buy Pi Hat module of Slushengine, I want to communicate raspberry with arduino between I2C pin on UEXT. Do you know is it possible?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Roboteurs/slushengine/issues/16?email_source=notifications&email_token=ABL6DRRV3IF3LGR62G3S7ADP3ED5ZA5CNFSM4HZBY4RKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G2GDESQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL6DRUINTGVTDQL3JP7QQ3P3ED5ZANCNFSM4HZBY4RA .

AlvaroGordo commented 5 years ago

Yes, I think so about UEXT conection, but I don’t find Pi HAT schematic, and I think I’ve seen Raspberry need to enable I2C and SPI interface as pre-requisites to Slush library works.

Mango-kid commented 5 years ago

Please see attaced.

Yes you will need to enabled these interfaces. It can be done via "raspi-config"

On Wed, Jun 19, 2019 at 8:20 AM AlvaroGordo notifications@github.com wrote:

Yes, I think so about UEXT conection, but I don’t find Pi HAT schematic, and I think I’ve seen Raspberry need to enable I2C and SPI interface as pre-requisites to Slush library works.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Roboteurs/slushengine/issues/16?email_source=notifications&email_token=ABL6DRQRTQ4NPXUTQBHLIGLP3IQCNA5CNFSM4HZBY4RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYBV4TA#issuecomment-503537228, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL6DRXHUADMQSWCVNOMWS3P3IQCNANCNFSM4HZBY4RA .

AlvaroGordo commented 5 years ago

Yeah, but is used I2C interface by Raspberry to communicate with the Pi HAT? That's my question.

Mango-kid commented 5 years ago

Ah. No the Slushengine uses the SPI bus to communicate with the Raspberry Pi.

On Wed, Jun 19, 2019 at 8:42 AM AlvaroGordo notifications@github.com wrote:

Yeah, but is used I2C interface by Raspberry to communicate with the Pi HAT? That's my question.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Roboteurs/slushengine/issues/16?email_source=notifications&email_token=ABL6DRQZWX2M4JVMYDKG3ETP3ISTPA5CNFSM4HZBY4RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYBXRSI#issuecomment-503544009, or mute the thread https://github.com/notifications/unsubscribe-auth/ABL6DRRKMOCAVYCTTSE4H3LP3ISTPANCNFSM4HZBY4RA .

vanvught commented 5 years ago

No the Slushengine uses the SPI bus to communicate with the Raspberry

And also I2C is used for the MCP23017 and the temperature sensor (MAX1164). The latter never worked for me.