#define DATA_1 (PORTF |= 0XF0) // DATA 1 // for Micro#define DATA_0 (PORTF &= 0X7F) // DATA 0 // for Micro#define STRIP_PINOUT DDRF=0xF0 // for ATMEGA
What am I missing?
@Grumpy_Mike: But that's what the manual linked in the shop page suggests.
According to the schematics A0 is PF7 on the Arduino Micro. So your code should read:Code: [Select]#define DATA_1 (PORTF |= 0XF0) // DATA 1 // for Micro#define DATA_0 (PORTF &= 0X7F) // DATA 0 // for Micro#define STRIP_PINOUT DDRF=0xF0 // for ATMEGA
This is because you will fry your arduino by having a voltage of more than the supply connected to it. You need to drive that sort of strip through a transistor.
But according to the specs: External (non-USB) power can come either from a DC power supply or battery. Leads from a battery or DC power supply can be connected to the Gnd and Vin pins... and the Micro has an Input Voltage (maximum) of 6V - 20V.I didn't have BOTH the USB and 12V power supply connected at the same time, just the 12V to vin and ground, then I connected the LED strip to those same two pins + the A0 pin. Shouldn't that work?
with the IC on the strip it seems similiar to this:http://learn.adafruit.com/adalight-diy-ambient-tv-lighting/wiring-1maybe it helps
Wire the common +ve to the 12V supply and measure the voltage between the ground and the wire you want to connect to the arduino. You will see the voltmeter will read 12V. You don't want to connect 12V to an input as I said.
And the LED strip control going to the A0 Output.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16