Go to Post I love the smell of burnt motors in the morning! - Mike Betts [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 01-02-2015, 17:33
Asymons Asymons is offline
Registered User
FRC #4716 (Purple Raiders)
Team Role: Driver
 
Join Date: Apr 2013
Rookie Year: 2013
Location: Ontario
Posts: 33
Asymons is an unknown quantity at this point
LEDs on the REV RIODuino

Hi Everyone,

I have a question in regards to programming the LEDs on a REV RIODuino. Would it be possible to program the micro-controller board to light LED's by response of a Joystick Command (like pulling the trigger)? Or would it be more practical to lets say have the LEDs function through particular commands on the robot? The goal of this is to have LED's as a mechanism to not only look pretty, but to help human players know when to load a tote into the robot (Green being ready, red being not ready ). Thank you for any help!
  #2   Spotlight this post!  
Unread 03-02-2015, 00:14
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: LEDs on the REV RIODuino

Quote:
Originally Posted by Asymons View Post
Hi Everyone,

I have a question in regards to programming the LEDs on a REV RIODuino. Would it be possible to program the micro-controller board to light LED's by response of a Joystick Command (like pulling the trigger)? Or would it be more practical to lets say have the LEDs function through particular commands on the robot? The goal of this is to have LED's as a mechanism to not only look pretty, but to help human players know when to load a tote into the robot (Green being ready, red being not ready ). Thank you for any help!
Hey Asymons,

Both scenarios are quite practical.

First you should set up a way to communicate between the roboRIO and the RIOduino. There are many options, but I2C and Serial (UART) connections are already made between the two when the RIOduino is plugged into the MXP.

You'll then write code on your RIOduino that responds to commands or signals from your roboRIO.

Those commands can be simple: when the RIOduino gets the "red" command, it changes the LEDs to red, when it gets "off" it turns them off, etc.

They can also be more complex: the roboRIO sends the current robot state, and the RIOduino decides what to do.

The code on the roboRIO will need to take input (joystick values, sensor values, and/or robot state) and decide what command to send to the RIOduino.

AndyMark published an example using the RIOduino with a touch screen shield. Look at the "Files & Documents" tab on the RIOduino with 2.8" Touchscreen (am-2999) bundle page.

Take a look at that example to see how they communicate between the roboRIO and the RIOduino. With some modification, you can send commands to your RIOduino LED code rather than the RIOduino touch screen code.

-David
__________________
David Yanoshak
Co-founder REV Robotics | www.revrobotics.com
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 09:49.

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