Тёмный

Introduction to Arduino 

Robert Murray-Smith
Подписаться 507 тыс.
Просмотров 102 тыс.
50% 1

In this video I introduce the Arduino platform, explain the pin configuration of the Arduino Uno, and what a bootloader is. I then proceed to demonstrate how to program the Arduino using the Arduino IDE and write and explain programs to switch a high power load on and off and to PWM drive a motor.

Наука

Опубликовано:

 

30 июн 2015

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 112   
@maitlan
@maitlan 6 лет назад
It took me about 3 days to digest what you said in the video. These are the notes: Arduino uses 5+ (Five Volts, or Five VCC) There is a ‘Regulator’ that converts the power input (PWR) into 5 volts. This Regulator can handle up to 20 volts, but 6+ is the minimum to get it working. The Arduino can store the ‘Strings’ (A line of code such as a length of letters, numerals, symbols and punctuation marks) of a program within its memory. You can use a 4 MHz external oscillator (Ceramic crystal Timer). The two LED (Lights) named RX and TX will blink when Serial data is being transmitted through pins 0 and 1. There is another LED called the ‘L13’ which will blink when data is written to pin 13 (Serial Clock). This pin is part of the SPI for connecting other devices to the Arduino. The ‘Reset Button’ will do a ‘Hard Reset’ that will cause the program to restart from the beginning of program Flash (Boot-loader). The headers of the GPIO is not the normal 1.1 dot pitch like on a breadboard. The first headers 0 (RX) and 1 (TX) are used by the USB to Serial interface. These need to be disconnected when programming the Arduino through the USB port. Header 2 (INT-0) and 3 (INT-1) are ‘Interrupt pins’ which can be configured to trigger a piece of code when a signal is received through them. The ‘Interrupt handling routines’. Headers 3 (INT-1) to 9 are PWM (Pulse Width Modulation). Pins 10 to 13 (SPI) are also PWM though. PWM can be configured to output an oscillated frequency as high as the internal clock will allow. A set frequency that turns the pin off and on combined with a set duty cycle that tells how long its off-time will be (Say 70% of one second), the voltage can be reduced without the need for additional resistors (These convert voltage into heat). Pins 10 (SS), 11 (MOSI), 12 (MISO), and 13 (SCK) make up the SPI. The next two pins on this side of the PCB are not numbered but are named GND and AREF (Analog Reference). After that, are the I2C pins 18 (SDA) and 19 (SCC). The I2C is also on the other side of the PCB as headers A4 (SDA) and A5 (SCC), also called 18 and 19. The pins 14 to 17 are also on this side of the PCB and are labelled A0 to A3. Headers A0 to A5 are ‘Analog’, so they can be configured to be either Digital or Analog inputs. The 20 headers have a current tolerance of 40 mA The Pin AREF (Analog Reference) can be configured to be between 0 to 5+. If for example, 4+ is supplied into this pin, than the headers A0 to A5 would read a voltage between 0 and 4+ as a value between 0 to 1024. This is because the analog input on the Arduino uses a ‘Analog-to-Digital-Converter’ with 10-bits of resolution (1024). If the AREF is not used, then this 10-bit value will be defined by the ‘logic level of the board’ which is 5+ volts. However, down to 2+ and the board will only read a value up to 512. The I2C ‘Inter-Integrated Circuit’ or (I2C) is another protocol with a Serial bus that’s used by many different devices. Serial Data (SDA) and Serial Clock (SCC) allows 127 devices to be connected to the same bus at once. The I2C pins are available on both sides of the board as pins A4 or 18 (SDA) and A5 or 19 (SCC). The AREF is supplied with a voltage that determines the upper-limit or what the highest voltage that the 1024 value represents. But the chipset must be informed through software that this is happening, otherwise there will be a conflict where the Internal Active Reference will be shorted (Lose power) to the External Reference of the AREF. The SPI (Serial Peripheral Interface) is another way to connect devices to the Arduino. The power pins are on the same side as the A0 to A5 pins. They are as follows: IO REF, RESET, 3.3V, 5V, GND, GND, and Vin. IO REF allows a ‘Shield’ to know what logic level or Voltage the Arduino is operating at. When RESET is given or pulled low ‘active low’ (Lower voltage signal), it resets the ‘Sketch’. 3.3 V provides this much voltage to external peripherals The 5 V pin can be used to power the Arduino itself as an input or power an external device. The ICSP allows you to program all 32 Kb of the Flash without needing a boot-loader, which programs the device. ‘Self-Programming Mode’ (SPM) allows the boot-loader to load a particular application from where the program is stored, usually from the USB port. Once the RESET button or pin is activated, then the Arduino restarts the boot-loader. If it detects a specific piece of code from the serial lines of the USB, then it will reprogram the Flash with the code from this input. If not, then the Sketch is run instead.
@chocolateearrings
@chocolateearrings 5 лет назад
I screenshotted this
@nostalgia1036
@nostalgia1036 5 лет назад
I thought you wrote 3 years at first when looking at when this video was uploaded.
@lafaci3788
@lafaci3788 5 лет назад
@@nostalgia1036 gj thxxx
@lafaci3788
@lafaci3788 5 лет назад
But are you sure pin 3 to 9 are all PWM?
@manofmesopotamia7602
@manofmesopotamia7602 5 лет назад
dear sir, the video is great, from Iraq, I would like to say thank you so much for your efforts, and i wish if it is possible that you make a series of episodes on how to understand Arduino through projects
@westCOpaintball
@westCOpaintball 6 лет назад
This is the single most helpful video on the subject that I have watched so far.
@seemoorbutts9146
@seemoorbutts9146 7 лет назад
Thanks for taking the time to put this together. I found it extremely helpful.
@Drawfill
@Drawfill 7 лет назад
I've been looking for a nice video introduction to the arduino and this one is REALLY good. I can't wait to start experimenting with it!
@mitchmoe6224
@mitchmoe6224 6 лет назад
You just filled in several gaps I had about the Arduino.... Thanks mate!
@jasonwright2641
@jasonwright2641 7 лет назад
I really like how explain everything very simply, assuming I know nothing about the chip. This was very informative, and gave me a really good handle on the basics of the Arduino. thanks for the video! Also, great beard!
@kevinhoward9820
@kevinhoward9820 4 года назад
FANTASTIK JOB DUDE!!!!!!!!! its about time someone gave a thorough tutorial in a language I can understand. Very cool and enjoyable to listen to. You need to make more videos and put them in a course.
@ThinkingandTinkering
@ThinkingandTinkering 4 года назад
cheers mate
@Joe-sm8wl
@Joe-sm8wl 7 лет назад
Fantastic video. Happy I found this!
@gustavstreicher4867
@gustavstreicher4867 5 лет назад
Great video! You were very thorough and I learned a few new things about electronics in the process.
@kamesh7818
@kamesh7818 7 лет назад
Well explained, very informative. Thank you.
@janiwindsor
@janiwindsor 7 лет назад
Wow that was extremely helpful, thanks for it! I would like to see more ardunio videos from this guy he is really cool!
@TrueReviewCA
@TrueReviewCA 9 лет назад
interesting video, ive had an interest in this controller for some time for control and operation of my Drones but im so impatient that I use the ready to run plug n play type up till now :) but I will be getting to this as soon as I can as im hoping to develop a 24/7hr UAV/Drone just to prove my ideas work (no wonder my company makes no money lol) as im far to interested in RnD. Thanks again for the vid and keep producing vids Regards Chris Armstrong
@Burak-pl1jl
@Burak-pl1jl 6 лет назад
Thanks for the very informative video. Great in-depth explanation!
@WalterWhite-pr1qs
@WalterWhite-pr1qs 5 лет назад
Will look up fly-back voltages...thanks, this video was excellent
@SGOI_AUS
@SGOI_AUS 3 года назад
soon as he said control your hydro or mushies i subscribe and hes also a clear and understanding teacher
@jarrellestes1793
@jarrellestes1793 6 лет назад
GREAT VIEW!! Will practice! THANKS
@mfa9502
@mfa9502 4 года назад
Man you are AWESOME.. THANK YOU FOR YOUR TIME
@saggre
@saggre 5 лет назад
Thanks! Very helpful information
@theflyingdutchman787
@theflyingdutchman787 5 лет назад
Brilliant educator!!!
@neerajpradhan4982
@neerajpradhan4982 6 лет назад
its really interesting and awesome work very helpful for hardware engg who are dont know programming in my case its very help full thank you so much .
@DKT1st
@DKT1st 9 лет назад
Thanks, found info very useful.
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
DKT1st cool, cheers man
@josephthapa377
@josephthapa377 3 года назад
Hello Sir...... This is the ultimate stuff on Arduino . Keep it up ...
@johnblack6134
@johnblack6134 6 лет назад
great video. thanks. how do you copy the boot loader onto the chip if you just have the bare chip and not an arduino?
@jleadbetter29
@jleadbetter29 7 лет назад
New to this stuff and this was a nice little shallow dive into the Arduino. I'm watching the bootloader section and wondering if there couldn't be another chip between the USB/Serial interface and the 328P that would take the place of the bootloader?
@user-eo9wb7vu7y
@user-eo9wb7vu7y 6 лет назад
thank you ,i find extermly helpful
@agentbertram4769
@agentbertram4769 7 лет назад
I have wanted to learn about the Arduino for a long time. If there is one thing that I have learned it's that I have fallen far behind since my days working in the HVAC controls industry. I shall follow your course with enthusiasm. Are you making another video?
@Engine_biulds
@Engine_biulds 6 лет назад
With the serial pins, can the rgb leds with addressable chips be programmed to come on according to what a computer signal is? I can see this possible but maybe not without some form of external board that can handle the load of 200+ 50/50 rgb leds at full load.
@Banzay20
@Banzay20 6 лет назад
So is it possible to measure cell voltage of 10 in series via one of the I^2C port (A4 or A5)? or do I need a controller with 10 analogue ports?
@handball4life189
@handball4life189 6 лет назад
can I use the phone charger 5v adapter (at 220v) to supply the arduino board in an eternally working project ?
@dimitris.4484
@dimitris.4484 6 лет назад
5:03 OCDs are triggered. Nice and simple video by the way thanks.
@barthandelus8340
@barthandelus8340 3 года назад
Learnt a lot from this, thanks!
@2006razaq
@2006razaq 7 лет назад
Nice video, I wonder if you could help, I am trying to get my laser pointer to turn on when my stepper motor is on, what steps I need to add to the program, please.(I am using Arduino uno)
@simonmason7765
@simonmason7765 7 лет назад
Great Information Well Done
@freytube1
@freytube1 6 лет назад
great video .. I have been programming blindly LOL
@abhighnasharma9159
@abhighnasharma9159 7 лет назад
really nice thank you :)
@rog13
@rog13 6 лет назад
Great video, thanks.
@scottiemyman52
@scottiemyman52 6 лет назад
Really excellent tutorial.
@jpswift70
@jpswift70 6 лет назад
excellent video, thanks
@nibblesd.biscuits4270
@nibblesd.biscuits4270 5 лет назад
I like what you said about building the 328 chip onto a breadboard, I'm fairly new to arduino but liking it. Maybe you covered this but I didn't see..Is there any reason I couldn't use an arduino board to program the chip and then pull the chip off the board and drop it in the breadboard for direct hookup and drop a fresh 328 chip into the arduino board.
@Mosfet510
@Mosfet510 6 лет назад
Great video and cool shirt.
@djberg3483
@djberg3483 5 лет назад
Great stuff, thanks
@Engine_biulds
@Engine_biulds 6 лет назад
What would be cool is if this can be used to control rgb leds according to signal for say a shift light. That would be awesome actually. multi color fade to red then blinking red for shift... sounds like it's possible but I've not death with computers, your video mashes me me inclined to test the waters in a new hobby
@jarrellestes1793
@jarrellestes1793 6 лет назад
GREAT KEEP IT UP. YOU HAVE A LITTLE DIFFERENT PROSPECTIVE THAN AMERICAN TECHS. LIKE YOUR INFO. THANKS!,
@user-mj3ef
@user-mj3ef 4 года назад
17:18 sink or source? Also boot-loader size is not the half of the program memory afaik only 2KB.
@eamonn280958
@eamonn280958 9 лет назад
Brilliant tutorial Ashley. I want to produce a product, would I need to programe the atmega chip without a bootloader? I am assuming programming without the bootloader is more complicated. I think my programe would not use much memory.
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
eamonn280958 thanks, programming the atmega chip without a bootloader is straightforward: you simply program it with an ICSP programmer dongle and some ICSP software. There are opensource free tools like avrdude that can do the latter. You just upload the same hex file that the IDE produces. You can leave the bootloader on, but when you buy chips from farnell or whatever it won't contain a bootloader, so you'd have to put that on first. You can if you want put a bootloader on and use an external usb to serial adapter and program the arduino in system on the production board using the Arduino IDE. However if you are doing in system programming, i'd advise using an in system programmer. It's easy so you may as well.
@yhwhdesigntruth
@yhwhdesigntruth 6 лет назад
Would you be able to allow me to explain a project I an working on, and see if you could tell me the proper components to properly hook up my adruino? I learned so much from your video.
@3DComputing
@3DComputing 2 года назад
Nice - no fluff.
@teja8240
@teja8240 6 лет назад
thank you so much brother
@dedlunch
@dedlunch 9 лет назад
Thank you!!!
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
dedlunch you're welcome :)
@adityaakula9434
@adityaakula9434 3 года назад
Great video and the shirt 👌
@captainprototype187
@captainprototype187 5 лет назад
Lool, funny teacher. 17 minutes in.
@KevinMThomas
@KevinMThomas 7 лет назад
Hi Robert will you be doing any Assembly tutorials in Arduino or do you suggest C or the Wiring language?
@ThinkingandTinkering
@ThinkingandTinkering 7 лет назад
it will be a while before i get back to this mate
@drcoronado
@drcoronado 6 лет назад
Thanks this is a great introduction who is the presenter?
@capiberra4118
@capiberra4118 7 лет назад
Good work. Thanks.
@ThinkingandTinkering
@ThinkingandTinkering 7 лет назад
cheers mate
@sfperalta
@sfperalta 3 года назад
Awesome information! The mic'ing was a little annoying.. every time he clicks the mouse I started wincing! Other than that - great deep dive!
@Dario0707
@Dario0707 7 лет назад
Watching this 2nd time
@ThinkingandTinkering
@ThinkingandTinkering 7 лет назад
cool
@MAR5Videos
@MAR5Videos 6 лет назад
This video should be titled "Growing Dope: 2015 Edition".
@truthseeker7775
@truthseeker7775 6 лет назад
Robert Murray - Smith. Please Sir, what is the name of this guy? I also watched a video made by this guy about about a horrific story about death cap mushrooms. I cant find the video anymore. I want to watch it again.
@Bergwerk1234
@Bergwerk1234 6 лет назад
you have a great shirt borther
@kiteretsudaihyakka9147
@kiteretsudaihyakka9147 5 лет назад
I want to purchase Arduino uno board, please tell me what other things (like jumper wires,etc) should i purchase along with it to make good projects. Arduino board costs rupees 460, and my budget is rupees 1000. So, pls name the useful things 2 buy with it and its cost..........i wanna buy it today....pls comment.
@kezzaman
@kezzaman 4 года назад
thx
@k.alipardhan6957
@k.alipardhan6957 5 лет назад
what is the name or channel of the guy who made this video?
@heckyes
@heckyes 9 лет назад
Who is this? This ain't RMS! Good video though. RMS, I download all of your videos for offline browsing.
@davidjames666
@davidjames666 3 года назад
“so easy a caveman can do it......”
@fwily2580
@fwily2580 2 года назад
Can it cut hair?
@andrewferg8737
@andrewferg8737 4 года назад
Who is the instructor?
@jimscobie6646
@jimscobie6646 7 лет назад
so easy, a caveman can do it! 😆
@WojciechP915
@WojciechP915 9 лет назад
Very good video. Hint of an echo though.
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Bill T cheers mate, I don't think we can do much about the echo unless we modify the building lol you never know tho eh
@WojciechP915
@WojciechP915 9 лет назад
Hand canvas high up on the walls.
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Bill T sounds good but what is hand canvas?
@johnblack6134
@johnblack6134 6 лет назад
not just an echo but a thump when the stick hits the board or a key is pressed.
@benvarkey5097
@benvarkey5097 5 лет назад
the audio echos ,makes unclear
@RvdB82
@RvdB82 6 лет назад
Who is this guy ? i want to visit his channel
@azadroid3097
@azadroid3097 5 лет назад
ashley mills
@k.alipardhan6957
@k.alipardhan6957 5 лет назад
@@azadroid3097 thx
@VaderDarth512
@VaderDarth512 9 лет назад
but can it run crisis?
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Ztrex with some external peripherals probably, albeit unbelievably slowly. Check this out: dmitry.gr/index.php?proj=07.+Linux+on+8bit&r=05.Projects some dude actually got linux to boot, it only takes 2 hours!
@VaderDarth512
@VaderDarth512 9 лет назад
Ashley Mills lol yes i know that trying to run crisis on an arduino would be like trying to simulate galaxy collisions on a laptop. It was just a joke
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
haha, sorry I tend to take things literally :D
@VaderDarth512
@VaderDarth512 9 лет назад
Ashley Mills...
@crocellian2972
@crocellian2972 7 лет назад
Thumbs up for the great video. Best content I have seen. Audio was ghastly. It was so bad that it was truly unprofessional and, personally, I would never post something this bad.
@1pcfred
@1pcfred 7 лет назад
Get yer head out of your arse and it will sound a whole lot better
@strongforce8466
@strongforce8466 9 лет назад
Couldn't have choose a more disturbing T-shirt. lol. Interesting video though !
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Thomas Syxe lol, it's a happy t shirt for day of the dead, a happy celebration in mexico :D
@MrEvilTag
@MrEvilTag 4 года назад
There's literally nothing disturbing about it
@truthseeker7775
@truthseeker7775 6 лет назад
I wonder what the hidden inside joke is all about. 1:32
@pir869
@pir869 6 лет назад
get me a texan an a double nougat........an a boatle a irn bru.
@2maracas432
@2maracas432 6 лет назад
speek like to eat
@mandelbro777
@mandelbro777 4 года назад
great video, but dude, the sound ... REEEeeeeee.
@TheInfoworks
@TheInfoworks 9 лет назад
Ashley. Not for the total novice. The sketch setup and instructions assumed a level of knowledge, so lost me in the brackets and numbers. What on earth was going on? Cheers, Andy
@TheInfoworks
@TheInfoworks 9 лет назад
Not what I was saying, don't look for adverse criticism between the words, cheers, Andy
@Audabonify
@Audabonify 9 лет назад
Sorry mate it's difficult for me to judge the level sometimes. I'll do some videos on programming itself from the absolute beginning.
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Sorry mate it is difficult for me to judge levels since I've been programming for a long time. I'll do some videos on absolute basics as there will be tons of people in your shoes
@AshleyMillsTube
@AshleyMillsTube 9 лет назад
Audabonify ignore this, phone was logged in old account
@TheInfoworks
@TheInfoworks 9 лет назад
Ashley, thanks, imagine I am 5 and learning to read. Cheers, Andy
@jeffrowe6004
@jeffrowe6004 4 года назад
you could condense this entire video down to about 10 minutes
Далее
You can learn Arduino in 15 minutes.
16:34
Просмотров 9 млн
В GEOMETRY DASH СДЕЛАЛИ GTA
00:27
Просмотров 349 тыс.
Control ANY COMPUTER with these Pi KVMs!
17:46
Просмотров 802 тыс.
Every Component of a Switch Mode Power Supply Explained
23:10
Mechanics Test Futuristic Tools
19:27
Просмотров 621 тыс.
How Do Computers Remember?
19:32
Просмотров 6 млн