Hey all,
I am relatively new to the electronic engineering game. I am currently working to create an LED strobe using the Teensy model 2.0 ++ and am having issues keeping my frequency running. When the Teensy is connected via USB to the computer the code runs fine and the LEDs light up according to the written code with the proper frequency (the teensy and arduino programs don't even need to be open on my computer!). As soon as I unplug the USB the LED's light up with a common illumination without a strobe of any sort. I've changed the power sources but I can't get my LED's to light up properly without the Teensy being plugged into the computer. I can use any help you can offer. Thanks!
how do you power the teensy when off the USB?
myles_jerrett:
Hey all,
I am relatively new to the electronic engineering game. I am currently working to create an LED strobe using the Teensy model 2.0 ++ and am having issues keeping my frequency running. When the Teensy is connected via USB to the computer the code runs fine and the LEDs light up according to the written code with the proper frequency (the teensy and arduino programs don't even need to be open on my computer!). As soon as I unplug the USB the LED's light up with a common illumination without a strobe of any sort. I've changed the power sources but I can't get my LED's to light up properly without the Teensy being plugged into the computer. I can use any help you can offer. Thanks!
Code?
Circuit diagram?
My psychic powers are failing me.
The teensy is powered with 2 3V coin batteries wired in series. I am working on a circuit diagram now. Here is my current code.
int led = PD7;
void setup (){
pinMode(led,OUTPUT);
}
void loop ()
{
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(1250);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(500);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(500);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led,LOW);
delay(1250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led,LOW);
delay(4000);
}
robtillaart:
how do you power the teensy when off the USB?
The teensy is powered with 2 3V coin batteries wired in series. I am working on a circuit diagram now. Here is my current code.
int led = PD7;
void setup (){
pinMode(led,OUTPUT);
}
void loop ()
{
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(1250);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(500);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led, LOW);
delay(500);
digitalWrite(led, HIGH);
delay(250);
digitalWrite(led,LOW);
delay(1250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led, LOW);
delay(250);
digitalWrite(led, HIGH);
delay(50);
digitalWrite(led,LOW);
delay(4000);
}
myles_jerrett:
The teensy is powered with 2 3V coin batteries wired in series.
I imagine that's the problem. Coin cells can only provide a couple of milliamps - not enough to run an Arduino + LEDs.
myles_jerrett:
The teensy is powered with 2 3V coin batteries wired in series.
Not enough current. Try using four AA batteries in series.
Try using four AA batteries in series.
And hope that they are just short of 1.5V each otherwise you will exceed the 6V maximum voltage on the processor and fry it.
Grumpy_Mike:
Try using four AA batteries in series.
And hope that they are just short of 1.5V each otherwise you will exceed the 6V maximum voltage on the processor and fry it.
Oh yah, that too. Any number of tiny LDOs will solve that.
Or use 3 batteries and not worry about the voltage ...