ArduinoGeneral

Romeo v2: How to use I2C Bus for Ultrasonic Sensors SRF02 and SRF08

userHead Account cancelled 2018-02-15 19:14:52 1247 Views0 Replies
Hello dear Forum Users,

I am using the Romeo v2 Board on my HCR mobile Robot. In that I was tasked to connect some Ultrasonic Sensors and compare the results and the accuracy of them using the I2C Bus, since my Analog Pins are already occupied by the included infrared sensors.

The Romeo v2 Board has three I2C Bus Pins. It runs with an Arduino Leonardo Microcontroller.
https://www.dfrobot.com/wiki/index.php/ ... U:DFR0225)

I use the Devantech SRF02 and SRF08 Ultrasonic sensors.
SRF02: https://www.dfrobot.com/product-325.html
SRF08: https://www.robot-electronics.dfrobot.uk/htm/srf08tech.html


I have installed the Arduino "Wire.h" library and checked the examples in it, but in those the Analog pins are used.
As mentioned before my Analog Pins are occupied by the included infrared sensors.

My Question is.
How do I access/set the I2C Bus Pins on my Board?

I am looking forward to your tips and suggestions.
Oli Baba