Go to Post 1114 is the definition of what a FIRST team should be. For anyone to say otherwise is disgusting to me. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-07-2015, 16:40
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: 289
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
NXT/EV3 sensors with RoboRIO?

Hello all,

Is there a way available to connect a NXT or EV3 sensor to the RoboRIO. I know it was possible with the digital sidecar with the older cRIO. I was just wondering if there was a new way with the RoboRIO.

Thanks,

Joe
__________________

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
  #2   Spotlight this post!  
Unread 19-07-2015, 18:59
Ben Wolsieffer Ben Wolsieffer is offline
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: NXT/EV3 sensors with RoboRIO?

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)
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
  #3   Spotlight this post!  
Unread 19-07-2015, 20:39
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: NXT/EV3 sensors with RoboRIO?

Is it necessary to use LEGO's sensors for your project?

Other companies, such as Sparkfun and Adafruit sell sensors that are likely cheaper, better quality and easier to interface to the RoboRIO through the analog or digital inputs.
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
  #4   Spotlight this post!  
Unread 19-07-2015, 21:52
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: 289
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 z_beeblebrox View Post
Is it necessary to use LEGO's sensors for your project?

Other companies, such as Sparkfun and Adafruit sell sensors that are likely cheaper, better quality and easier to interface to the RoboRIO through the analog or digital inputs.
It's not necessary, but if we have them, it's cheaper than buying a new one :-)
__________________

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
  #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: 289
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
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi