How to program an Arduino on a breadboard (without USB) || Arduino tutorial

  Рет қаралды 35,753

ElectronFun.com

ElectronFun.com

10 жыл бұрын

In this video I'm demonstrating how to program an Arduino on a breadboard. I'm using an Arduino Uno as an ISP programmer to burn Arduino bootloader and program the Atmega chip. I'm also showing how to omit the bootloader and burn your sketches directly to the Atmega microcontroller. You can gain the full program space of the chip, because the bootloader does not take any memory.
I built this simple Arduino on a breadboard in my previous video:
• How to build a simple ...
See all my Arduino tutorials here:
• Arduino tutorials
Subscribe to get notified about my new videos:
kzbin.info_c...
----------------------------------------------------------------------------------------------
KZbin channel: / electronfuncom
Google+: plus.google.com/+Electronfuncom
Facebook: / electronfunpage
Twitter: / electronfun
Website: ElectronFun.com
----------------------------------------------------------------------------------------------
Video, edit, voice by Chris Lorkowski
Music by Jason Shaw - Rhastafarian
www.audionautix.com

Пікірлер: 73
@mohamedheouaichi3392
@mohamedheouaichi3392 10 жыл бұрын
Great video and description.
@Fogaata
@Fogaata 6 жыл бұрын
Very much appreciated. Nice video, thank you.
@rbmontes
@rbmontes 6 жыл бұрын
Very good tutorial. Thank you!
@ElectronFunCom
@ElectronFunCom 6 жыл бұрын
Thank you for your comment :)
@roymagsino8036
@roymagsino8036 6 жыл бұрын
Sir, thank you for the wonderful video. We tried it and it works. But in the part where we disconnect the Arduino from the board and only use 5v for the powersource. the LED is not working. We are using Atmega328p, what might be the problem? Thanks
@crkbqt
@crkbqt 6 жыл бұрын
Nice video, it was very heplful, thank you
@ElectronFunCom
@ElectronFunCom 6 жыл бұрын
I'm glad the video was helpful. Thank you for the comment :)
@hanmadrin3282
@hanmadrin3282 6 жыл бұрын
Thnx for the video
@user-dz6dj4ur3h
@user-dz6dj4ur3h 8 жыл бұрын
Thanks you man soooooooooo much
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+‫منتظر علي‬‎ No problem, thanks for watching and your comment.
@ireneboske5026
@ireneboske5026 10 жыл бұрын
Hi! I have follow all the steps and it works, but, when I unplug my arduino to an external source, the red led still on but the green one stops blinking. do you know why happens this? Thank you for your awesome tutorials!
@ElectronFunCom
@ElectronFunCom 10 жыл бұрын
Hi, thanks for watching and your kind words! When you power up the board the green LED starts blinking after quite a while (may take more than 10 seconds). In my video It's 3 times faster (FF x3), I didn't want to bore you :) How long did you wait? If you still can't make it work maybe you could post a photo of your breadboard, it would be easier for me to figure out what might be wrong.
@SaptarshiGhosh111
@SaptarshiGhosh111 9 жыл бұрын
Can this work with any sketch no matter how complicated they are,or are their any restrictions
@SaptarshiGhosh111
@SaptarshiGhosh111 9 жыл бұрын
Thanks,really helped out. Besides I wanted to know that is it possible to still to serial communication through the serial monitor provided in the Arduino IDE, even after bootloading and programming the sketch on a standalone ATMEGA328P.
@abdullaha219
@abdullaha219 9 жыл бұрын
great video, Thanks I want to ask, is this connection applicable for any atmega controllers, I mean should I have to change the number of pins that mentioned in the video if I used any other atmega controllers
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
Abdullah Ali Thank you! You can use this with ATmega328, Atmega16 and Atmega8. When it comes to pinout - Arduino digital pin 9 for example is actually pin 15 on the Atmega328/16. You can find the full ATmega168/328 Arduino pin mapping here: www.arduino.cc/en/Hacking/PinMapping168
@garkeinen7034
@garkeinen7034 9 жыл бұрын
ElectronFun.com Do I have to build my arduino on a breadboard or can I also use the Atmega on its own? (in case it matters: I use an Atmega328)
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
egalo egeilo Theoretically you could use it on its own, but it needs some knowledge. You would need a different bootloader to use the internal 8MHz oscillator instead of the external 16MHz crystal. Go here: forum.arduino.cc/index.php?topic=69608.0
@garkeinen7034
@garkeinen7034 9 жыл бұрын
Thank you for your quick answere!
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
egalo egeilo No problem.
@mohamedboughattas9206
@mohamedboughattas9206 8 жыл бұрын
Hello ! nice work ! I would just ask you how to connect arduino ethernet board with foca . Thanks
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Mohamed Boughattas I don't have a Foca board to check this, but I've just found two links that may help you: forum.arduino.cc/index.php?topic=393389.0 bf-arduinolab.wikidot.com/docs:use-foca-board-for-arduino-ethernet-board.
@avinashbudania9101
@avinashbudania9101 7 жыл бұрын
hey, can you explain why you connected pin 17 to 11 , 18 to 12, 19 to 13 and 1 to 10
@ElectronFunCom
@ElectronFunCom 7 жыл бұрын
Hey, Arduino Uno pins do not correspond directly to ATmega168/328 pins, see the pinout here: www.arduino.cc/en/Hacking/PinMapping168.
@rejinjacob2124
@rejinjacob2124 8 жыл бұрын
so can we upload program to "on board ATMEGA328 chip" without the bootloader? or an external isp programmer necessary to do so? can we use FTDI adapter to upload codes to a ATmega chip without bootloader? thank you so much for the video
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
I'm afraid you need the bootloader if you want to use ArduinoISP.
@rejinjacob2124
@rejinjacob2124 8 жыл бұрын
OK,got it. now I am trying to upload code to a 328p chip on breadboard(using internal 8MHZ oscillator) using arduino as ISP.when I upload a blink sketch using "upload using programmer" option,everything goes well. But when I try to upload a bootloader the arduino IDE says sucessful.but something is not right.the LED on the pin 13 keeps on blinking(on for 0.5sec and OFF 1sec). now when i try to upload sketch to this chip using arduino as ISP it says ""not in sync""
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
So it's successful when you're using a programmer and it's unsuccessful when using Arduino as ISP?
@rejinjacob2124
@rejinjacob2124 8 жыл бұрын
Sorry. Sorted it out. The new arduino boatloader blinks pin 13 led only once. I had one more doubt, Last one I promise. Why does "upload using programmer" remove bootloder and normal upload doesn't when using "arduino as ISP"
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
I guess a bootloader is not needed when you are using a programmer.
@lucascuestam
@lucascuestam 8 жыл бұрын
How can I program my Atmega328p without an Arduino board? I am looking for a serial diy programmer. The atmega already has the arduino bootloader
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+lcm You would still need some kind of a microcontroller to build a DIY programmer, wouldn't you?
@lucascuestam
@lucascuestam 8 жыл бұрын
I'm trying to build some cheap and easy circuit to program my atmega328p. I bought a usb to rs232 cable and I build this circuit imgur.com/OVQXGvv but it seems that my cable isn't compatible with windows 10. So now I'm going to buy an UsbAsp or a ca-42 cable but now I'm wondering if they're compatible with windows 10. Can you give me some advice?
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+lcm Did your USB to RS-232 converter show up in Device Manager as a new COM port, or is there an exclamation mark? I believe it should work with Windows 10.
@shubhamkumarsingh6557
@shubhamkumarsingh6557 7 жыл бұрын
Sir, how are we going to interface fingerprint sensor with this Arduino and how are we going to burn and run the program instead of this LED ?
@ElectronFunCom
@ElectronFunCom 7 жыл бұрын
A lot depends on your sensor and its wiring diagram. When it comes to burning the sketch - you can try swapping the chip on your Arduino, burning the sketch and then swapping the chips again.
@amitbane7457
@amitbane7457 8 жыл бұрын
if i want to install USB then where should i fix it
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+amit bane You would need a USB to TTL converter. It's usually a small PCB with a couple of header pins.
@speedysnail101
@speedysnail101 9 жыл бұрын
Hi does anybody know if this works with Arduino Mega? And if so, does it use the same pins?
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
+speedysnail101 Arduino Mega uses ATmega2560 - a totally different chip with many more legs. Correct me if I'm wrong but it's not even sold for through hole mounting.
@speedysnail101
@speedysnail101 9 жыл бұрын
+ElectronFun.com Sorry for the confusion, I meant using an Arduino Mega to program an ATmega328P-PU, not using an Arduino Uno to program an ATmega2560
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
+speedysnail101 Now I get what you mean. I guess you could use an Arduino Mega as an ISP programmer and it should work.
@speedysnail101
@speedysnail101 9 жыл бұрын
+ElectronFun.com Awesome, thanks
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
+speedysnail101 No problem :)
@velmasiddhartha8465
@velmasiddhartha8465 8 жыл бұрын
what software did u used to program ?
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Velma Siddhartha I used Arduino IDE.
@velmasiddhartha8465
@velmasiddhartha8465 8 жыл бұрын
ok bro thanks a lot :)
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Velma Siddhartha No problem :)
@jmemusic
@jmemusic 3 жыл бұрын
I guess this is only useful if you have a real Arduino and your Arduino breadboard; however, if you only have the breadboard, then you can't do anything. I guess much more useful would be to add the USB interface to the breadboard Arduino, with the USB to TTL converter you mentioned on one of the comments.
@LinguaBlend
@LinguaBlend 7 жыл бұрын
sir boot loader is not uploading i get errore please help me
@ElectronFunCom
@ElectronFunCom 7 жыл бұрын
What does the error message say?
@SeuzGames
@SeuzGames 8 жыл бұрын
Isn't it better to just take out the ATmega ic and put it into the "Funduino"?
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+ALMAO It's easier, bud there are projects, where you don't need the whole Arduino/Funduino board and all its features.
@SeuzGames
@SeuzGames 8 жыл бұрын
+ElectronFun.com No I understand that. I ment that when you program it, instead of connecting all the cables you put the Atmega168 chip into the arduino that was previously in our homemade arduino and program it normally. I mean, the chips store the code so. Isn't it easier this way.
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+ALMAO You are right, it's a lot easier if you have a DIP socket on your board and if you have an Arduino/Funduino at hand :)
@daylev4067
@daylev4067 9 жыл бұрын
hi can you make other programs using different pins of the arduino and program it to the chip. examples other than this blink example of yours. thanks :)
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
+dayle villanda Sure you can, I made this video to show people that you don't need to use the "full" Arduino board if your project doesn't need all its features.
@daylev4067
@daylev4067 9 жыл бұрын
+ElectronFun.com no i mean can please make other programs. can you please make other examples. if you could make a program that controls servo that would be a huge help :) because when i try controlling servos, it has some kind of different reactions. but my sensors it works fine.
@ElectronFunCom
@ElectronFunCom 9 жыл бұрын
+dayle villanda I have so many plans and so little time. There are at least 20 ideas for videos on my list, including servos. I hope I'll manage to make more videos in the near future.
@owendavidmalicsi5900
@owendavidmalicsi5900 8 жыл бұрын
hey...I want the full version of it....what i am going to do....reply please
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Owen David What full version do you mean?
@owendavidmalicsi5900
@owendavidmalicsi5900 8 жыл бұрын
I MEAN I AM GOING TO USE THE WHOLE ARDUINO SO HELP ME...THANKS
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Owen David What do you want to use your Arduino for? I don't know how to help you - I have no idea what kind of project you're trying to build.
@owendavidmalicsi5900
@owendavidmalicsi5900 8 жыл бұрын
I am sorry..not a full version but the whole arduino is useful right...and I am going to use the whole of it..
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+Owen David Sure, you can use the whole Arduino board.
@ElectronFunCom
@ElectronFunCom 10 жыл бұрын
Do you want to know How to program an Arduino on a breadboard?
@mousanadermahdi5656
@mousanadermahdi5656 8 жыл бұрын
what is your Componentsproject
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+mousa nader What do you mean?
@ElectronFunCom
@ElectronFunCom 8 жыл бұрын
+mousa nader See my previous video, where I built the Arduino on a breadboard: kzbin.info/www/bejne/i4bZpn-JaJiZh9U and the project's page on my website, here: electronfun.com/project_1.php.
@jjbailey01
@jjbailey01 5 жыл бұрын
I came to this video to learn to program an Arduino without USB. So the very first thing done is plug a USB cable from the computer into the Arduino. I'm kind of disappointed.
How to build a simple Arduino on a breadboard || Arduino tutorial
7:55
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 24 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,5 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 13 МЛН
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,1 МЛН
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 192 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 141 М.
Arduino Interrupts Tutorial
9:30
educ8s.tv
Рет қаралды 294 М.
Arduino as ISP
8:56
Notes and Volts
Рет қаралды 338 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 5 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,3 МЛН
Bluetooth connected successfully 💯💯
0:16
Blue ice Comedy
Рет қаралды 1,4 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН