View Single Post
  #5   Spotlight this post!  
Unread 19-07-2015, 21:53
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Corvallis, OR
Posts: 295
jojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant futurejojoguy10 has a brilliant future
Re: NXT/EV3 sensors with RoboRIO?

Quote:
Originally Posted by lopsided98 View Post
I have never tried any of this, but based on the communications protocols they use, it seems completely possible to use both NXT and EV3 sensors.

The digital NXT sensors (ie. ultrasonic) use I2C to communicate, likewise the NXT port on the digital sidecar was just connected to the I2C pins. I believe you would just need to make/modify a cable to connect the appropriate pins to the I2C port on the roboRIO and write a driver to communicate with it.

Some NXT and EV3 sensors (ie. light sensor) use analog signals to communicate. Using these should be as simple as connecting the correct pins to an analog input on the roboRIO and figuring out how to convert the voltage to a value.

The digital EV3 sensors use UART (serial) to communicate, so they can be connected to the UART port on the MXP (not the RS-232 port, at least not without a converter). Again, you would have to write a driver.

If you do any of this, the most important thing is to make sure you are supplying the right voltage to the right pins, to prevent damage to the sensors (the roboRIO is pretty well protected, so it would be fine with most mistakes).

These links might be helpful:
http://lechnology.com/2014/09/using-...-on-any-linux/
http://www.ev3dev.org/docs/sensors/
http://brweb.haltonrc.edu.on.ca/2022...ExtremeNXT.pdf (a lot of information)
These are great links! I was just curious if anyone has done it yet. (Or ever did do it with the Digital Sidecar)

Thanks!
__________________

2013 and 2014 - Student (FRC#2990), Programmer (LabVIEW)
2015 and 2016 - Mentor (FRC#2990), Programming (LabVIEW)
2017-Current - Mentor (FRC#997), Controls/Programming (Java)
2015-Current - A/V Volunteer at Oregon events