I want to connect EV3 IR and ultrasonic sensors to my Arduino. Unfortunately could not find any good documents describing how to use/control them.
Could you please help?
Thank you very much.
Bricks is a question and answer site for LEGO® and building block enthusiasts. It only takes a minute to sign up.Sign up to join this community
LEGO has released the source code for the EV3, so you can see how it works. Look for the "EV3 Firmware Source Code" at http://www.lego.com/en-gb/mindstorms/downloads.
You can also find the documentation generated from this source code at http://ev3.fantastic.computer/doxygen/index.html. In particular, these sensors are documented at http://ev3.fantastic.computer/doxygen/UartProtocol.html. But beware! The documentation on the UART sensors is not 100% correct. When in doubt, trust the actual code and not the comments.
And finally, don't forget to search for existing Arduino libraries for these sensors. Unless you want to implement your own library just for the sake of doing it yourself, you can save yourself some work. For example, you can find a library at https://github.com/lawrie/EV3_Dexter_Industries_Sensors/tree/master/EV3_arduino from one of the leJOS core contributors.