I fixed the issue of it not showing up, I missed the bit about the boards.txtI added the board and it now shows up, I still get an error when I try and compile the begin_here5.This is the error:In file included from begin_here5.cpp:13:/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Arduino.h:212:26: error: pins_arduino.h: No such file or directoryAny ideas?Thanks.PhilPhil Spitler | Associate Creative Director | Bonfire | t : 415.394.8200 | c : 415.571.3139 | Bonfirelabs.com
arghhhh... I'm going nuts here.I cannot get anything to happen with my board ;-(I loaded the basic "blink" sketch and am trying to get it to flash an LED.The on board LED flashes but I cannot get an external LED to light up.
I have the IDE cable connected to the header pins and the LED in a breadboad.I tested the LED by connecting it to the +5 and GND on the board and it works
but when I put my jumper into the holes of the IDE cable, nothing happens.
I have tried lots of different pins but no luck, this is driving me nuts, I know I'm a novice but this is crazy.
I chose the Lightunino 20mhz from the board menu before uploading and the fact that the on board LED flashes makes me think that the board is ok.
I have tried different cables too but no luck.I tried the same sketch on my Uno and it worked great.Please tell me that I missed a vital step or something.... arghhhh.When I run the begin_here5 sketch the serial monitor goes through all the stage but still no LEDs light up,
Thanks Andrew, sorry it took me so long to get back to you.It works great.One question, do you know a good source of the 20pin IDE connectors that will fit onto a breadboard?
Hi Andrew, I got the breakout board fired up and plugged into a breadboard and it seems to work great.
I am now starting to delve into the code and have a few questions, I tried posting to the group but it said my google Apps account was restricted for some reason. I fired an email off to my works admin to see if he put some weird restriction on...
Anyway.
I have been looking through the begin_here5 code and have hacked it down to make some LEDs light up ;-)
However, I am still unsure of the easiest way to light up an LED, on a regular Ardunio I could just do a digital_write and be done.
The first way I did it was to use sinks.set function.
sinks.set(0xffffffff,0xffffffff,B00111111); // Each bit in these 3 numbers corresponds to one LED light
delay(1000); // wait for a second
sinks.set(0x00000000,0x00000000,B00000000); //turn them off
delay(1000); // wait for a second
This worked great but I'm still confused and couldn't find any documentation.
What are the 3 parameters in the function? This does blink my LED but I'm guessing it will blink all of them, my LED is on pin 30.
Digging around the forum, I found your very useful "setColor" function.
My LED is an RGB one I thought that using this would help me understand.
I have it connected to pins 30,31,32 and I know it works as the begin_Here5 sketch cycles through the r,g,b during some of it's cycle.
This is what I have.
void loop() {
SetColor(30,8000,0,0);
}
void SetColor(int led, int red, int green, int blue)
{
int pos = led*3;
pwm.brightness[pos] = red;
pwm.brightness[pos+1] = green;
pwm.brightness[pos+2] = blue;
}
When i upload this, the LED stays unlit, I'm curious why you are multiplying the pos x 3 in the function. I tried removing the "*3" so that pos becomes 30 which is where my LED is plugged. That still didn't give me anything.
Is there any other documentation that would help me get a base understanding of what each function does?
Thanks for your help.
Phil
So if I use the 12v, do I need to disconnect the USB or somehow tell the board to use the 12 instead of the USB power ?Cheers.
PhilYes. 3 or 4 depending on the voltage drop on the led. That's the sole purpose of the 12v transformer vs the 5v.
Cheers!
AndrewOn Jan 24, 2012 2:12 AM, "Phil Spitler" <ph...@bonfirelabs.com> wrote:Hi Andrew, i was just going back and re-reading your emails when i came across the line below.I did order a 12v transformer, does than mean I could wire 4 LEDS in series to each of the 70 outputs?Thanks.Phil