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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ก.พ. 2014
  • 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:
    th-cam.com/users/subscription_c...
    ----------------------------------------------------------------------------------------------
    TH-cam 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

  • @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

  • @mohamedheouaichi3392
    @mohamedheouaichi3392 9 ปีที่แล้ว +1

    Great video and description.

  • @Fogaata
    @Fogaata 5 ปีที่แล้ว

    Very much appreciated. Nice video, thank you.

  • @rbmontes
    @rbmontes 6 ปีที่แล้ว +1

    Very good tutorial. Thank you!

  • @hanmadrin3282
    @hanmadrin3282 5 ปีที่แล้ว

    Thnx for the video

  • @abdullaha219
    @abdullaha219 9 ปีที่แล้ว +1

    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.

  • @ireneboske5026
    @ireneboske5026 9 ปีที่แล้ว +1

    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  9 ปีที่แล้ว +1

      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.

  • @user-dz6dj4ur3h
    @user-dz6dj4ur3h 8 ปีที่แล้ว +2

    Thanks you man soooooooooo much

    • @ElectronFunCom
      @ElectronFunCom  8 ปีที่แล้ว

      +‫منتظر علي‬‎ No problem, thanks for watching and your comment.

  • @SaptarshiGhosh111
    @SaptarshiGhosh111 9 ปีที่แล้ว +1

    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.

  • @crkbqt
    @crkbqt 6 ปีที่แล้ว +1

    Nice video, it was very heplful, thank you

    • @ElectronFunCom
      @ElectronFunCom  6 ปีที่แล้ว

      I'm glad the video was helpful. Thank you for the comment :)

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      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.

  • @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.

  • @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.

  • @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.

  • @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.

  • @velmasiddhartha8465
    @velmasiddhartha8465 8 ปีที่แล้ว

    what software did u used to program ?

  • @daylev4067
    @daylev4067 8 ปีที่แล้ว

    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  8 ปีที่แล้ว

      +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 8 ปีที่แล้ว

      +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  8 ปีที่แล้ว

      +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.

  • @SeuzGames
    @SeuzGames 8 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      +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 :)

  • @speedysnail101
    @speedysnail101 8 ปีที่แล้ว

    Hi does anybody know if this works with Arduino Mega? And if so, does it use the same pins?

    • @ElectronFunCom
      @ElectronFunCom  8 ปีที่แล้ว

      +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 8 ปีที่แล้ว

      +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  8 ปีที่แล้ว

      +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 8 ปีที่แล้ว

      +ElectronFun.com Awesome, thanks

    • @ElectronFunCom
      @ElectronFunCom  8 ปีที่แล้ว

      +speedysnail101 No problem :)

  • @amitbane7457
    @amitbane7457 8 ปีที่แล้ว +1

    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.

  • @LinguaBlend
    @LinguaBlend 7 ปีที่แล้ว

    sir boot loader is not uploading i get errore please help me

    • @ElectronFunCom
      @ElectronFunCom  7 ปีที่แล้ว

      What does the error message say?

  • @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.

  • @jjbailey01
    @jjbailey01 5 ปีที่แล้ว +2

    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.

  • @ElectronFunCom
    @ElectronFunCom  10 ปีที่แล้ว +1

    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: th-cam.com/video/UUvuLS33fQs/w-d-xo.html and the project's page on my website, here: electronfun.com/project_1.php.