OCCRA
Go to Post If it weren't for him, I wouldn't be asking why and how, I'd be playing LoL. Now, I do both XD - faust1706 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-06-2018, 12:55 AM
cogbrained3244 cogbrained3244 is offline
D'Lux Cru
FRC #3244 (Granite City Gearheads)
Team Role: Webmaster
 
Join Date: Nov 2012
Rookie Year: 2012
Location: St.Cloud MN
Posts: 6
cogbrained3244 is an unknown quantity at this point
Question Using Network Tables with Arduino?

My team is considering adding some LEDs this year. We have an Arduino Ethernet and an individually addressable LED strip controlled by FastLED, but we are fairly new to Arduino development and anything beyond Java in general.

We'd like to consider using Network Tables to control our lights so that they can easily respond to various conditions on our robot or on the field. However, I can't find any examples of how to do this, other than a few passing mentions on Cheif Delphi itself. Has anyone done it this way who has an example code that works?

If not, I'm curious what it would take to port the Network Tables library from WPILib to work on Arduino, or might it even work out of the box? Failing that we would fall back to something like I2C communication with the Arduino.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-06-2018, 08:47 AM
codetheweb's Avatar
codetheweb codetheweb is offline
Registered User
AKA: Max Isom
FRC #3299 (The Warehouse Crew)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Chaska, MN
Posts: 14
codetheweb is an unknown quantity at this point
Re: Using Network Tables with Arduino?

I don't have a ton of experience with Network Tables, but I would discourage you from trying to use them on an Arduino. Porting the code would likely take a while, and my team personally has had many issues with Network Tables in the past. I2C works really well.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-11-2018, 06:07 PM
auscompgeek's Avatar
auscompgeek auscompgeek is offline
Registered User
AKA: David Vo
FRC #4774 (The Drop Bears)
Team Role: Mentor
 
Join Date: Jan 2018
Rookie Year: 2016
Location: Sydney, Australia
Posts: 24
auscompgeek is an unknown quantity at this point
Re: Using Network Tables with Arduino?

Given that Arduinos don't have a full TCP/IP stack (and even then, you need one of those networking modules), you're going to have a really bad time trying to port NetworkTables to an Arduino.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-12-2018, 06:58 PM
Sky Captain's Avatar
Sky Captain Sky Captain is offline
Software Mentor and FIRST Volunteer
AKA: Will
FRC #0386 (Voltage)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2006
Location: Virginia
Posts: 44
Sky Captain is an unknown quantity at this point
Re: Using Network Tables with Arduino?

Check out this thread. I tackled the same issue this season.
__________________
When in doubt, RTFM.

FTAA Orlando 2017, 2018
FTAA South Florida 2017, 2018
Reply With Quote
  #5   Spotlight this post!  
Unread 02-13-2018, 02:16 PM
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 385
fovea1959 will become famous soon enough
Re: Using Network Tables with Arduino?

If you really want to use the Arduino ethernet, doing UDP between the roboRIO and the Arduino should be straightforward.

You will probably want to go to static IP addresses, though!
Reply With Quote
Reply


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 08:17 PM.

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


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