Arduino and I2c

Hi,
Im trying to connect some of my NXT mindstom sensors to my arduino, specifically the color and Ultrasonic sensors which are I2C. When i try and set up the arduino I2C bus and use
addrs = scanI2CBus(a)
i get
address =
0×0 empty cell array
when it should show 0x48. If anyone knows why Im not able to get a connection with the bus please help.
Thank you

2 Comments

Can you share the code?
Mark Sherstan
Mark Sherstan on 12 Apr 2019
Edited: Mark Sherstan on 12 Apr 2019
Can you verify that the sensors I2C is working and properly connected (e.g. - run this in Arduino IDE: https://playground.arduino.cc/Main/I2cScanner/)?

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 3 Apr 2019

Edited:

on 12 Apr 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!