Thank you. I don't understand why this next step in using arduino seems to be overlooked in so many tutorials but your explanation is clear and concise and moves me comfortably along my programming journey.
Thanks a lot bro. Among all of the videos for combining codes yours is the only one that help me. All the other one are just not explicit and I can't see clear what they're are doing or saying things that I don't need. Thanks again. Let me know how I can contact you with a faster way for help. Cause I'm working on a diy project.
harash bardhan i m giving a example... imagine i wanna make Arduino bt car...in my sketch there r only 2 channels outputs...1st for motor 1 nd 2nd for motor 2...so can i combine the sketch for twice nd get 4 channels outputs???
It is now 2022 as of tomorrow so this has probably been pointed out already but just in case i will point it out again. At about 3:55 the () are to specify the passed variables, the void that you discussed is the type of variable for the return variable from the function. Not at all how you described them. So just because a function is specified as void functionName() does not mean that you can not pass variables. The void means that there is no return variable from the function, while the () with no data type and variables specified means that no variables are passes to the function.
Thank you so very much in posting this video, It has been a great help to me in leaning how to combine sketches. I do have a question, should one always add the imported sketch below the existing sketch?
Hi, I have 3 different sketches I need run at the same time. 1 sketch uses multiple servos, second is multiple leds, third is the play of a recorded track. Do I use 3 sketches for 1 arduino or do I use 3 arduinos and sketch individually. If the latter, i don't know how to connect 3 arduinos and make that happen. I'm trying to make a animintronic project and need all 3 sketches to start with a push of a button. Please help with short answers. Thank you.
just type them one after another, there is no problem combining libraries. Type in the beginning of the code: #include #include #include its just an example
Great video and explanation but please help us how to add two pwm program add to one sketch. One sketch used times0 and timer2 another pwm used timer1 so how to make setup and loop functions please
if there is no name on it but a serial number and you already know its Arduino search by the serial number. BUT if its Arduino it must have a name, all arduinos i have seen had a name...
The example he gave will work fine if you make the first delay delay(20000); // 20 Second delay As you most likely will not be holding down the button for 20 seconds it will work fine as is. But if you need to make sure the button (or switch of some type)is not still pressed (HIGH) you need to add a check to see if the button state is still HIGH by reading the switch again in a loop until it is no longer HIGH and will ONLY light the LED after a new press of the button. Use this command after your delay(20000); while(digitalRead(pushButton)){}
Sir is this channel still active i have some question regarding combining sketches im a student at philippines actually this is my first time using an arduino for my thesis