Classic Circuit Playground not flashing EXTERNAL LED

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bmink1234
 
Posts: 8
Joined: Mon Apr 25, 2022 4:06 pm

Classic Circuit Playground not flashing EXTERNAL LED

Post by bmink1234 »

I know this is probably VERY simple but I can not for the life of me get a simple external LED to flash with my CircuitPlayground Classic.
I put an LED + side to Pin #2 and negative side to GND (through a small resistor). This is so simple but it's driving me crazy why this won't work.
Here is the code I put into the Arduino IDE.

Code: Select all

#include <Adafruit_CircuitPlayground.h>
#define LED_PIN 2 /* I also tried pin #6 , #10
void setup() {
  pinMode(LED_PIN, OUTPUT);
  CircuitPlayground.begin();
}

void loop() {

  delay(500);
  digitalWrite(LED_PIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_PIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
Last edited by adafruit_support_carter on Mon Apr 25, 2022 5:34 pm, edited 1 time in total.
Reason: added [code] tags

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Classic Circuit Playground not flashing EXTERNAL LED

Post by adafruit_support_carter »

Nothing obviously wrong with the code being used.

What was the value of the resistor used?

Can you post a photo showing how everything is connected.

EDIT - also, can try changing to 13 here to make sure at least the on board LED can be made to blink as expected:

Code: Select all

#define LED_PIN 13
https://learn.adafruit.com/introducing- ... ep-2921597

User avatar
bmink1234
 
Posts: 8
Joined: Mon Apr 25, 2022 4:06 pm

Re: Classic Circuit Playground not flashing EXTERNAL LED

Post by bmink1234 »

Hi. Pin #13 works fine. Actually I remembered that I had a LED "sequin" (https://www.adafruit.com/product/1758) and tried that. It works just fine.
Originally I used a very small LED with a 100 ohm resistor in series. No luck. I even tried it with out any resistor just to see if that would have enough current. Still no luck. I am not sure the difference between the original LED (probably 3V 20mA max type LED) and the LED sequin. I am guessing I am just not getting enough current. I know that the LED works fine though. When I place it between 3.3V and GND on CircuitPlayground... it lights up very well.
I don't have a way of getting a photo to you currently. I will see if I can get it uploaded later.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Classic Circuit Playground not flashing EXTERNAL LED

Post by adafruit_support_carter »

Double check the LED is still good. They can light up with a minimal amount of current. And their max current is typically around 20mA. If you used it without *any* resistor, you may have damaged it.

https://learn.adafruit.com/all-about-leds

User avatar
bmink1234
 
Posts: 8
Joined: Mon Apr 25, 2022 4:06 pm

Re: Classic Circuit Playground not flashing EXTERNAL LED

Post by bmink1234 »

The original LED is still good. I have gone back and forth between 3.3V and GND.. and then pin #2 and GND with the original 3.3V micro LED. Works only between 3.3V and GND.
Then switched LED sequin between #2 and GND. Sequin worked fine. Head scratching. Maybe my CircuitPlayground is not really getting much current out of Output pins with Digital Write?

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”