An LED is a type of light source which is typically fairly small and has low power requirements.

learn more… | top users | synonyms

3
votes
3answers
88 views

Unexpected Delay Between For Loops

I made some arduino code for leds that blink down a row and then back again, but when the program is run, there is an approximately 2 second delay in between the first for loop and the second. This is ...
0
votes
2answers
41 views

How to turn a LED if ultranonic HC-SR04 reading is on defined range for some interval

My objective is if ultrasonic readings ranging between 1 to 10 cm and no distance change for 10 seconds or more, a LED will turn on. Here is my current code. #define trigPin 7 #define echoPin 8 #...
1
vote
0answers
24 views

troubleshooting - Turn on a single led in a ws2811 ledstrip with an arduino Uno with FastLed

I want to to turn on a single led in a ledstrip running on ws2811 with an Arduino Uno. The problem is that when I try to turn just one of them on, they all three light up. The strip is a 3-wire ...
0
votes
5answers
102 views

How to run multiple functions one after another?

I want to fade a red LED up and down, then a green LED up and down, and repeat the whole cycle indefinitely. I've been trying to run multiple functions one after another. However my current code ...
0
votes
1answer
20 views

clkI/O 256 & 1024 (From prescaler) not working with driving PWM on Nano board

I've been working with PWM in TIMER0 of my nano board. So, it's working now and I know how to set OCR0A or OCR0B. Then, I went to play with Clock Select Bits CS02 CS01 CS00 in TCCR0B. 0, 8 and 64 ...
2
votes
2answers
49 views

How to animate a LED Strip via wifi? [closed]

I'm remotely connecting my phone to an arduino MKR1000 via wifi, and sending data via HTTP GET (so to switch on the debug LED, I just need to navigate to http://192.168.1.1/debug/H, for example). Now, ...
1
vote
3answers
29 views

How to keep amperage in serial and parallel?

I have a 2000mA AC adapter and also I have the lights that I show here: Each of these lights consume up to 300mA. If I make a circuit with 3 lights in serial, ¿will the amperage of each light ...
0
votes
1answer
21 views

Arduino - Turn on LED when Potentionmeter is used

I'm very new to the Arduino/Microcontroller-world, so please be patient :) I have 4 potentiometers and I want my LED to blink up, when one of these is beeing used. So far., so good.. the ...
3
votes
1answer
78 views

Long run data wire

I need to connect the data of a LED strip (WS2812) to a pin but the strip is 10 meters away using AWG 22. I use a 12V DC power supply. Should I expect some misbehaviour, like the LED not getting the ...
1
vote
0answers
30 views

Testing for bad WS2812B?

I bought a 100 pack of WS2812S SMDs last year (product link) and wired most of them together for a string of Christmas lights for a tree. It was more work, but way cheaper (at the time) than buying a ...
1
vote
1answer
21 views

LED and Switch Compolation Error Arduino 101

I'm getting an error on line 9 for some reason, (digitalWrite(Sender, HIGH);), and I just cant figure out why. My goal is to have two sets of flashing patterns, one for each switch state. I don't know ...
0
votes
2answers
26 views

neopixel not blinking

I have some neopixels, and I have one hooked up to my teensy. I want to have the color change, when the push button is pressed vs not pressed. The LED will change colour when I upload the code, if I ...
3
votes
2answers
43 views

Reading the DotStar datasheet - power requirements

I'm trying to figure out my power requirements for a strand of Adafruit DotStar LEDs - APA102 Cool White, not the RGB. I'm not sure how to interpret the datasheet. In the middle of the product spec ...
0
votes
4answers
77 views

Code for activating a led after 2 minutes and will blink after 30 seconds interval

Can anyone help me to build a code which will activate a LED after 2 minutes when the power supply is cut off and blink that LED after a time interval of 30 seconds. I want to import the code on ...
0
votes
1answer
40 views

How can I use an arduino as an intermediary step between my PC and a LED strip?

Goal My end goal is to have a NeoPixel LED Strip that I can control via software on my PC, with various automatic modes and manual control. Right now all I have is the idea and some research done, ...
1
vote
2answers
89 views

Need help with 2X3 matrix for braille

I'm an intermediate Arduino progammer, and I'm making an electronic braille display for my friend. You can think of this display as an array of 28x3 LEDs(one braille character contains a maximum of ...
1
vote
0answers
44 views

Determining if an LED on another device is on

I'd like to check if this circuit I'm making is correct -- I'm concerned I'll mess up my Arduino. Essentially, I would like to determine if an LED on another device is on or not by measuring the ...
1
vote
1answer
41 views

Why is LED lid when pin is set low?

I made this simple piece of code, to make my LED flash.. Which it does when the pin is set low.. But how does that makes sense? #include "pins_arduino.h" void setup() { // put your setup code here,...
1
vote
1answer
67 views

Individual control of multiple RGB leds

I'm trying to control several RGB leds individually. So far I've been able to control multiple RGB leds using only 3 PWM outputs using NPN transistors as shown here (pic below). I would like to ...
0
votes
2answers
63 views

How to count the number of button press then play sequence..?

when i press the button once, sequence s1() play. when i press the button twice, sequence s2() play. when i press the button thrice, sequence s3() play. when i press the button 4 times, ...
1
vote
3answers
100 views

How to blink LED's unsynchronized?

I'm new to Arduino. For my first project, I want to make aviation strobe lights. My challenge is to use ONE Arduino to blink both sets of lights. My issue is, I DON'T want them to be synchronized. I ...
0
votes
1answer
28 views

Seamlessly loop through LED's - Shift Register

I am using the following code to create a snake-like affect (3 LED's wide) moving through 24 LED's using 3 shift registers: for(int i = 0; i < 27; i++){ setRegisterPin(i, HIGH); ...
-5
votes
1answer
47 views

Weird Arduino LED behaviour

I noticed something when I was trying something with leds; pinMode(13,HIGH); // giving +5V to pin 13. delay(1000); // waiting for 1 sec. pinMode(13,HIGH); // giving +5V to pin 13 again. ...
0
votes
3answers
130 views

Why have resistor at end of circuit cycle if GND dissipates final energy?

The first challenge on the Arduino Uno manual is to make a closed circuit with a button and LED. The voltage is provided by the 5V pin (non IO), connected by wire to (+) on the bus (breadboard). The ...
-1
votes
3answers
79 views

Is applying 5 volts to LED dangerous?

The Arduino Uno manual (from the kit) instructs to connect a resistor to GND when lighting an LED on the breadboard with the 5V (socket?). The red, green, and yellow LEDs don't light up so brightly... ...
2
votes
2answers
54 views

Help with a Memory Issue

Below is some code that I'm writing to concurrently run "animations" on the same strip of NeoPixels. When I try to make use of the Serial monitor to control the program functions, I just get a bunch ...
0
votes
1answer
111 views

Controlling a digital 12V addressable RGB led strip with Arduino?

I have a 12V addressable RGB strip that I want to control with an Arduino, the chips are ws2811s, is there a way to do this as the Arduino is 5V and 3.3V?
2
votes
1answer
45 views

Strobe Frequency Calculation, how its done?

I'm using the Arduino sketch for LED stroboscope found here: http://mehax.blogspot.co.uk/2011/02/arduino-stroboscope.html. Also below, I've inserted the loop part where this calculations are made: ...
2
votes
2answers
68 views

How to control cold to hot (blue to red gradient) RBG LED strip/bulb with a rotary encoder

Im doing a project for university and am struggling to code and setup a rotary encoder that can control the hot-cold variations. Much like the idea of communicating temperature selected by turning a ...
1
vote
1answer
38 views

Controlling 12v DC LED strips using Arduino UNO

I have 2 LED strips with 6 LEDs on each. They use a 12V power supply. My question, how can I use them like regular LEDs using Arduino UNO? Without any MOSFETS or transistors if possible. And can I ...
-1
votes
1answer
37 views

Why does the current drop through a multiplexer?

I am trying to control 64 leds through a number of 8:1 analog multiplexers. The input is from pin 11 on the Arduino which is giving 40mA (maximum) and it is pulsed at 38kHz. Then I use other pins to ...
0
votes
0answers
40 views

Why is pin not reading voltage when code is implemented?

I'm learning to use the Adafruit LSM9DS0 and have cobbled this code together such that an LED will turn on when it detects motion on the accelerometer, specifically when the magnitude is over a ...
0
votes
1answer
58 views

Why is one LED more luminous (brighter) than the other?

Given that there is a circuit with two pins (12 and 10) from an Uno providing power to LEDs on two separate branches, why is the yellow LED dimmer than the green LED? (Please see below image.) To my ...
1
vote
1answer
54 views

LED bar graph script not working

I have LED bar graph on pins 2-11. Eventually I want to use a voltage divider to figure out the amount of voltage left in a power supply. Currently, this script should set the number of LEDs on the ...
1
vote
1answer
62 views

build simple IR sensor with 220 ohm and 1000 ohm resistors

I am brand new to the arduino board and I am trying to build a simple IR proximity sensor. I bought a handful of emitters and detectors from amazon here: https://www.amazon.com/gp/product/B01HGIQ8NG/...
1
vote
2answers
69 views

Testing Logic Gates using Arduino

hello guys is there someone who can help me with my first project. its basically about logic circuits. by using tact switch and pull-up resistor to set the values to logical 1 or 0. the output can be ...
1
vote
3answers
201 views

Arduino Micro: how to switch off its blue power LED?

everybody! I have a genuine Arduino Micro ("designed with adafruit", made in Italy) which is working perfectly well. One thing I'd like to do but cannot figure out how (or at all), is to turn off ...
0
votes
1answer
71 views

Problems with Powering Led Project Through Vin Pin

I am working on lighting some WS2812 Leds with a nodemcu form hiLetgo. The project works when it is powered from the usb that is on the board, but as soon as it is powered from the barrel jack, the ...
0
votes
0answers
29 views

For statement break problem

I'm trying to make a timer but running into a problem. The seconds segment is working fine, however in the minuets segment I have a problem. I've currently got a commented out break to stop it ...
1
vote
2answers
42 views

Switch statements with Bluetooth serial input not working

I am trying to control the brightness of an LED using PWM. I am also trying to make it so that when I click a button on my bluetooth app, I can get it to change the frequency of the PWM pin. For ...
0
votes
0answers
72 views

Problem with arduino nano and nrf24l01

I connected my clone of arduino nano (with CH340) and not-clone of arduino leonardo to nrf24l01 module and I have uploaded simple sketch which turn ON diode when I press button on another board. ...
0
votes
1answer
194 views

Arduino PWM fading led in assembly

I'm writing Arduino UNO (=ATMega328P-PU) programs in assembly to save memory, so I use avra.exe (same as atmel studio's avrasm32) to compile and avrdude to upload, and simple programs like blinking ...
1
vote
1answer
138 views

How to make a Smart Light Bulb? [closed]

I was wondering what I would need and what I should do, to make a Smart Light Bulb, like the Hue one from Philips. I know these light bulbs can be controlled by their Apps from the smartphone, is ...
0
votes
0answers
164 views

sim800 doesn't work

I am using sim800L module to connect to a hosted server in the cloud. But the problem is that sim800L sometimes registrates to a network, and sometimes it gives errors. I have spent a lot of time to ...
0
votes
1answer
53 views

Audio Input into A0?

I saw a YouTube Video of someone who used an aux cord input into pin A0 on their Arduino to control a strip of LEDs. I have a strip of Adafruit's RGB NeoPixel LEDs, but I'm not sure how to input my ...
0
votes
3answers
45 views

The L LED Keeps Itself On

I am using a Arduino Uno 3 for line follower robot. However when I power the Arduino Uno, the L led is turned on and is never turned off. After a bit of searching I found out that the L LED is ...
0
votes
2answers
120 views

how to implement PWM LED fading into a random case switch?

Ive recently bought my self a arduino Mega 2560 and managed to get a sort of RANDOM function to work with different cases which go of by the number selected. My question is is there a way to also make ...
0
votes
2answers
68 views

Can't play melody and FastLED lights at same time

I'm trying to make an OO state machine based program to play music and lights at the same time. It uses the FastLED library and a 13 pixel neopixel strip. I've confirmed that with the currently wired ...
0
votes
1answer
23 views

Arduino wire question

I am a complete newbie to Arduino and I just received an ARDX arduino starter kit (the one that comes in the transparent green case) I have been following the instructions for Circ-01 for the blinking ...
0
votes
1answer
212 views

How do I stop the Arduino TX/RX LEDs from flashing? How do I turn off the “ON” LED?

I actually have a SparkFun RedBoard, but I think this question applies to Arduino Uno and other boards as well. I'm wondering how much control the programmer has over the various LEDs on the board. ...