Now what I want to do in the spirit stations i want to kind of lay out the format of the future sessions in this Arduino tutorial series we’re also going to indecision we’re going to cover off how to get started with your arduino and how to connect To your pc because believe it or not, there’s quite a few challenges which you could face their want to talk about the alternatives to arduino, and I want to cover off kind of the philosophy surrounding arduino and and then perhaps the use of my form and how That can be useful and what have you so first of all, let’s cover off the alternatives to Audrina, because I know in the previous videos that i did. People mentioned that there are clones of the arduino and other either microprocessor platforms which can be used for this kind of development environment. And yes, indeed, they are one that’s one of the philosophies when this with developers who do it, was developed as an open source environment. So anyone can copy and clone the arduino board, and people obviously have done so. What it would say to you is that there are quite a few challenges being faced even using the genuine, so called genuine arduino boards that, if you are going to use it alone, then just do your research and make sure that it is a hundred percent compatible With our Arduino and the code and what have you? Because that might pose a few challenges for you? If there are some issues there, then, as I said, there are the hardware platforms and which have been developed, which are in fact in many ways, far better than the microprocessor, which you get on your arduino and I’m I’m sure that in time to come, I must Write stop playing around with those two, but the reason I kind of I’ve starts off with are doing.
I think a lot of people start off with arduino and why? I think it’s, a good starting place for a lot of people, is that there is a lot of support for our dinner. In terms of the add on kit, the projects and code which is already been written and the add ons, what have you on numerous the forums to help you get back the tutorials? So if you’re a beginner and kind and need a favorite of help getting started, then that’s. Why? I think our Arduino is a good place to start. I think you become fairly advanced and are going to get into serious microprocessor development. And what have you then? You will move on from our do you know, because then it there are certain limitations which might hamstring you. If you stick with this platform. That being said, if you go in search then net and have a look at the projects which have been done with Audrina, I think you’ll be very surprised at what has been done and achieved with this little bored right. So before we get stuck into understanding more about arduino, it step itself. What I want to explain and go through his kind of my philosophy in the way I’m going to approach this tutorial series and then also talk a little bit about the kind of what i call the arduino philosophy as well. Now there are loads of tutorials on how to get started with arduino and if you, after the little quick videos which talk you through some code and how to do flashing lights.
And what have you been sitting and say: don’t waste your time on on my videos, because that’s not what they’re going to be about I’m, sincerely hoping to do more real world tutorial? Where I’m not going to try and spoon feed you and talk you through some code on a screen, because i don’t believe you’re going to learn that way. The best way you’re going to learn is by trying things yourself banging your head and learning through that process, and in fact I mean that’s in this past week, with my playing with arduino that’s, exactly how I’ve learned to fit and so i’m going to walk you Through the potential stumbling blocks, the the the big stumbling blocks, which might repeat because there are some stumbling blocks out there which may get you so a so frustrated that you just want to check it in a drawer and and and leave it. And there again is. I want to warn you that it if you don’t, have the patience to injure some of the stumbling blocks. What happy, then, perhaps arduino isn’t the platform to you in my mind, it’s a it’s, a fun engineering platform which involves a lot of trouble shooting. So it involves a lot of trouble shooting to get your your end result potentially, because even if you do know how to code, will write the programs or scripts and put the little hard way but some pieces together, they all still be some bits along the way Which are potentially going to trip you up as I’ve, come to discover when we still win weeds in series.
Two in the second episode of this i’m, going to actually go through my first project and that project is a simple voltmeter, but I’ve added some functionality with Max average, and even that little exercise here has revealed a lot to me in terms of limitations. Within the code and the libraries that you get with arduino, even the display units – and that is something I’m a highlight – i mentioned – that like, for instance, you get. These LCD displays – and i said, i’ve gone for the serial – enabled one because you don’t need so many wise to connect it up more heavy boy. Oh boy does pose a few challenges which I’ll talk about in the second episode when we do that voltmeter project. So, as i said, i’m going to talk through those things and try and show you real world issues which happy will help, you i’m also going to try and give you the kind of impetus or act as the catalyst to jump into interesting projects yourself. Because, as I said, that is the way you learn so there’s going to be a lot of talking a lot of showing you bits and pieces. These videos might be a bit longer than the normal, quick tutorials other tutorials. You get to see, but I said it’s going to be more, hopefully full of the more real world stuff and also jumping into some of the actual bigger projects like. As I said, there will be the voltmeter I want to challenge.
Do they are focused on the forum like workers, doing an MPP, MPPT charge controller? I want to do that as well. There’S, a digital thermometer with let’s, say, logging to memory and all of those those projects are going to bring up some potential challenges and some interesting ways of working with arduino. Also just the code you want. You can write code for arduino in a certain way and there may be some particular functionality and ways of doing things better or more efficiently. I’M gon na try and cover that off as well and and hopefully is going to be an interactive learning. Experience for myself and those people involved to follow this series, so let’s also get stuck down into the philosophy of Arduino, which i believe is very is important because it a lot of it’s got to do with the philosophy and the way I run my kind of Channel and my forum now, as I said, arduino was developed as their kind of open source platform and to that end it it in essence, is trying to draw in a community of people who are going to help each other share ID and share ideas. And I do believe it as the the developers is that have made this kind of open source and sharing thing I think, along with that, comes the acknowledgement of what they provided to the electronics community and acknowledgement of other people’s work. So it’s. One thing i always want to try and i’m going to try and do myself – and I heard you to do as well – is that once you start getting into and either writing your own code or grabbing ideas off the internet, because that will be one of the Big things you’ll see a piece of code, let’s say for this: voltmeter you’ll see a piece of code or quarter sketch on the Internet, you’re going grab it and you put it into your for arduino program or ide or compiler, and you may make a few tweaks To it and go yes, look, this is my piece of code, but there what you should do is if you’ve taken someone else’s concept or their code and made some adjustments to it, you should acknowledge them in the code itself.
I think that’s quite important in that. If you give acknowledgement to the original person who came up with the code – and you can then add your name as the person who’s added updates or modifications to the code and if you go and write a whole piece of code yourself because of some idea, you Came up with words, totally fresh new piece of coal and guess what you can claim the kind of Rights that piece of code and hope you’ll go and share, so other people can benefit as well, so that’s kind of the certainly the arduino philosophy that I hope People are going to follow, ok and as much as I. I really do hope that you all use my forum as a place to share your ideas and your projects related to arduino ide, be the first one to admit that let’s say. For instance, you are having a problem with a piece of code and you’re getting areas, or what have you I’m certainly not going to have the time to go through those and troubleshooting, because some problems can be so unique to the hardware and the libraries and what Have you that you using it can be very difficult to troubleshoot, and there are loads of forms out there on the internet i’m, going to place a few links below to the a few key areas where there is a brilliant community that can go and try and Assist you with that with those issues they aren’t enough.
People in my forum, dedicated to let’s, say arduino coding that I think you might get the help that you need, but by all means, if you got a great piece of code that works and a great project put it. If you do have a challenge that you you want help with posted there and see if you can get the help, but i’d say they certainly are better well, there are many farm or other people involved in other forms that are going to p with that right. So let’s try and get stuck into the basics of getting started I’m going to go through the process of how you connect your arduino to your computer, because I said that poses quite a few challenges it. It hang me up for a day very silly issue, but it’s one of those issues. I think that can potentially catch quite a few people out i’m. Also going to put the Audrina on the bench now just quickly give a description of what it’s all about that’s. The basic arduino and some handy tips for when you get started as well in terms of having some insulation or some pads, and me we’ll, talk about that and also before get through all that you can i’m going to rip, be referring to some bits and pieces That comes out of this getting started with arduino book. This is written by massimo banzi I’ve got to correct he’s it one of the cat cofounders of Arduino this book and all the arduino starter kit.
Some hardware is available on my Anderson store. You don’t have to buy their it shouldn’t cost you any more, but i certainly get a commission if you do so. It’S certainly supports these shows and what I’m doing so again that it’s great we can buy a Texas, certainly does help right. Let’S go. Have a look at the bench and have a closer look at the actual hardware itself and we’ll talk about a little bit about the board. Ok, so here we have a kind of most the one of the kind of basic arduino boards to start with. This is the arduino uno, and this is revision3, so you’ll often see it solders Arduino, Uno r3. There are bigger boards that you can start off with a RC cost a bit more money, the the what happens in the bigger boards you get and they have a different microprocessor on them and they will have more often will have more memory that you can store Biggest sketches or bigger programs and you can store more data, but this certainly is a good. If you try to get into and see if you’re going to enjoy it it’s a good way to start also, the bigger boards have more input and output. You’Ll see the the strip along the side here. These enabled you to talk to the art, to Arduino in essence and for the arduino to talk back to you through a whole realm of lights and senses.
And what have you so let’s before you even get down to the basic hardware description of the board i’m gon na? Give you the one thing that you can do to start off with and don’t. Look at my son, my entirely implementation, but what you might want to do is put either get some four rubber feet. Underneath your arduino board, because more than likely you’re going to be resting on on surfaces and for one it might skip around which which doesn’t help it. Also, if you’ve got the USB into power and to program it, it then does get but skittish. If you’ve got a heavy thicker and USB cable, also if you’re resting it like, I do sometimes on top of my computer or something metallic, the last thing you want is the underside of the PCB and where the through hole components come thru too short. So this provided with it prevented from skidding around and it insulates the bottom of the board, and i would highly recommend do where you put the stick on stick on foam pad like I have all the rubber feet. So it is something to do what you may. What I found was on these big on the USB input here and on the power jack. The tabs, the through the peace that comes through the pc board, was a fair bit longer than the rest. So i got a pair of good, sharp side cutters and when I say, do get a good pair of sharp side cutters, because the bits that come through a quite thick – and I snip those officer again, they were protruding that match that made it far easier to Stick the pad on and you’ve got again, even if you’ve got rubber feet, you’ve got better clearance on the board that’s one of the first handy tips, then ok, so let’s have a quick look at the are doing is to say I’m starting out myself.
If I, if anyone comes across a mistakes that I made, what have you please? Let me know and I’ll annotate gon na say this is a learning process for me as well. Now, first of all, the arduino can be powered either by the USB got to connect to your pc. It will be powered by the five volts from your pc or it can accept a DC power input over here. Through this Jack you can buy water. What have you I tend to have a battery or lithium battery pack, which i plug in this, at least its mobile that’s. The one handy thing to think about just a simple 9 volt battery with a power jack is the one easy way to power it. If there’s a range of voltages that it works off but can work up to 12 volts, if i remember correctly, but I think the best recommend voltage – nine volts I’d stick with nine volts for Perry it in in the jack also on these boards. You will note there are a few, a couple of versions or later versions of this board where they have a surface mount chip, and I’ve mentioned this before my recommendation is to not go with the surface mount chip, because if you happen to make a mistake and Blow something the one component you likely to blow is the microprocessor and with the SMD chip the surface match up on the board, you basically going to end up throwing away the whole board.
Where is on this configuration with the tip or the dual inline package? You can simply remove the microprocessor and slaton un it’s a far more efficient and cheaper way to get around a little whoopsie right. So then, on the board, we’ve discussed that the chip and the inputs now let’s discuss the kind of May main input output on it down the side. The side here you there is a ground and then we’ve got pins, which are numbered from 13 down to zero, and these are mainly your digital input and output and when I say, input or output, as you realize, when we get to start writing code. For this, you can define with a pan X’s and input or output and and I’ve seen need the final trials. The Arduino is going to get confused, not know what you want to do on that pen, so that is the digital input and output. It’S also got some pwm pulse width, modulation, input and output as well then, on this side, we’ve got the way you can draw power either a 3.3 volts or 5 volt and the ground respective. To that, and then you’ve got some analog input now the analog inputs is in the project which we’re going to first start off with the voltmeter. In fact, that is where we’re going to be putting our input and just to tell you a little about the analog input. It’S remember computer’s operating 10, so they are digital.
So though it says analog these analog inputs taken and log input and digitize it. So basically, if you put a 5 volt signal in in in here, which is changing, then it will represent it as a number between 1 and 1023. So in essence, it it created a digital representation of an analog signal going in there not critical to know at this point in time, it’s just a little bit of background on the digital one on the digital inputs, they rely on either being high or low. Res is representing either a one or a zero, so you’re, very basic you, a digital input or output into the computer world and the microprocessor right. So the next thing is then to connect the Audrina to your pc. So before you even start downloading the ide, the IDE is the compilot program will go through that terminology and what happy when I’ve got a tap on the pc you to understand you want you going to want to connect your arduino to your pc with your USB Cable, so the USB cable is also plugged into my piece. You are ready and then going to connect this into the arduino and a friend what we’re going to dump it change out to screen capture program, so you can actually see what’s going on the pc now. What is going to happen virtually on all pc’s windows based pcs, when you plug this in it’s, going to see the hard way it’s going to try and stall the driver and it’s going to fail and that’s the part I want to help you through, because is A few basic steps and if you go slightly wrong, you might really frustrate yourself.
Also, some of the instructions I’ve seen on the Arduino site and internet died exactly describe what potentially might happen on your pc and i’m going to try and walk you through those. As best I can ok, so one of the first things are going to want to do is actually download the arduino software. Now, the if you go to the, if you just simply do a search on our of Arduino in Google you’re bound to come across the site over here, but here’s the address its arduino CC and you’ll get to the homepage. Hair here is a really useful spot for finding projects and assistance on in forums if you do have any problems. So this is certainly a very handy resources, loads of them, but this is the main arduino one, and what you’re going to do is you’re going to click on the download link, and this is the software which allows you to compile your programs it’s called the IDE It’S, where you write your sketches or your code or your program and they’ve got several versions of the idea. Now the latest one that’s about all you will see here is our. Do you know one zero one, so I’d suggest downloading this one and depending on your platform, obviously i can only help you with the windows side of it. You click on windows and it’s, going to download a zip file and that zip file you just X extract the files in that the bar to a folder of your choice.
Now, before we move away at your show, there are other versions, all the versions here’s one zero, then there’s, 00 300 and I have found that that what they’ve done they’ve added certain functionality and what have you as the in the later versions? Often they’re not backwards compatible. So what I’m trying to find out for myself nor and all highlight to yourselves is if there is a piece of code which doesn’t work in let’s say the latest version of are doing a one 01. Then i might say you need to either install a load. 00. 23, 0, 0, 0 to 2 i’d say if you want to ensure you really compatible. The safest version to go with is either 0 0 0 to 200, 2. 3. Because a lot of the code that i found has been written in that, but just be away for I having problems, is worthwhile trying one of the older versions. So once you’ve downloaded the software, you can install it into folding out again that the structure is entirely up to you, but I’ve got a a folder on my harddrive called arduino. Under there, I’ve got a folder called software. Arduino and I’ve got all the versions of the software. Now you don’t actually have to install the software so that’s the beauty of of our DNA, that there’s no installation program once you’ve got the folder extracted. You will probably end up with a folder structure just like this over here, and this is your main editor or your IDE as a call it where you write your code and all you have to do is lucky right, click and send it to your desktop or What have you aware of you like running your programs from is all you do need to do is execute that to actually write start writing your programs, I’m gon na start, highlighting when we start getting to the first project.
There are certain libraries or whatever. If you want to add bits of hardware like that cereal enabled LCD display, then we’re going to talk about what happens under the libraries, but the critical partners. You’Ve got the arduino dot exe and the drivers and the drive is what we’re going to need to be able to install the actual arduino itself. So once you’ve got that there we can then go to the device manager. Ok, so I’ve got you on my desktop. Now and i’m using windows, seven, but these things are fairly similarly in windows XP. So if you go to my computer, the quick way to open device manager is to right click and then go and click on manage. Then you’ll get your a device manager opening up and so click on device manager, minimizer’s network adapters there now here is where the challenges come at the moment, I’ve got the arduino and plugged, and what I’m going to do? I maximize the ports and calm lpt I’m gon na plug. In there we go, you might have heard the noise we’re plugged in the Arduino Uno r3 and it happens to come up on on come five now. The challenge here is that it sometimes on some pcs will come up and reports common, lpt and others will come up straight under user pc where mass is not as a USB device. Now the reason it’s coming up and showing or finance all 6 i’ve got.
Third, the drives installed, but what you need to be aware of is that sometimes when you plug it in and say because it doesn’t come up and a common lpt, which is often where the documentation says it will it can get rather confusing and you might be Led down a line like I did thinking, I need there something wrong and I needed to install ports and calm lpt, but don’t get caught up by that when your drivers are installed, it will either come up pick up under here, or it will be directly under User, pc, you just look for where you get the kind of USB and recognize or unknown USB device and that’s, where you’re going to go and check and try and install the drivers so I’m not going to try and emulate i’m going to remove the device from Myself and then emulate installing it for the first time. Ok, so let’s go for a real world running of what happens when you first plug in your arduino. So as your notes, there’s, no nothing under the devices or ports here, there’s, nothing and use a pc we’ve got. You obviously downloaded and extracted your arduino files to a folder that you know about I’m, not going to plug in the arduino and just notice. What happens as you can see. It says installing device driver software comes up as an unknown device and look at the next message, which hope you’ll come up.
Marshall. There we go, the bus driver was not successfully installed, and this is probably what’s going to happen to yourselves. Now then, what you need to do is you click on the device unknown device and, as you can see, it’s not under ports or lpt, because often they say, go look there, but as you can see, it’s directly and under user pc, in my case of as You can see it’s got the explanation, it says unknown device. So what you do is right. Click update device driver, don’t search automatically update. So have you go for the manual option now I’ve seen XP that this screen looks different, but you’ve got to go for the manual option. Now you’ve got to browse to this folder here night. This is quite important: i’m going to click the Browse button, and under here you can see. I’Ve got my software arduino and there’s a drivers folder now under the drivers. Folder you’ve got this if TDI USB drivers. Now, if you happen to go and click on that, the computer will accept your setting because there’s files in it believes it can use, but it will fail – and this can seriously where it’d be a waste time for yourself. It was for me, so do not click on this folder here you can see, ok is highlighted. If i go and click on a little here will let you accept that are not XP. That kind of either highlights or allows you to select when you shouldn’t, when you can or can’t, but you have to select drivers, not that one, ok, so click, ok, so we’ve got that folder there include folders is selected.
You kick next windows. Con verifying comes with that just say: install this driver anyway, and there we go says: it’s found it and it’s got your Arduino Uno r3, so click close and abracadabra of everything’s worked out. Okay, you’ll see it then pick up either under your ports, common lpt or under user pc. I think by default, once all the drivers are installed. It picks it up and here but, as I said, if you’ve got a problem, normally isn’t under here it’s sitting under the pc. Ok. So that means now, hopefully, that giving you the right information to get the driver install because then you’re ready to actually use the editing software. Ok, so we’ve got the drivers installed. You’Ve got. You are Drina connected by the USB port hope you has created a shortcut or you’ve got a link to that arduino software I’ve got it on my desktop over here. So now, you’re ready to start playing. So if we double click on this software, now this software against olympique de me go through some of the terminology. This is called the ide and I think the ide stands for interactive development. Environment and all it basically is, is a an editor which allows you to compile your code or your program or an arduino speak your sketch. So you can write your code upload to the microprocessor. This will then come once you’ve got your code written. This will compile it into the right code for your arduino microprocessor, to understand and process and run right.
So we’ve got this open. What you can do straight off is under here. If you go to file example, this comes with built in sample sketches for you to start and get you going straight away. Some relieve you with this, so you can test that you get the basics game before we get into the first project which I’ll walk you through. What we talked about a schedule, code, structure and variables and all that kind of thing we’ll do in the next one. But if you go here, you’ve got 0 1 basics and if you go long, go to the really basic one, this one that says blink and let’s test the LED blink as that i’m not i’m, not going to cover these in detail because they all over the Internet and they’re right here and as you can see it brings up in the IDE the code I’m going to. Let me just make a little bit bigger. We all start. We will discuss the whole layout all the code, if you understand all of work with Pascal or turbo Pascal will see. This is, has got the basic structure of that. We define your variables, you have functions and you call variables and all that kind of thing that that’s what we will cover off as soon as we start getting into the projects. But here you go. You’Ve got the code to make an LED blink on your arduino. Now there are three actually has a built in LED I’m rope.
We can upload this intestine. I’Ll just show you that on the board itself, so here we’ve got some instructions where you can very fine upload. You can save your sketches. If you go to say bass, you click that button that checks, the code that you’ve written it’s formatted correctly and whether you’ve gotten the issues are not a little highlight them in a window down here. If it’s come up. Okay, you can then click this upload button. You don’t have to do that verify when you want you, when you click the upload button, it actually checks just checks. The code and it’ll throw up an error there as well. Now, if everything is correct, it’ll upload correctly, you can see here, mind says – are doing a moon on on on comp. I. So if we go to two tools and we go to board the one thing you need to check, if you’ve got any errors and it’s not seeing your board straight away, is to go and select for one that which whatever board you’re using over here and then To select the serial port now, as you can see, I’ve got a number of serial ports. You’Ll have to check in your device manager which serial port you are doing are connected to, but once you’ve got all this set up correctly, if he ever didn’t upload, then it should once these comes are correctly in place. It should upload the code as it did there and, as you saw that upload complete it successfully and i’ll show you now what happens once that happens? Ok, so you’ve got your code uploaded for their first blinky blink and I’ve got my arduino plugged in of see the code has just been uploaded and if you can see there is the onboard led, which is doing the flash that the code is telling it to Do now what you can do, even though these have an onboard led and on this top row over here there is a pen labeled ground, and then this pin 13 and in that in that sketch, in that program, you’ll see it has a reference to and 13 And if you take a normal led, the longer leg is the positive, so that goes to penn 13, that the shorter one goes to ground.
And if you plug that in then you get your flashing LED there. Now, on this board, the voltage and resistance to to operate this led on here of the built in once, we start going to other projects. We need to be constant, careful about having the right resistors and what have you to operate things outside of Arduino, but we’ll cover that off as we get into the other projects. So the one last thing i want to highlight before we wrap this first session up that I mr. tell you is there’s a little micro switch on the Arduino itself over there and that’s just a reset switch. So i mean, if you want to i’ll, see when you pull the power out. Your code stops running when you like the power back in whether it’s for my USB or the actual power socket it’ll end ran its little. Boot loaders got a little boot loader on the microprocessor and it starts running the code as you can see it’s flashing, but you can also just push their led. A sort of a little flash it’s been rebooting itself. It off see happens very quickly, but that’s a little reset button. Ok, so ideally hope that was of help to you in terms of getting started. If you kind of progressed beyond that point, then hopefully the next videos in the series will be far more use to you when we start getting into the projects start going through the code and understanding why certain things work and why they don’t work, and i said In the next one, we’re going to cover off the digital voltmeter, where I’ve added a bit of functionality for min max average we’re going to go through and I’m rate, we for their first project it’ll.
Actually, you can use this voltmeter to output to the computer, display the turmoil or there’s a turtle serial terminal monitor that will show you how to use and then we’ll understand the challenges I had with trying to display. Out to this cereal enabled a liquid crystal display, and that is a whole lot of topics in terms of hardware, libraries and understanding the different types of variables that the different types so that all there is a favorite of learning. That will happen in the next exercise. In the next video, so please i really hope this is I’ve, probably been quite a long, video and perhaps by design, because I feel that if you are really into the series, it means sitting down listening and understanding all the potential hiccups and headaches that you can Have but all the potential fun that can come out of just being persistent and enjoying this platform, i think all certainly yield a lot of fun and entertainment going forward. So if you do enjoy the series, please let me know there’s a lot of time and effort that goes into in particular to making these videos. So if there’s not a lot of people following them or there’s, not a lot of value gained out of them, then it’s is continuing this because his loads about the videos i could be doing so do, let me know, please read them, give them a thumbs up And certain, if you have any queries or comments, and certainly person down below and also on my forum, i’ll be adding an area there once we start producing the first projects, what have you wear code can be posted and, as I said, there are people already are Involved in Arduino projects on the forum so certainly go and check it out there.
arduino time Video
arduino time news
Posted on Friday September 13, 2019How to Create a New Sketch Template for Arduino ElektorWhen you launch the Arduino IDE for the first time or when you create a new sketch from the ‘File’ –> ‘New’ menu (Ctrl+N), the editor opens a new sketch … … Continue Reading »
Posted on Tuesday September 03, 2019A Pocket QWERTY For Arduino And More HackadayIf you want to add a keypad to your Arduino project, the options are pretty limited. There’s that red and blue 4×4 membrane we’ve all seen in password-protected … … Continue Reading »
Posted on Tuesday September 17, 2019Victoria Arduino to launch Eagle One espresso machine Global Coffee ReportVictoria Arduino has announced the official launch of its next espresso machine, the Eagle One, on 19 September at the Saatchi Gallery in the United Kingdom. … Continue Reading »
arduino time Social
Originally posted 2017-05-18 11:51:15.