Hi,
I am trying to connect this sensor: IR Seeker V3 – Modern Robotics Inc which is an IR seeker sensor, with an Arduino Uno. I have tried requesting 2 bytes from register 0x00 which is the firmware revision register and I haven't gotten anything back. Here is my code:
#include <Wire.h>
void setup() {
Wire.begin();
Wire.setClock(100000L);// join i2c bus (address optional for master)
Serial.begin(9600); // start serial for output
}
void loop() {
Wire.beginTransmission(56);//Start communicating with device 0x38
Wire.write(0x00);//Send that we'd like to read register 0x00
Wire.endTransmission();//Stop the transmission
delay(100);//Wait the the data to be prepped
Wire.requestFrom(56, 2);
while(Wire.available()){// Read any data available and print it.
Serial.print(char(Wire.read()));
}
delay(5000);//Wait then repeat
}
I have wired it to 5V, GND, SCL, and SDA according to the info on that page.
Any ideas?
Thanks,
luketheduke