Questions tagged [led]

A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator lamps in many devices.

A light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator lamps in many devices, like mobile phones or micro-controller boards.

798 questions
-2
votes
1 answer

How do i make an ultrasonic sensor trigger an LED to stay on until reset?

So, I know it's probably SUPER simple, but I'm new to arduino and I'm just drawing a blank. I'm making a motion detector with an HC-SRO4 ultrasonic sensor. Right now I have it set so whenever it senses an object within 60 cm, it turns on an LED…
dylnhrhr
  • 59
  • 4
-2
votes
1 answer

blinking WS2812 fastLED with milis arduino

I'm trying to get my led to blink every 2 seconds using millis. Delay is not a possibility as I have other sensors running. So far I got this, but it does not seem to work #include "FastLED.h" #define NUM_LEDS 12 // number of LEDS in neopixel…
-2
votes
1 answer

How can I combine these two for loop statements?

Hi I'm using an Arduino to have a column of 4 leds streak across from left to right then back across on a 4x16 led panel. Currently I am using two for loop statements to make this happen but I'm wondering if there is way to combine the two loops or…
Nik
  • 23
  • 6
-2
votes
3 answers

Binary Simulation Using LEDS in C

The goal is to take any int negative or positive and get the binary of it. then take that binary if it is 4 digits or less and display it on LEDS on raspberry Pi. No matter what display the binary with printf. It needs to be scalable so if you want…
jjjj4444
  • 1
  • 4
-2
votes
1 answer

On-board LED, doesn't turn on/off

I just started working with STM32F407VGT Discovery kit and I for the start I wanted to turn on/off LED's on-board. I am using CubeMX to generate initialization code and SystemWorkBench Eclipse to compile and also ST-LINK STM32 for programming my…
David
  • 1
  • 1
-2
votes
2 answers

Call back function to be called whenever hardware timer elapses a specified elapse time in STM32F101

Hi I want to toggle LED with timing as follows 100ms ON1, 250ms Off1 1250ms ON2, 1500ms off2 and this cycle gets repeated (Both ON1 off1 and ON2 off2 pair repeats) For this I have planned to utilize hardware timer with elapsing timings as…
Taala
  • 41
  • 1
  • 5
-2
votes
2 answers

How would I import an image to an Arduino and convert it to a binary bitstream?

I am working on a project to transmit data using an array of LEDs. However I'm having trouble importing an image to an Arduino. Once I have imported the image I would like to convert it into a binary form so I can transmit the data stream. Could…
Krish
  • 1
-2
votes
1 answer

Toggle LED Python 3.x tkinter

I'm trying to toggle an LED on and off using a GUI. When I execute the code I get a blank box just saying "tk" for the title. import tkinter as tk class Application(tk.Frame): def __init__(self, master=None): super().__init__(master) …
pr0xylien
  • 3
  • 3
-2
votes
1 answer

akku powered esp8266 led stripe system

I want to create a system to control a led stripe with an esp8266, it would be easy if I had a socket for the power supply, but it has to be mobile so I need a akku for it Could you guys please give me some tips for my idea :)
Benjamin_Ellmer
  • 87
  • 1
  • 1
  • 6
-2
votes
1 answer

Display an Array of HEX values on an LED Matrix with Arduino

So I wrote a script in Processing that can output the HEX values of every pixel of any given image into an array. Im trying to get this FastLED library to read the Array and Im getting so many different errors. I tried changing the HEX's to strings…
-2
votes
2 answers

5 volts to breadboard not working

I am trying to verify I have power and verify positive and negative wires from cyberpower plug. I can't get this led to light up. I am going to attach two pictures one of the breadboard setup and one of the power module. The power module has a…
Mark
  • 503
  • 6
  • 20
-2
votes
1 answer

Arduino does not execute command from serial and slow to execute commands

I have not been on stack for a while so I do apolagize for that, the community has always helped me and really want to thank all for that first of all. I am having a problem with an arduino project I am trying to make the arduino make rgb light go…
The Law
  • 83
  • 1
  • 14
-2
votes
1 answer

LED color responding to Light Sensor values

Hi there I wasn't sure if anyone could help me I am trying to get my RGB led light that I have put on my arduino to change color depending on the amount of light read from a Photoresistor module. I'm not really sure how to go about coding that part…
mm19
  • 87
  • 1
  • 10
-2
votes
1 answer

Python - attempting to make a morse code LED

i have attempted to write the code such that it will tell you to input your string. at which point you type a string for example lets say you type "purple" then press enter. the code will run and get the length, then instead of getting the first…
Ben Vagg
  • 3
  • 2
-2
votes
1 answer

program a led screen in JAVA (for example)

If I have an led screen how this: http://puu.sh/iweqM/097f48c278.jpg Can I program an application im Java? There are an RS232 cable. In a normal way, we have to use an application that is already done, but can I done my application for plug on the…
anubis
  • 1,425
  • 5
  • 18
  • 47