Thank you for this series of tutorials Rudy, they will be really useful for me in the building of my layout, I really like the idea of being able to change the times manually, and running so many different types of lighting situations on the layout. Well done!
@HarburnOO
5 жыл бұрын
Great information put across very well, looking forward to more from you.
@marzukiothman4323
5 жыл бұрын
Thank you for this tutorial Rudy, have a good day
@gigsup
3 жыл бұрын
Hi Rudy, I've been following along with this project over the past 2 months, applying your knowledge shared here with a dual stepper motor project I'm working on. I've built a box similar to the one in your video with DuPont connector outputs, so I can follow along easily. I particularly rely on your patient explanations of how your code applies to the project. Thank you so much for sharing this, it has increased my enthusiasm and confidence for being able to do something which I had really no idea where to begin with.
@rudyshobbychannel
3 жыл бұрын
Thanks for your feedback ... it's appreciated.
@naboulsikhalid7763
4 жыл бұрын
fantastic, very useful. thank you for sharing knowledge.
@sukrudenizisil
4 жыл бұрын
An elegant solution :)
@solapowsj25
2 жыл бұрын
Class. Thank you🌹.
@adithyasreekumar4030
2 ай бұрын
Thank you so much ☺
@rudyshobbychannel
2 ай бұрын
You're welcome. Enjoy coding with Arduino.
@AbdulHamid-iq3fh
5 жыл бұрын
Hy rudy i have one project using multitasking arduino but i don't know to do, i need this project can do more than one void at same time, like i do void a () and void b () at same time, can you help me plz
@DodgyBrothersEngineering
5 жыл бұрын
Seems to be a number of programmatic issues with your code... For example you declared "led" as a byte, then later you tried flipping it using "led = ! led" a byte can store values from 0 to 255, how do you flip 0 to become 1? What you should have used is something like a boolean where there are only true or false options. So it is already one when you declare it, and as soon as you use the not statement it becomes the other. Also other issues further in.
@shrikantnikam2426
4 жыл бұрын
Is it possible to make millis function in separate tab and use millis single line command like delay? For make code more simpler
@rudyshobbychannel
4 жыл бұрын
Maybe an Arduino timer library can bring what you are looking for: www.arduinolibraries.info/libraries/arduino-timer
@anujsaini9353
3 жыл бұрын
Thank you for explanation, Sir. I want to know, weather millis function can be used for RCWL sensor or not. I tried but nit succeeded. Can U plz guide me. Code as below and I want sensorVal=1 for 5 min int =rcwlPin=2; int=sensorVal; cosnt unsigned long Interval=1000*60%5; unsigned long PreviousTime=0; void setup(){ pinMode(rcwlPin,INPUT); Serial.begin(9600); void setup(){ sensorVal=digitalWrite(rcwlPin); millis()=unsigned long CurrentTime; if(sensorVal==1){ if (CurrentTime-PreviousTime>=Interval){ sensorval==1 PreviousTime=CurrentTime; } } else { (sensorVal==0) } Serial.println(sensorVal); ) I upload this sketch, but not getting desired result. Kindly resolve it. Thank you
@fleckditchburn2494
8 ай бұрын
thans very good. how can you make a buzzer on the hour every hour thank you
@rudyshobbychannel
8 ай бұрын
In the loop, test if the current millis time is larger than 3600000 and if so, activate an output for the buzzer. Now set the new buzzer time to the current time plus 3600000 and it keeps going.
@TheVaskrsija
4 жыл бұрын
Blinking two or more LED's simultaneously can be done with delay, and it can be done very easy, and one more thing, in your example, you didn't have to use two if conditions (no need for two intervals and time_for_action), one is enough #define INTERVAL 100 unsigned long time_for_action int i =0; if (millis() > time_for_action) { time_for_action = millis() + (unsigned long)INTERVAL; i++; if(i%3==0 )//each 300 [ms] led_1=!led_1; if(i%10==0 )//each 1000 [ms] led_2=!led_2; } digitalWrite(8,led_1); digitalWrite(9,led_2); of course, i must be global variable, and when it reaches certain value, it can be return to zero
@solapowsj25
2 жыл бұрын
Yes, truly. This short and crisp version is excellent 💯. I just tried it out. It's working wonderful with a 🔴 led and 🟢 led.
@bernardolupianez7808
2 жыл бұрын
beautiful. Thank you!
@maximusanelo8163
4 жыл бұрын
Hyyy i hope everything is good. I need some help i have this project. And my goal is to control two 12v fan I have a. L298N motor driver controller I also have a. timer delay relay I also have a .elegoo uno r3 I also have a. Lcd screen 1602A And it should all be controlled by the bluetooth dsd. My goal is to be able to controlthe fans with my phone. I want to be able to set a timer on the fans and also turn it off when i want. Is there any way you can help me
@rudyshobbychannel
4 жыл бұрын
That is too large a project for me to take on Maximus. I'd advise you to split it up in several small projects first. like control the motor, use the LCD screen, communicate via Bluetooth and then combine it all. What you could also do is use a different processor like the ESP8266 which is much more powerful and has wifi on board.
@maximusanelo8163
4 жыл бұрын
@@rudyshobbychannel its ok bro its always good to have a reply and this reply is very good i really thank you alot. Im allways watching your videos. Thankyou very much 🙏🙏🙏
@Tubeunus
3 жыл бұрын
I am blinking LEDs with Millis() . Now I want to set a duration for this program to stop after e.g., 5 minutes.
@rudyshobbychannel
3 жыл бұрын
Create a second timer that when it is time (5 minutes is 300000 ms) changes a variable from 0 to 1. Place the blink code if an 'if' statement that tests the new variable.
@Tubeunus
3 жыл бұрын
@@rudyshobbychannel I have now solved it thankyou Now I want third led to glow when other led have 30 seconds left get OFF.?? Do you use esp8266 or can you suggest some arduino code for it??
@nanditofernandeshornay8967
Жыл бұрын
Sr. please make the code bellow becomes millis: Void loop () { if (digitaRead (tombol)==0){ digitalWrite (led, HIGH); delay (3000); digitalWrite (led, LOW); delay (3000); digitalWrite (led, HIGH); delay (3000); digitalWrite (led, HIGH); delay (3000); } else { digitalWrite (led, LOW); } } How to be version millis Sr..???.
Пікірлер: 28