Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [led]

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

0
votes
1answer
83 views

Why is Arduino Pro Mini not powering this LED?

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, ...
-1
votes
0answers
27 views

Why won't this “Simon Says” sketch accept button input?

I tried to create a "Simon Says" game with Arduino, 4 INPUT_PULLUP type buttons and 4 leds. The random sequence generating part apparently does the trick, but the same can't be said for the "input ...
0
votes
1answer
45 views

I use Bluetooth to control LED,but LED can not turn off

I use android to send the data to Arduino. when i send 0x02, LED turn on, and the breathing LED code are work. But when i send 0x03, it can not turn off the LED. i use UNO R3 the bluetooth is HC06 ...
0
votes
0answers
136 views

256 (8x32) LED Matrix via ESP32-Pico-Kit_V4 possible? (Daft Punk Helmet)

I am currently planning on a Daft Punk Helmet. But the available kits are terribly expensive. I am looking forward to using a 8x32 LED-Matrix(with 256 separate 5mm LEDs) and having a few different ...
-1
votes
1answer
53 views

Only one of 4 LEDs are lighting up

Before you ask - I've checked that the LEDs worked before putting them in my circuit. They all work. I've connected 4 LEDs, shown in the arrangement below, up to my Adruino Lilypad. Pin 9 was used as ...
0
votes
1answer
71 views

Switch controlled power saving esp8266

I'm trying to build a door sensor with the esp8266. I want it to be battery powered and use deepSleep for power saving. I'm going to use a normally closed reed switch between D0 (GPIO16) and RST. I ...
0
votes
0answers
33 views

How to upload data to program over USB port

I am working on a set of Visual poi (like these https://lighttoys.cz/store/vpoi/v4/) and need to upload new pictures to the controllers every now and again. Currently I use a program to convert a ...
1
vote
1answer
82 views

Infrared frequency recorded with saleae [closed]

i'm trying to decode infrared signal recorded with the saleae. It makes me wonder why saleae shows so low values for the frequencies from 0.1kHz to 0.8kHz. I found that standard for the IR is around ...
1
vote
1answer
837 views

LED strip problem… getting red when expecting white with lots of pixels. Fine with 1 pixel

I have an Arduino Uno. I bought this LED strip: https://www.amazon.com/gp/product/B019DYZNO6/ref=oh_aui_detailpage_o08_s02?ie=UTF8&psc=1 Starting initially using FastLED library. When I tried ...
0
votes
2answers
78 views

Trouble using proximity sensor as input and LED output

I was wondering if anyone had any pointers or advice to make this project work. Essentially I would like to have the LED fade (meaning like fade on and off at a calm rate) at one rate when there is ...
2
votes
1answer
2k views

Turn off the second builtin Nodemcu 0.9 led

I'm making a low energy consumption device so I'd like to turn off all the led when I'm idle. Unfortunately the nodemcu turn on a blue led while I'm idle (during delay(ms)) Here is my code: #define ...
1
vote
2answers
350 views

KY-022 IR receiver, LED always on, no output

I've been trying to use a KY-022 to read IR signals. However no output is being produced and the LED on the board is constantly on. Board: Arduino Uno R3 I followed the procedure found here. The ...
0
votes
3answers
44 views

WS2812 HELP. Need name of Unkown component [closed]

https://i.imgur.com/u5SIvLo.png I need to know what the little "thing" that i marked in blue is and how it works. Thanks. picture taken here: https://www.sparkfun.com/products/13282
0
votes
1answer
244 views

Arduino Reaction LED game

I have this code and it is a reaction light game. When you press the button on pin 11 it starts the game and the lights should osculate back and forth. The main goal is to press the button when it ...
-1
votes
2answers
38 views

How to create a device with buttons that records when they are pressed [closed]

I want to build a very simple device, which has a bunch of buttons for switching "settings" and LED lights to show which "setting" it is on. I also want it to record the times of the transitions ...
0
votes
1answer
43 views

RGB LED strip green LEDs cannot be dimmed to less than 50%

I have an RGB LED strip which I want to control with my arduino uno, everything works fine, except for the green LEDs. They cannot be dimmed to less than 50%, because they will simply turn off. I ...
0
votes
1answer
592 views

Electric meter pulse counting using LLC

I am trying to create an electric meter reading setup for Arduino, and I have been searching for it and almost every posts available is using LDR sensor. http://www.reuk.co.uk/wordpress/solar/...
1
vote
3answers
101 views

Turn on each of the LEDs in order, by setting the cycle delay to 100 milliseconds

I have a tutorial to finish and I don't know the code I have to use to make all (4 LEDs) to turn on in order. So this is my code and my simulation. Thanks in advance! My Code: void setup() { ...
0
votes
1answer
203 views

How to scroll data in LED dot matrix through multiple modules?

I've been struggling in this issue for a long time, I know there are people who have done it. But, I don't have much experience in C to have the skills to design or develop such complicated functions....
0
votes
1answer
242 views

AnalogWrite only working for one pin of RGB LED

I'm working on some code for a Nerf blaster with an LED indicator light. When attempting to use analogWrite to PWM my LED pins, only one pin (blue) behaves as expected and dims down. The other two (...
-1
votes
1answer
41 views

yellow LED not turning off in traffic light simulation

I wanted to make a simulation of a traffic light, and since I don't have any sensors I used a button to change between the different states (red/stop and green/drive). When the states are changing I ...
0
votes
1answer
63 views

How to replace the delay() function in my code?

I'm new to Arduino and I currently have a project that involves the control of an LED via ultrasonic sensor. Basically, if an object passes through the ultrasonic sensor, the LED will be ON for 5 ...
0
votes
1answer
49 views

arduino rfid with led, code is compiling but not working as expected! [closed]

code is compiling, what I want is that when rfid tag kept led should get on but instead its getting to the else loop. int count = 0; char input[12]; // rfid input int led = 3; // led pin char first[...
0
votes
1answer
455 views

How to blink the LED forever when detect an object is more than 30 cm away using ultrasonic sensor

I would like to make an alarm system using ultrasonic sensor. My aim is to blink an LED for ever once ultrasonic sensor detect an object is more than 30 cm away. But the problem is that my code some ...
0
votes
1answer
45 views

how to make this work auto on off led with fading [closed]

I'm working on a project with Arduino to make LED timer with fading feature. After doing some research finally I wrote some code but it's not working until now P.S i don't have any knowledge in coding ...
0
votes
1answer
95 views

LED staying on after first relay trigger [closed]

I seem to have a strange issue with a simple circuit involving a relay. The problem is that the relay appears to work absolutely fine (judging from the onboard led) but the the led stays on after ...
1
vote
1answer
134 views

Confusion over Transistors for a switching circuit with an Arduino Mega 2560

Apologies if this is a stupid question asked by a noob, but I've looked around to try and find the answer and just can't work it out. Basically, I'm making a project on thingiverse (Glitch's MK2 ...
0
votes
1answer
2k views

LED blinking count with LDR sensor [closed]

How to count +1 all the time if LED blinks with LDR sensor Image: If i turn on led it must count into serial monitor 1 and if i turn off led and turn on again then it counts 2. To turn on led I ...
0
votes
1answer
92 views

Joysitck with servo, LED array and buzzer [closed]

Does anybody know of a sketch that can turn a single servo 180 degrees clockwise/counterclockwise with the x axis of a joystick, light a bar graph LED with the Y axis, and sound a buzzer when the ...
-1
votes
2answers
52 views

Why the program keeps applying what is in loop in first case and stops in the second one? [closed]

In the first program after removing hand from the button it keeps on, means it keeps applying what is in the loop: int led = 13; int button = 12; void setup() { pinMode(led, OUTPUT); pinMode(...
1
vote
2answers
206 views

Multiple LED on arduino [closed]

I am currently trying to control multiple LEDs with one Arduino Mega 2560 board. However, since each LED needs 3.6 volts and the board only supplies 5V I cannot make more than one light up. Is there ...
3
votes
5answers
579 views

Emergency Vehicle - Make two LEDs flash with buttons and a passive buzzer change sound

My Dad and I are just learning how to use my new UNO. We have learned how to make leds flash at the touch of a button. We have also learned how to make a passive buzzer sound at the touch of a ...
1
vote
1answer
250 views

Portal gun sound effects and lights

I'm building a portal gun from the game Portal and I'm struggling with the wiring for the lights and sound. I've the lights working using the first image from Instructables and adding more LEDs ...
0
votes
1answer
68 views

How can I light one led from two different sensors?

I want to light one led with two sensors, the first one is a PIR and the other one is a Photocell sensor. The idea is to turn on the led if the PIR sensor detects movement, and also to turn the led ...
2
votes
1answer
96 views

LED fade class strobes for unknown reason

Okay, so here is what I'm trying to accomplish: I have four LEDs, under my fish tank, that I want to fade in and out. I want each LED to fade at a different rate, start at a different "brightness" ...
0
votes
1answer
1k views

Arduino Uno: Driving a small LED strip with 2N3904 NPN

I'd like to know why I cannot dim the small LED strip with my design. I can only turn them on and off. This is a problem for me as I wanted to have a fade effect. Here is my circuit: The voltage from ...
1
vote
2answers
513 views

How to fade an LED in response to a sensor?

As the sensor "sees" an object nearby, it makes the LED go to full brightness and it remains like that for as long as the sensor keeps on sensing the object. Then, as soon as the sensor stops sensing ...
0
votes
3answers
2k views

Change the sequence of LEDs with button press

I am new to arduino. I have created a circuit , here is the image: I want something that as I press the button the sequence of LEDs will change and as I press the button again , the sequence will ...
0
votes
0answers
177 views

Can 2 or more LED strobe Lights Flash in Sync?

I'm trying to build a strobe light that has at least 1 mode that can sync with another unit. The strobe light has 2 colors, white and red which are driven by 2 qlite drivers which are controlled by ...
0
votes
0answers
75 views

Arduino Code hang

I am working on a project to dim/brighten the LED lights between each hour. To make the program readable i have only kept the code for few hours. For example if T1 is at 255 PWM and T2 is 20 PWM, the ...
1
vote
2answers
431 views

Arduino LED flashes with one button press

I want the LED to flash when I press the switch once, but it keeps flashing. I tried the idea of just lighting the LED and keeping it lit with just one button press, so I wrote: int led=13,button=12; ...
3
votes
1answer
320 views

Overheating Shift-Register(74HC595)

I am working on a project where I need to use around 50 LED's connected to an Arduino UNO board. To begin with i worked on the tutorial provided by Arduino (https://www.arduino.cc/en/Tutorial/ShiftOut)...
1
vote
1answer
508 views

Do I have to wire up my WS2812 LED strip in “series”, if I want to address each LED individually?

Let's assume I want to make an asterisk (*) out of LED strips. I want to control each leg individually, while still being connected to only one GPIO pin. The layout I had in mind, looks like this: ...
-1
votes
2answers
150 views

How to identify RGBW LED pins? [closed]

I have a RGBW LED but I don't know how to identify the negative and the colors pins. I tried different combinations with an Arduino Uno but it never produce light. I never used it so I am not sure ...
-1
votes
1answer
28 views

How do I write a program that turns on both on board LEDS ONLY when BOTH switches are ON [closed]

int btn1=0; int btn2=0; void setup() { // put your setup code here, to run once: pinMode(GREEN_LED,OUTPUT); digitalWrite(GREEN_LED,HIGH); pinMode(RED_LED,OUTPUT); digitalWrite(RED_LED,HIGH)...
0
votes
1answer
24 views

Tinyduino I/O line voltage level

Does anyone know what the I/O line voltage level is on the Tinyduino? Tinyduino I want to run a MAX7219 LED array with it, like this one: LED Array
0
votes
1answer
450 views

MAX7219 library that can compensate for poorly designed/miswired 8x32 panel?

I have this sample code: #include <MD_Parola.h> #include <MD_MAX72xx.h> #include <SPI.h> #define MAX_DEVICES 4 #define CLK_PIN 11 #define DATA_PIN 12 #define CS_PIN 10 ...
0
votes
3answers
87 views

prgramming arduino led on then off

i want the led to light at the beginning and stays like this for a while then turns off, so i wrote: int led=13; void setup() { pinMode(led,OUTPUT); } void loop() { digitalWrite(led,HIGH); ...
-1
votes
3answers
80 views

Yellow LED got burned, green LED didn't [closed]

I'm not talking about the onboard LED at the Arduino board here. What those LED's mean, is the LED's we usually plug at the breadboard. I plugged in a yellow LED and a green LED onto a breadboard. ...
-1
votes
2answers
82 views

I am having trouble with fading two LEDs

I've tried to modify this code, but everything I tried failed. Where am I going wrong? All I want to happen is when button 1 is pressed LED 1 fades up and when released LED 1 fades out and the same ...