|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: LEDs
869 used a combination of an Arduino and Adafruit NeoPixel LED strips (http://www.adafruit.com/products/1460)
We used various combinations of digital outputs from the digital sidecar to send signals to the Arduino and had it do different things depending on what the robot was doing such as having blue/red depending on what the FMS told us our color was with Code:
DriverStation.getInstance().getAlliance() Code:
DriverStation.getInstance().getMatchTime() |
|
#2
|
||||
|
||||
|
Re: LEDs
You may or may not have seen the LEDs we used on our robot this past season, so I don't know if what I'm talking about makes much sense out of context. We ordered a bunch of yellow LEDs being our team color and all and wired them up each separately so that each section of 3 was addressable. We arranged them in a pattern we liked on the robot and cut and soldered wire to the correct length to reach our micro controller. We used an 8052 based board that our electronics mentor made to control them. We had digital inputs in from the sidecar so that the cRIO had some input to the system. We also used an analogue pressure transducer to give a readout of our pneumatics pressure to give us visual feedback as to what we were sitting at. If I can, I will find a video of the system in action
|
|
#3
|
|||||
|
|||||
|
Re: LEDs
What is it about LEDs that attracts this kind of post? Team Element is in California, not Minnesota.
|
|
#4
|
||||
|
||||
|
Re: LEDs
Well seems like we have LED vendors spamming the forums and apparently when I search specific model numbers especially the one that starts with "ws2" and ends with "812" CD is on the front page of searches for discussions.
|
|
#5
|
|||
|
|||
|
Re: LEDs
We had a strip of LEDs on our pickup arm, they were wired to an arduino and a maxbotix ultrasonic sensor. We programmed the arduino to light up the LEDs in different colors depending on how far the robot was from the wall to give the drive team a visual indication of when to shoot.
|
|
#6
|
|||
|
|||
|
Re: LEDs
Most people have covered the whole NeoPixel/Arduino design pattern, so I'll skip over that. One thing that hasn't been mentioned that my team (111) did is robot-Arduino communication. We had an I2C link between the robot and the Arduino. Whenever we wanted to update the LEDs on an event, say, the start of a match, raising our arms, or shooting, we'd send a command/payload byte combination to the Arduino which would then update the LEDs. The relevant Java class of our 2013 code is here: https://github.com/wildstang111/2013...ems/WsLED.java
|
|
#7
|
|||
|
|||
|
Re: LEDs
Could you post a copy of your Arduino code as well? I'd like to implement this in LabView.
|
|
#8
|
|||
|
|||
|
Re: LEDs
Quote:
|
|
#9
|
|||
|
|||
|
Re: LEDs
Quote:
Its good to know that the AdaFruit libraries disable I2C, because that could have caused lots of headaches. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|