Should these work together? I'm getting the "few random lights" problem.
The ATmega328p on the Lightblue Bean (a BTLE/Arduino/Sensors combo) has "1024B EEPROM, 2KB SRAM". Is that enough memory for a 32 LED strip?
Or maybe it doesn't have enough clock speed to drive the PWM properly (getting beyond my knowledge here)?
I've got 5v 2amp power. Everything is connected correctly as far as I can tell.
Refs
http://punchthrough.com/bean/arduino-users-guide/
http://www.atmel.com/devices/atmega328p.aspx
LPD8806 with a Lightblue Bean (ATmega328p)
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: LPD8806 with a Lightblue Bean (ATmega328p)
The ATMega328P is plenty for 32 LEDs.
How is this all wired up? Can you post a picture?
How is this all wired up? Can you post a picture?
- dav
- Posts: 6
- Joined: Fri Nov 19, 2010 1:06 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
So after I posted the question here, I found an old Arduino Diecimila and hooked it up the same way to that and it worked perfectly. Here are some photos of the setup back on the bean. I'm using digital pin 5 for the clock and 2 for data.
There's another GND on the other side of the board. I've tried that one as well.
Here is the pin information from the Lightblue Bean Arduino Guide
I'm starting to think I may have a defective arduino data pins on the bean. I have a couple more at my office. I may go get them today and try again.
I've ordered an 8-channel digital channel analyzer gadget from Adafruit which is supposed to arrive tomorrow. I think that could be used to determine if proper signaling is coming out on the clock/data pins right? Is there a way to verify that with just a multimeter?
Code: Select all
int nLEDs = 32 * 1;
int dataPin = 2;
int clockPin = 5;
LPD8806 strip = LPD8806(nLEDs, dataPin, clockPin);
void loop() {
beanblink();
colorChase(strip.Color(127, 127, 127), 50); // White
}
There's another GND on the other side of the board. I've tried that one as well.
Here is the pin information from the Lightblue Bean Arduino Guide
I'm starting to think I may have a defective arduino data pins on the bean. I have a couple more at my office. I may go get them today and try again.
I've ordered an 8-channel digital channel analyzer gadget from Adafruit which is supposed to arrive tomorrow. I think that could be used to determine if proper signaling is coming out on the clock/data pins right? Is there a way to verify that with just a multimeter?
- Franklin97355
- Posts: 23910
- Joined: Mon Apr 21, 2008 2:33 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
You really need to solder your connections to make stable communications paths.
- dav
- Posts: 6
- Joined: Fri Nov 19, 2010 1:06 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
Well I want to make sure it works before I start soldering. The same temporary technique works fine on the Diecimila. Is it possible that the bean physical characteristics requires a a more stable/stronger connection to work at all?
- dav
- Posts: 6
- Joined: Fri Nov 19, 2010 1:06 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
On the Bean forum I just found out that their digital pin output voltage is 3v, maybe the LPD8806 needs 5v on the clock and data lines?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: LPD8806 with a Lightblue Bean (ATmega328p)
The Diecimila has spring-loaded contacts in the pin headers. The Bean is just plated holes. Franklin97355 is right - it won't work unless you solder it.
- dav
- Posts: 6
- Joined: Fri Nov 19, 2010 1:06 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
So 3v is in fact enough logic signal to drive it?
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: LPD8806 with a Lightblue Bean (ATmega328p)
yesdav wrote:So 3v is in fact enough logic signal to drive it?
- dav
- Posts: 6
- Joined: Fri Nov 19, 2010 1:06 pm
Re: LPD8806 with a Lightblue Bean (ATmega328p)
Turned out it wasn't the connection, it was that the battery voltage had dropped too low on the bean. Running the arduino code was quickly killing the coin battery on the bean so I switched to two AA cells for beefier 3v into the bean and all is well.
Please be positive and constructive with your questions and comments.