AnswerBun.com

Why is Arduino Pro Mini not powering this LED?

Arduino Asked by Don on November 10, 2020

First off, I’m very new to Arduinos and electronics in general, so feel free to explain like I’m 5.

As a bit of background to this question, the project is simply using a Pro Mini to run a servo, with a button to turn it on and off, and an led to indicate when it’s on. To make sure I was getting the button right, I built the circuit on a breadboard with just the button and LED. The button was supposed to switch the LED on and off. It did not.

I removed the button from the equation and just tried to power the LED with the Mini. No go.

It’s a blue LED, so the resistor (100) was chosen assuming a forward voltage of 3.3V and current of .02A. I’ve tested the resistor and LED combo with JUST the battery pack, and it lights up bright like it should.

I have a 9V battery running into RAW (I’ve also tried a 6V pack). I had pin 2 as an output with digitalWrite(HIGH), running into the resistor, then into the LED (+, long end), and then back to a ground pin. I’ve tried other ground pins on the board to make sure it’s not that. I’ve switched pin 2 to analogWrite(255), still nothing. I have tried connecting it to VCC instead. Nothing.

However, writing HIGH to the onboard LED works fine, so I can see that the sketch is indeed running.

I’ve verified the LED polarity. I have tried a different Pro Mini. Nothing. It’s a Pro Mini 328P according to the stamp on the back, which Google says runs at 5V and 16 MHz.

Please tell me what stupid mistake I am making so I can stop wanting to rip my hair out. Thank you.

One Answer

This was my mistake. I had attached the Arduino to the breadboard by pushing in the provided pin strips, and then putting the mini on top of those, assuming that since the pin was through the hole and looked to be touching, a connection was made. It wasn't.

Rather than continue to mess around with fiddly connections, I just took the plunge and soldered the entire thing to a circuit board. The LED and the button work perfectly as expected, and now I just need to attach the servo.

Answered by Don on November 10, 2020

Add your own answers!

Related Questions

How I can send data information without work WiFi to LCD?

1  Asked on September 25, 2021 by abuwesam

       

How to wire L293D chip to a nodeMCU?

1  Asked on September 25, 2021

   

Fastest Communication from NodeMCU to Arduino Nano

1  Asked on September 25, 2021 by prikarsartam

       

Is this circuit risky for an Arduino Uno?

1  Asked on September 25, 2021 by j-francis

   

Write a Struct using ArduinoBLE library

1  Asked on September 25, 2021 by sicks

   

Wait between UART frames

2  Asked on September 25, 2021 by martin-g

 

Memory usage in AnalogBinLogger of SdFat library

1  Asked on September 25, 2021 by harini

     

Sim800 FTP Arduino

2  Asked on September 25, 2021

     

ESP-01 + UNO won’t detect gateway

2  Asked on September 25, 2021 by mrcabana

       

Error reading file

1  Asked on September 25, 2021 by yash

   

Reading 4-20ma signal on arduino

1  Asked on September 25, 2021 by sumit-mann

       

How to use tinygps.h library to measure distance? using NEO6mv2

1  Asked on September 25, 2021 by reiniel-cirujano-antonio

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir