Arduino Programming Part 3 // Maker 101 | I Like To Make Stuff
Вставка
- Опубліковано 14 жов 2024
- Now it's time to write some simple code and test a functioning (simple) Arduino project.
Want to learn more? I made an online course!! arduinoformake...
HERE'S WHAT YOU'LL NEED:
amzn.to/1MDlgjI - Arduino Uno
amzn.to/1OoSRPE - Electronics Parts Kit
amzn.to/1OoT9pI - Breadboard & Jumper wires
Arduino development environment (IDE): www.arduino.cc...
Subscribe: bit.ly/ILikeToM...
Check out my TopVideos!: bit.ly/ILikeToM...
Learn 3d modeling, get digital plans, and cool merch at
iliketomakestu...
Want to support ILTMS? Get exclusive content and more...
www.iliketomake...
FOLLOW:
/ iliketomakestuff
/ iliketomakestuff
/ iltms
#ILikeToMakeStuff
About I Like To Make Stuff:
We have lots of projects including woodworking, metalworking, electronics, 3D printing, prop making and more!
These videos are our attempt inspire and empower others to make the stuff that they want to have. Hopefully you'll see something here that will inspire you to make something that you're passionate about!
Arduino Programming Part 3 // Maker 101 | I Like To Make Stuff
• Arduino Programming Pa...
I Like To Make Stuff
/ iliketomakestuff
You're currently my favorite channel on UA-cam. I wish you made more videos, but I realize it takes time to get quality. Keep up the good work!
+Robert Maxson Thanks Robert!
I got my Arduino Starter Kit for Christmas and already have my LED blinking, reacting to a button, and changing patterns. I can't wait to get home today and hook up the potentiameter and give this circuit a go. Thanks for expanding the types of projects you're doing. I love the variety and appreciate the education.
That was a great introduction video doing terrific job at simplifying embedded coding and basic electronic.... Only one recommendation... In your montage, i would strongly suggest that you let the "IDE Screen" last longer as opposed to the shots showing you... It's not that you are ugly or anything... it's just that you should show what you are talking about using the IDE as a visual support.
Trust me on this one !
very true.
It wouldn't need to be specifically switching between faceshot and IDE. I would recommend rather going for splitscreen, so the viewer can choose the focus. It might be also helpful to show the code flow better while explaining what it is doing. A little extra would be going through the code line by line and annotating the values and explaining it like you did, but highlight the current line synced to the audio.
+dyssynchro Agreed, I had to go back in the video to understand what he was talking about.
I love your videos on many levels but there are two things in particular that i very much appreciate:
1. You edit them. Your videos a packed with info, not a bunch of chatting to fill time as you go about the process. I have to keep my mouse on the pause button because of the density of the info, but i LOVE THAT.
2. You don't have some overy the top, 30 second, "look at how good i am with graphics", intro. THANK YOU for that!
Thanks for putting out this series. I just got an Arduino Uno for Christmas and have been having a lot of fun playing around with it.
I just did this project with my son (11 yr) who's getting into programing. This was an awesome introduction. Thanks Bob for putting this together!
Creating and declaring an integer in a loop - Ooooh my computer studies teacher would have torn your ear off!!! LOL :D
Wow, talk about perfect timing. I just got a Raspberry Pi 2 for Christmas and this was a great primer to get me started. I'm sure not everybody wants programming talk but you made it so clear, and concise. I really hope you do more!
I saw in one of the comments that you would be posting this sometime this week. You're right on time!
Great video. I probably could have found the same thing somewhere else, but instead I actually waited for this one.
I really appreciate the concise, easily understandable nature of your series on Arduino. I'm hoping to include electronics in some of the projects I make so this seemed like a good series to watch, since I've liked a lot of other videos you've done. I can see referring back to this series and your one on circuits as I muddle through my first projects. In fact, I appreciate this type of content from you so much, you've earned a Patreon subscription from me, joining my very short list of folks I can afford to support next to the likes of Jimmy Diresta and Laura Kampf. Keep up the good work!
You have the finest knack for producing vids so that although fast, no time is wasted, and i can pause, look back at a frame to study and set syntax and program in my mind. I hope you produce more Arduino vids, and more advanced Arduino project vids. Thanks again.
You can't possibly be old enough to have a breadboard that looks that old. Great video!
+Clay Cooper hahaha, well.. I guess I am! When I was editing the footage it caught my eye how yellow it was. Pretty crazy.
My nine year old son has been showing me your videos.. He was excited to know that you posted this one this morning. Thank you!
Man, I need to get my arduino off the shelf and running some code again. Thanks for the video Bob.
That was an absolutely ACE series Bob thanks for that. Just the primer I needed to get started on learning to code for Arduino and get some projects underway.
I don't know anything about programming but I still liked the video because Bob consistently makes quality content and he deserved more views.
Wow now I'm getting excited. I've read a bit about about arduino and the possibilities are endless but I've always been intimidated with programming
Great video series! Thanks for the quick, but not overly dumbed-down, description of how to use these. I also like to make stuff and I feel like I should have been using these boards for years now.
Rad shirt btw.
Thanks, Bob for the great series. This is definitely a new side of making that I would be interested in trying. I may be heading over to amazon to pick up a couple of things to give this a shot.
Yaay! Awesome series. I work for quite some time now with these devices and you can create crazy stuff! connect it to the internet, post to a server or database, enable or disable bigger machines with a special shield, do some RFID work, create your own low-end security system. The possibilities are endless! Hit me up with any questions and I'll try to answer them!
Hi Bob,
I really enjoy your videos. I would like to add that because of the wiring of the LED High actually means the LED is off and Low that it's on, because the output pin actually sinks current, which is correct, an Arduino pin can sink more current than it can supply. Just like to point out: high and low are just the output pins voltage states, and what that means depends on the circuitry connected to it. Anyway, great content on your channel, keep up the good work.
ehh I was right. I just said that very same thing. thank you for confirming. :)
Good job explaning it Bob, it would be great to see you talk about other possible projects you could use an Arduino. Like your automatic blast gates, that was a really good idea.
Best 18 minutes i have ever spent on youtube. 100/100!!!
It's funny once I realized that you just created exactly what a 555 IC pin does. Awhile back I made a DIY buzzer timer using a 556 (just two 555s in one IC) so it made a tone at a certain time depending on how much resistance the pot was giving the circuit. This method is soo much easier, most likely cheaper as well because at one point i decided to calculate how much money I had put into this little project, ya way too much! I love your channel btw
You explain programming related stuff much better than my teacher at university does 🤘, thanks
Bob you are my spirit animal. Thanks for all the inspiration
Honestly you deserve ten times the amount of subscribers you have.
Cheers.
Hi Bob, I am going to dive into arduino, but I was wondering how do you know what to write for the commands?
Do you just have to memorize them or is there a list some where you can reference?
So I just got an Arduino today, and I had every single component you mentioned, so I followed around and ta da! I got my learn on!
Nice!!
You basically made a PWM to control the LED. Basically, because the on off are the same length but both stretched, instead of the ratio changing. With a little tweaking you can make this an LED dimmer circuit.
Just as a side note, it might have been a cool idea to type the sketch out in the description or link to a page of some sort with the sketch on it. Personally I'm interested in the digitalRead function. Possibly to increase and decrease the brightness of an LED by changing the duty cycle on the digitalWrite function. I've looked at several examples, none of which work for my application and can't quite seem to wrap my head around the "why" of it.
Yay! u finally got arduino!!!!!! I have a great recommendation for you. Try to do a morse code reader from either a raspberry pie or arduino. Connect the button to the arduino and program it so that the sound and light is readed by the arduino/raspberry pie
Would you do a 'how to' for making a small rc car with this?
I am sure I will figure it out when I keep messing around, but I like the way you explain things.
I just got my first one cant wait to use it!
But if you have the cathode of the LED connected to a pin and the anode via a resistor to 5v, writing the pin high would turn it off and writing it low would turn it on. But that's just nitpicking, great video Bob!
Awesome series. You gained a sub.
Awesome video and perfect series! I'd love to see a raspberry series as well! Cheers and have a good one.
+Tiago Garcia Thanks! Yes, it's definitely on my list to do at some point!
You're very good at explaining it, so it seems simple. Please do more Arduino videos - could also be included in a woodworking project you're doing.
I ordered an Arduino starter kit, because of you ;)
Cant wait for Part 4!!
+Christoffer Gustafsson Nice!
+Christoffer Gustafsson I also ordered mine yesterday because of Bob. Mine comes in tomorrow. However, Bob did say this series was only going to be a three part!
+TrikiDick hm.. hope he changes his mind :)
Christoffer Gustafsson Me too. UPS cocked over my Thursday Delivery because they took the day off. But mine is on it's way and to be truthful I am feeling a little overwhelmed. One step at a time!
One point. If you tie the LED to the +5volt rail, then writing the output pin LOW actually turns the LED ON, not off as you say. Pin HIGH then then turns the LED OFF.
Minor point I know.
Great video! People who downvote this video obviously don't get it's meant for people who are just beginning in the Arduino world. I'm a programmer myself, however I don't take this video lightly. I think there's pretty good knowledge in it. Thanks for sharing your knowledge. We're starting to "speak" to the Arduino board now :)
so true...I am a first-year mechanical student and am interested in robotics so I started searching for Arduino tutorials....and this super easy to understand.
Thanks! I like to make stuff
this vid really push me to make another project,, eventought not arduino based,, nice vid sir..
love these videos please go on doing theses things
this guy is so cool I've been subscribed for a while. keep up the amazing work
Great series. Very informative. Thanks for sharing.
Hey how's it going my friend? I have a quick question for you. I have the Arduino, temperature probe, a small flexible silicone heating pad, and battery. I'm having trouble programming the system to maintain 2oz of liquid at a certain temperature and for system to cut off when desired temperature is reached and cut back on when desired temperature falls below desired temperature can you help please thanks?
great video. very informative. thank you. I do have one question though. Since the cathode is connected to the D4 and you start by turning D4 HIGH, doesn't that turn the LED off due to having 5v to both it's anode and cathode? It seems as though you're setting it off - delay - on - delay - loop.
simple but helpfull,
can't wait for next lesson
G'Day Bob, Have you done a video on how to make the keypad shield button actually operate a digital output pin. I am new to this Arduino world by 2 weeks and have done the blinking LED and other useless stuff. I have managed to mix some codes to make a hall effects sensor, to count on the keypad shield, "to count rotations" not RPM like everyone seems to do with it. I have connected a 3 phase stepper drive to the uno and shield and all the buttons do is stop the motor and it wont start. So just wondering if you had any info on something like that ? Cheers
Just found your channel and hope it inspires the future of youtube channels. so can you make a wood coffee table that displays text messages or something digitally cool like the clock. I noticed the more awesome your picture, the more views you had.
when U connect on side of the LED to +5V
the LED will only be on if the arduino pin is low.
If it's high you have +5V to +5V which has no differences so no current flows
one more great video , can you make a video about the shapeoko gshield arduino and what can we modify or tweak? thanks
Thanks. A nice introduction to all this.
Great videos production! Can't wait for the next episodes.
What do you call the green board you place the parts on at 0:55 ?
fouarges 8q
you are a very good teacher
nice video and all,, but can you be more clear? like, what kind of resistor did you use? by the markings i dont have one like that and i have a pack of about 100 different ones lol
Well the sketch is not so unsless. I'v add another potentiometer, to control the two delay timers sepredly, and with the help of some N-chanel mosfet's, i'v build a petrol fuel injector driver for my ultra sonic washer. Thx for the lesson, it was very helpful.
Awesome video, were you a programmer in a past life? Or just studied and read up a lot on Arduinos?
Yeah I did software development before I Like To Make Stuff
Bob, why you dont explain a resistor function in this scheme? p.s. video is nice, IMHO general advantage of arduino its connection with real world, which isnt exist in classic programming.
Great video. And more arduino projects please
Did i just see that pot get turned to 11? Very well explained!
I did the same but while verifying it says pinmode was not declared in this scope
Why is the delayTimer variable defined inside the loop, rather than at the beginning, along with the other variables?
Philip Chandler, that's because it's not a fixed variable and won't work and the reason of it being in loop rather than setup Is we read the analog values again again not once. Hope it helps
i love your tutorials, but can u make more please? you can explain things so good
Random question, but do you know a good supplier of aluminum extrusion? I'm trying to make a sim-racing setup and am planning on using aluminium extrusion so it can be adjustable depending on whose using it.
I love this series!
hello its a good video...
my question I want to work with ARDUINO UNO for SERVO total 4 servos I want to run with it so is it necessary to connect it with bread board without it can it be possible. if yes how and if no then what to do.
thanks for the help dear....
good work keeping going.
Great video Bob, that even made sense to a complete technophobe like me well done!
Great series!
great set of videos. would you recommend any books to start coding with the arduino?
+Wayne Byrne Make Magazine has a Getting Started with Arduino book that's great! amzn.to/1JJeBV7
+I Like To Make Stuff thanks for taking the time to reply. I will check that out. keep up the great work and thanks again
"Hello World." ;) Another nice lesson.
this is a very good video for people who are going to program. any more videos after this
Nice and simple... Perfect :) helped a lot
I love make stuff, may i ask how much resistance do i use?
so short series,
but very helpfull..
Make more about Arduino content please..
Hi Bob, you should told that the DELAY Function is not the best to use, told they should learn asap examples like "blink with out delay" it is the better way for future projects...
Btw: nice Project as always! :-)
Bob, do you know if anyone has built a CNC around an arduino? would be very complex but would make an awesome project. BTW you make great videos and this series is no different.
+Robert Tucker Thanks Robert! Actually yes, my X-Carve is based on this exact same Arduino Uno. A lot of the smaller CNC machines are as well.
Really helpful video, but maybe would have been better to just make one led blink for absolute beginners. but really good job explaining the structure of the code.
Bob, Great video. Even though that was a simple circuit I found it very interesting. Thanks. :)
very cool man! I enjoy your videos.
Very much helpful, thanks a lot.
nice one man!i love your videos!
Hi Sir.. I just wanna know what is the kid of kit we need to design a project.. I mean.. Mg project is the smart street lights.. When turns ON when the vehicle comes and OFFs when the vehicle moves forward... Could u plz tell me which arduino chip and kit will help me do the project
Thanks you should make more videos like this👍
Thinking about the face Jimmy DiResta makes while watching this makes me laugh :)
This looks like it could run the auger on my Pellet stove....sweeet!!
Wow this is very helpful, thank you!
Thanks, great content. I wish I could see the whole circuit, not just parts of it... it's easier to build that way for beginners like me
I am needing to build a DC to DC boost stage for a inverter. would a arduino work good for that part of my project? and I'm guessing I can use it for the protection of the whole system. over/under voltage. temp.and over current. but the problem is I have no experience with arduino or programing. this time last year. I had never even heard of arduino. but watching UA-cam about 8 months ago. the first time I saw one. was a video of home automation using arduino. I have studied it some since then. and I'm thinking maybe I can use this for my project. it is a must. I need to build this inverter for my offgrid home I need to have already moved in to. and I would like to build a series wound dc motor speed controller. for 72v and 350-400amps. but that can wait. I was planning to use the egs-002 spwm inverter driver board. it has the MOSFET drivers built in. do you think I can get all this to work together . it needs to be 12-24 or even 48 volts DC . and a 60 Hz 120v ac out. a 220/240v split phase would be great.but not necessary. I don't have much use for 220v. but I need like 4,5or6 kW plus output. basically 3 20amp circuits. and would like to be able to expand the output later if I need to. sorry for rambling on. but for the boost stage would a arduino be a efficient controller for a DC to DC boost with protection and constant voltage output with limited over shoot. that is my main concerns . or would some other ic work better? I really like your videos. and thanks for all the info.
Excellent video and presentation but it would help if you slow down a little. Many thanks . Good stuff
Great video, thanks 👍🏻💜
BreadBoard......
Bread 🍞..........
Bread makes sandwich
Mmm sandwich
Uh oh
I'm hungry
wen xin this explains my life
You defined the integer "delayTimer" within the void loop, which the program says is an error. I moved that code up to the top next to the other integers that you defined and everything was OK.
Best channel
superb vid continue making videos liked😃
You can actually improve that code in a simple way, instead of delaying the loop two times with a line like:
digitalWrite(pinLED, !digitalRead(pinLED));
This way you can alternate pin state without turning it HIGH and LOW with only one line of code and only one delay line, variable resistor will become more responsive :)
Tell me more....?
hey just asking, the code will not bypass the analog read until it obtains a value?
Here's some code that could help you guys.
//Project1__Blink_4_LED
int ledPin1 = 5; // pin # 5
int ledPin2 = 6; // pin #6 is used
int ledPin3 = 7; // pin #7 is used
int ledPin4 = 8; // pin #8 is used
int ledPin5 = 9; // pin #9 is used
void setup() {
pinMode(ledPin1,OUTPUT); // pin 5 is OUTPUT, LED connected to it
pinMode(ledPin2,OUTPUT); // pin 6 is OUTPUT, LED connected to it
pinMode(ledPin3,OUTPUT); // pin 7 is OUTPUT, LED connected to it
pinMode(ledPin4,OUTPUT); // pin 8 is OUTPUT, LED connected to it
pinMode(ledPin5,OUTPUT); // pin 9 is OUTPUT, LED connected to it
}
void loop() {
digitalWrite(ledPin1,HIGH); // make pin 5 HIGH
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin1,LOW); // make pin 5 LOW
delay(2000); // LED is off for 2 seconds
digitalWrite(ledPin2,HIGH); // make pin 6 HIGH
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin2,LOW); // make pin 6 LOW
delay(2000); // LED is off for 2 seconds
digitalWrite(ledPin3,HIGH); // make pin 7 HIGH
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin3,LOW); // make pin 7 LOW
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin4,HIGH); // make pin 8 HIGH
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin4,LOW); // make pin 8 LOW
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin5,HIGH); // make pin 9 HIGH
delay(2000); // LED is on for 2 seconds
digitalWrite(ledPin5,LOW); // make pin 9 LOW
delay(2000); // LED is on for 2 seconds
}
I get it 99.9%
MP Dope I don't
Itotally get it now
Hey can u make a video pf how to control led matrix plzz