LED Programming ? Help Please.

We are a semi rookie team and need some help. We ordered this LED kit from AndyMark….
8.2ft RGB LED light strip complete kit with arduino controller (am-2645)

We are in need of help with the programming using Lab View.

Could anyone out there be so kind as to send us a programming digram in Labview to make this work or a link that could help us learn to program this component. Thanks for all your time and help

Go team


It looks like AndyMark offers some example code at https://github.com/AndyMark/AndyMark-Arduino-Examples/tree/master it is Arduino code as that is what the kit comes with.

I would say before you put this system on your robot, get it working with the Arduino and AM example code first.

Our programming team is doing the same thing. Here is the advice I gave them.

There are two parts to this.
PART #1. Programming the LED lights to do what you want. Like light “behaviors” let’s call them.
PART #2. Interfacing the CRIO to “trigger” the arduino to run a behavior.

Part #1 should consist of you writing code in the arduino to make your LED lights do what you want them do to.
For example write down the behaviors.

  1. Robot is idle
  2. Robot is shooting
  3. Robot has the ball
    Now write the code to make the LED lights do what you want for each behavior, then place them into a while loop with a CASE SELECT structure.

Robot is idle
Robot is shooting
Robot has the ball


Part #2 is setting up, wiring and programming an interface in the CRIO…
There are three INTERFACING suggestions I can suggest.

Wiring the output pin of the CRIO to the INPUT pin on the arduino.
Map the CASE SELECTs to a digital input on the arduino.
Then in the LABVIEW program, just turn on a digital output that is wired directly to the arduino.

IN1 = trigger idle state
IN2 = trigger robot shooting
IN3 = trigger robot has the ball

This interfacing method is called discret wiring I/O. It’s the simplest interface of the THREE interface suggestions I have for you below.

A stepup from that would be to do a BCD (binary coded decimal) ENCODE from the CRIO to a DECODE in the arduino. The advantage is you can have 8 robot behaviors with only three wires connected. It’s technically the same as discret, however you’re not chewing up a bunch of wires to get more behaviors.

Wiring I/O on the Digital Sidecar sample.
(least signaficate bit on right)
BINARY VALUE 4, 2, 1, etc…

IN3, IN2, IN1
0,0,0 = 0 decimal
0,0,1 = 1 decimal
0,1,0 = 2 decimal
0,1,1 = 3 decimal
1,0,0 = 4 decimal
1,0,1 = 5 decimal
1,1,0 = 6 decimal
1,1,1 = 7 decimal

One more suggestion would be to write an I2C interface.

In this case, you will need to include the wire library and setup a SLAVE ADDRESS to the arduino and have the CRIO become the MASTER and set memory bits.


So first you have to decide how you want to interface the two processors together. That’s the root decision you need to make first.