Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-2 votes
1 answer
282 views

LED blink patterns with multiple LEDs with millis() not using Delay()

I want to make LED blink patterns with multiple LEDs with the millis() function. I researched about it but did not find a perfect solution. I found one blog, but it is using a LED pin number array; I ...
coder's user avatar
  • 1
2 votes
2 answers
992 views

Toggle button switches through case statements with button debouncing

The overview of my code is that I want a toggle button to be pushed and each button push will move the code to the next case statement. In each case statement, there will be different LED functions. I ...
Myles's user avatar
  • 73
2 votes
2 answers
87 views

Trying to keep my main code running unless an input is LOW for a certain amount of time

I have code that creates a sequential signal with 4 LEDS. It cascades to the right. This works when I hold down the input button. What I need help with is having the code run exactly the same when ...
Myles's user avatar
  • 73
3 votes
1 answer
974 views

How do I run 4 LEDs sequentially based off of a push button input?

I am trying to create a program that runs 4 LEDs sequentially while also being able to do other things with different inputs and outputs. Because of this, I am using the millis function and not the ...
Myles's user avatar
  • 73
3 votes
1 answer
91 views

Fader OOP Problem

This code works and it can fade three LEDs without any problem, obviously you can even add more of them : ) // Pins Definition const int button1 = 13; const int button2 = 12; const int button3 = 11; ...
alessandromrc's user avatar
1 vote
3 answers
187 views

Ignoring the first high output from the sensor

If the vibration sensor with Arduino detects two high inputs within 1 minute, I want the led to flash in one second. My ability to write Arduino code is very low; I tried with millis() but I couldn't. ...
Sabri73's user avatar
  • 51
0 votes
1 answer
564 views

How do I put timers by using millis on 3 PIR sensors?

I want to make the PIRs to stay on for about 1 minute. I've found the code that can do so for 1 PIR, but I dont know how to apply the code for 3 PIRs. Here is the code for 1 PIR with timer using ...
ann's user avatar
  • 3
1 vote
3 answers
215 views

Time counting using millis

I am trying to write a code where photoresistors (a or b) sense blinking of the light, and lights LED (k and d) simultaneosly with that blinking. And I want that when both photoresistors sense dark ...
Ieva Kriščiūnaitė's user avatar
0 votes
1 answer
264 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 ...
Lelouch Lamperouge's user avatar
0 votes
2 answers
844 views

Press on pressure sensor once, turn on LED for 6 seconds

I am working on a project where I would like to press on a pressure sensor (0-1024) once and turn on the LED and turn off by itself after 6 seconds. I am quite new to arduino and I can't seem to ...
sseo's user avatar
  • 1
0 votes
2 answers
86 views

Issue with simple project

I'm new to Arduino and today I have a problem with this code: int led_1 = 10; int led_2 = 11; int led_3 = 12; int button = 3; int time = 0; byte val = 0; void setup() { // put your setup code here,...
linofex's user avatar
  • 103
6 votes
3 answers
6k views

Visual clock with millisecond display refresh rate

I need to create a millisecond capable visual clock - I will use the clock for visual frame synchronization of multiple cameras. I found this project but it seems to use a LED display that only has ...
Kozuch's user avatar
  • 167