$2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มี.ค. 2016
  • Atmega328 here: www.banggood.com/custlink/3Dm...
    Facebook: / officialtomheylen
    In this video you will learn how to use the Arduino ATMEGA328 microcontroller chip as a stand-alone microcontroller. I got mine here:
    s.click.aliexpress.com/e/IQ3Zf...
    And the dip socket here:
    s.click.aliexpress.com/e/YVRBU...
    They cost only 2 bucks, can do the same as your Arduino and make your projects extremely small.
    We will cover the pin layout, how to make it ready for the Arduino software by burning a bootloader and how to upload sketches.
    Watch the rest of this video to find out how you can make your Arduino projects smaller and cheaper in no time.
    Parts list
    1 Arduino
    1 ATMEGA328P-PU chip.
    Breadboard
    Wires
    Optional: LED and 330 ohm resistor for testing
    Download and install library
    An Arduino board comes standard with a 16MHz external oscillator.
    We don't really need this 16MHz oscillator as the ATMEGA328P-PU has a 8MHz oscillator build in.
    In order to make this chip work as a stand-alone microcontroller at 8MHz, we have to download and install a library for our Arduino environment.
    To do this, click the link that match your Arduino version to download the zip file.
    It will be eater
    1-6-x.zip
    www.arduino.cc/en/uploads/Tut...
    1-5-x.zip
    www.arduino.cc/en/uploads/Tut...
    1-0-x.zip
    www.arduino.cc/en/uploads/Tut...
    Next we have to find the Arduino sketchbook folder by clicking on File → preferences → “Sketchbook Location”. In my case “C:\Users\tomtomheylen\Documents\Arduino” this can be different in your case.
    Copy the location and go to “this pc”, paste it in the bar and press enter.
    If you see a folder named “hardware”, open it.
    If not, make a new folder named “hardware” by right clicking and select “new → folder” and type “hardware”. Now open it.
    Move the breadboard folder from the zip archive to the “hardware” folder.
    Restart your Arduino IDE and go to “Tools → board”.
    If everything is OK, you should see in the list “Atmega 328 on a breadboard (8MHz internal clock)”.
    The most difficult part is done now so let's have some fun pumping life in that ATMEGA328.
    Burn bootloader
    These ATMEGA328 microcontroller chips usually come empty. To make them work with the Arduino IDE, we have to do something what's called “burning a bootloader”. It is a tiny bit of code we burn on the chip so it will understand the Arduino software.
    To do this, connect your Arduino to your computer and go to “File → examples → ArduinoIsp” and select “Arduino Isp”. Upload this sketch to your Arduino and disconnect from your computer.
    Next we connect the Arduino with the ATMEGA328 as you can see in the image.
    Note the half circle on the chip. Make sure it is on the correct side.
    Now connect your Arduino and in the Arduino IDE go to “tools → Programmer” and select “Arduino as ISP”.
    Next go to “Tools → Board” and select “Atmega 328 on a breadboard (8MHz internal clock)”.
    Now go to tools and select “Burn Bootloader”.
    Your bootloader is burned and your chip is ready to upload sketches!
    In case you have an error message, unplug your Arduino and repeat the previous steps.
    Uploading sketches
    To upload a sketch you have to remove the ATMEGA328 chip from the Arduino board and connect to the breadboard as shown in the image.
    I have connected a led with resistor on the board to test the blink sketch.
    Here is how to use this image for the pin layout.
    So for example if you initialize pin 13 in the IDE, it represents pin 13 on the Arduino board or pin 19 on the ATMEGA328 chip.
    Congratulations, you made it! You can now start soldering your own minified Arduino projects for next to nothing.
    A few helpful tips
    I will end this video by giving you a few more more helpful tips:
    If you solder a project, you need to use a 28 pin DIP socket and add the ATMEGA328 after soldering the project.
    I got mine here:
    www.banggood.com/5-Pcs-2_54mm-...
    It is good practice to solder some male or female header pins to the 3 first legs so you can still change or upload sketches if needed.
    If your micro controller is behaving weird, you can add a 10 to100 uf capacitor in between + and -.
    Make sure when you order the chip that it is the ATMEGA328P-PU.
    Final note
    Did you like this video, please click the Favorite button and subscribe.
    See you in the next video.

ความคิดเห็น • 222

  • @Ro_Wa
    @Ro_Wa 8 ปีที่แล้ว +60

    Finally someone who explains it step by step. Thank you!

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

      You are right

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

    Simpel, brief and straight forward and very effective explanation. 👍

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

    Great tutorial, you explain things very well. I particularly like the header pins for reprogramming, sure saves time!

  • @markuseby5267
    @markuseby5267 10 หลายเดือนก่อน

    I came back to like the video. I had watched this 7 years ago when I was first getting into school for computer science. I had purchased some atmega 328 chips but needed further education to begin really digging in and enjoying what I could do with them. I’ll admit I’m no electrical engineer. But I enjoy the puzzle of logic

  • @colinloweg1ivg318
    @colinloweg1ivg318 3 ปีที่แล้ว +2

    Love the Kite-board in the background. Thanks for the great video. Good Winds to you.

    • @TomHeylen1
      @TomHeylen1  3 ปีที่แล้ว

      You are the first one to notice. Great! The board in the back is a wakeboard but kiteboarding is what I do. Wakeboarding when there is no wind. The last few years mainly hydrofoiling. Cheers and have a great day!

  • @naveenvaid4318
    @naveenvaid4318 7 ปีที่แล้ว +3

    Thanks for this information. finally you explain very easily step by step. i done it. again thanks for this...............

  • @ThatTalkingDogGuy
    @ThatTalkingDogGuy 5 ปีที่แล้ว +7

    Your guides are always great! If only a 1.8 library existed

    • @MaxDiscere
      @MaxDiscere 4 ปีที่แล้ว

      i think the 1.6 shoudl still work

    • @ianthehunter3532
      @ianthehunter3532 3 ปีที่แล้ว +1

      @@MaxDiscere So you could use 1.6 file with 1.8.x version?

    • @abrahamjones3635
      @abrahamjones3635 ปีที่แล้ว

      @@ianthehunter3532 yah

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

    Subbed. As novice you explain things very well I am going to give this a try. looking into getting a arduino very soon thanks for uploading the video

  • @Gardol2
    @Gardol2 7 ปีที่แล้ว +3

    Already done this on my projects and all worked 100% THANKS!

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

      Good to hear. Cheers.

  • @advancednutritioninc908
    @advancednutritioninc908 7 ปีที่แล้ว +1

    Very Well done Tom!! ... Thank You !! ... I liked and Subbed.

  • @shimmeringreflection
    @shimmeringreflection 3 ปีที่แล้ว +2

    Great video -- this is exactly how an instructable should be done: clear instructions and easy to follow -- you've just gained a subscriber! I'm going to order some Atmega chips for use in my production versions of my projects (rather than using the larger, more expensive Arduino boards)

    • @TomHeylen1
      @TomHeylen1  3 ปีที่แล้ว

      Hi, Great the video has helped you. I use also very often the nano because they are cheap and small like this one here. Have a great day.
      www.banggood.com/Geekcreit-ATmega328P-Nano-V3-Module-Improved-Version-No-Cable-Development-Board-Geekcreit-for-Arduino-products-that-work-with-official-Arduino-boards-p-959231.html?cur_warehouse=CN&rmmds=buy

    • @shimmeringreflection
      @shimmeringreflection 3 ปีที่แล้ว

      @@TomHeylen1 I'm going as small and cheap as possible, bypassing breadboards for production -- considering the AtTiny instead, soldering the wires on

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

    finally. someone who explains how to do this properly. theres lots of other videos online but they slightly mention 'oh yeah also hook up an external clock' i mean cmon.

  • @christophertadeo6120
    @christophertadeo6120 ปีที่แล้ว

    😀His explanation is best... 😀👍.. Simple and straightforward.... 👍

  • @MrSome1bad
    @MrSome1bad 8 ปีที่แล้ว +4

    Very informative man

  • @userou-ig1ze
    @userou-ig1ze 3 ปีที่แล้ว

    this worked for me under 1.8.4. (file in breadboard folder: 1-6-something) however there was an error about efuse, which another guide suggested to ignore. That was good advice so far.
    - If you continue to program your atmega using ftdi (next video) you also preserve your bootloader and this worked well for me
    - make sure to turn on verbose uploading in Preferences, to have any clue as to what's going on!!

  • @kosa2004
    @kosa2004 7 ปีที่แล้ว +12

    I had 5 blank chips. Could not program them. After this video, i could burn a bootlader to them. Thanks a lot! God bless ya!! 😊👍✌👏

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

      were these atmega328 or atmega328P

    • @kosa2004
      @kosa2004 7 ปีที่แล้ว +1

      Atmega328P-PU. Try out Nick Gammons bootloader burning method via serial monitor. Easier too.

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

      im doing the same tutorial lol

    • @ianthehunter3532
      @ianthehunter3532 3 ปีที่แล้ว

      @@ezeprojects5425 What's the big difference?

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

    Great job! Thanks for your guide =)

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

    Very Cool; very well done!

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

    Thanks very much Tom

  • @dustinturner1757
    @dustinturner1757 2 ปีที่แล้ว +1

    Great video!

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

    Great video

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

    project work for me!! Thank you very much. Is there a download for atmega328p-AU to use 8mhz so it can be standalone on breadboard?

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

    Thanks that was so helpful

  • @AliA-ti1ko
    @AliA-ti1ko ปีที่แล้ว +1

    Great, thanks so much for your video

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

    Where can we download the images from the video? They would be a great guide to hang on the wall of the workshop!
    Thanks for the great video. So far, it's my favorite way to do this!

  • @aamoroso2824
    @aamoroso2824 4 ปีที่แล้ว

    FANTASTIC

  • @robosapien314
    @robosapien314 3 ปีที่แล้ว +3

    For all of you with an error when burning the bootloader:
    Try to connect a 16MHZ clock between the pins 9 and 10 of the atmega328p chip. Now connect pin 9 and 10 to GND using a 22 pFarad capacitor (with pin 9/10 I don't mean the digital Pins, but the pins you can find on the pinout). Should work now!

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

    Hey Tom, have you ever tried setting the fuses to let you use PB6 and PB7 (the oscillator pins) as digital IO ? I know it's possible but I'm not sure how that will work out with the arduino pin numbering.

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

    Thank you for the video. Is it possible to use the ATMEGA 328 with Raspberry Pi projects?

  • @nguyenthinh6188
    @nguyenthinh6188 3 ปีที่แล้ว

    Thank, it very helpful

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

    this was made for me i think..thanks a lot..but i'm going to use HC-05 Bluetooth module with this standalone uno, will it work?

  • @Saimoun82
    @Saimoun82 4 ปีที่แล้ว

    Just FYI - the 16MHz crystal you are pointing at is the one for the Atmega16U2 chip used for USB ;)
    The Atmega328 crystal is a resonator, the tiny gray thing just above the chip.

  • @20002000l
    @20002000l 6 ปีที่แล้ว

    When I want to use a crystal, do I need to do anything different, or can I just add it to the breadboard?

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

    a lot of other tutorials ive looked at say to connect two .1mF capacitors between pins 7 and 8, 20 and 22. Are those needed? It doesn't look like you had any in this

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

    thanks very useful

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

    well done sir.

  • @user-bn1xu1bi3n
    @user-bn1xu1bi3n 5 ปีที่แล้ว

    Very nice!

  • @janaalam5633
    @janaalam5633 3 ปีที่แล้ว +1

    Thanks brother..

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

    Would I be able to do this also with the 328P 32-leg square chip if I bought the socket for the chip, since its SMD type component? (Arduino Nano)

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

    thank you very much for useful video, but i have a little problem, when i try to use push button, when i press it everything get restarted, should Capacitor resolve this problem?

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

    Awesome!! I just got 2 micro controllers like those... hehehe also I have a couple of arduino pri mini, I guess I should have no trouble, firmware is basically the same. I will let you know any news!

  • @GnuReligion
    @GnuReligion 7 ปีที่แล้ว +2

    You are inspiring me into making a "Liberating an ATmega with a Raspberry Pi vid! Hehe. Have you tried making a v-usb USBasp bootloader? This way, you can upload sketches, and even debug, through a USB cable, with only passive circuitry, and 5 inexpensive components ... and ... well, you'll need a crystal, which is also inexpensive.

    • @TomHeylen1
      @TomHeylen1  7 ปีที่แล้ว +1

      I haven't done that yet. I'm experimenting with the Onion a bit lately.

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

    awesome!!

  • @zaheerahmad5632
    @zaheerahmad5632 3 ปีที่แล้ว

    Nice video

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

    Excellent (y)

  • @flushyoudowntheloo
    @flushyoudowntheloo 5 ปีที่แล้ว +1

    hi can i use a SMT atmega328 and just match the pinouts to this?

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

    Will this method work for a generic version of arduiono? One that does not have a chipset? I assume that it can but that I will not be able to test on the arduino.

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

    It's very cool because you can use the ATMEGA328 with 3.3v, to upload sketch use 5V, be careful with the 3.3v sensor connected. Before upload sketch disconnect it.

  • @user-lq9ls7fu3r
    @user-lq9ls7fu3r ปีที่แล้ว

    nice presention ,

  • @jonnydetiger2627
    @jonnydetiger2627 4 ปีที่แล้ว

    Thanks for the tutorial! Is it possible to just download the sketch when the chip is still on the arduino and then just take it off and then put it on the breadboard for your project- without all the wiring ? --And then just stick a new chip back on the arduino so you could do it again for multiple projects? thank you

    • @peileed
      @peileed 3 ปีที่แล้ว

      I would recommend you to build some circuit where you have 2 ends, one for the arduino and another one for your ATMEGA328 , so you just leave it there ready to plug

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

    What are the max current input I can give at 5v and 3.3 v to power it not for use in pins

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

    that electrolytic capacitor you used ?

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

    Is there also a tutorial available which shows the same with an atmega32u4? I need a standalone arduino which supports USB serial communication and I really can't find any good tutorial on that..

  • @ianthehunter3532
    @ianthehunter3532 3 ปีที่แล้ว +1

    Would it work if I put this burned chip instead of the original atmega328 if it broke or something?

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

    Love this for the atmega328p-pu. Does anyone know if this works on atmega328p-au?

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

    OMG awesome Awesome ............ Finally you won over me !

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

    so bootloader is like an operating system and a 'sketch' is the program?

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

    Tom Heylen
    Will your procedure for BootLoading the Atmega328P-PU work using an Arduino UNO CLONE, made in China, operating on CH340 USB driver?
    Thanks for the advice.
    martymarty

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

    at 3:22 u say to put the chip on the breadboard but later when u say to burn the bootloader u remove the chip from the arduino board. do we burn the bootloader when the chip is on the arduino board or the breadboard?

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

      Burn the bootloader when it's on the breadboard. Let me know if any issues

  • @ShawnA560
    @ShawnA560 4 ปีที่แล้ว

    Does this process eliminate the delay of booting time?

  • @naeemhassim2376
    @naeemhassim2376 5 ปีที่แล้ว +4

    Hi Tom,
    I have an Atmega328 with a bootloader already burned.
    Also, My arduino IDE version is 1.8.5
    Will the 1.6 zip file still work?

    • @ianthehunter3532
      @ianthehunter3532 3 ปีที่แล้ว +1

      Did it?

    • @25pringles
      @25pringles 3 ปีที่แล้ว

      i have the same question. if anybody has tried it can they please answer

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

    in this case, the Arduino uses a resonator instead of crystal as you can see on 1:05 above the chip, the crystal that you showed does not belong to the atmega328

  • @jesuslair
    @jesuslair 7 ปีที่แล้ว +4

    Thank you for the guide. I'm getting this error:
    avrdude: Device signature = 0x000000
    avrdude: Yikes! Invalid device signature.
    Any idea?

    • @coenraadloubser5768
      @coenraadloubser5768 4 ปีที่แล้ว

      I had same. Then I realized I had chip backwards. Then I checked wires again, but inbetween checking and programming one cable came loose, it worked when I connected everything properly. These tiny wires can look like they are connected when they are not... Nick Gammon's sketches also helped to do tests.

    • @jesuslair
      @jesuslair 4 ปีที่แล้ว

      In my case the oscillator it was broken. but i think it show the same error when the micro (the atmega) is not in reset mode, i mean when you reset it but you take too much time to upload the sketch. Hope it help. If is there any thing i can do for you just let me know. Regards

  • @ruhulaminmahin4504
    @ruhulaminmahin4504 4 ปีที่แล้ว

    I have one question .....I want to use Bluetooth modules in atmega 328p(without external crystal).would it work??

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

    Tnks man . Verry easy if ubhave guys like u . Keep it up. Like subscrybed and bell it.

  • @ThatTalkingDogGuy
    @ThatTalkingDogGuy 5 ปีที่แล้ว +1

    I've successfully moved my main project from Arduino to an ATmega328p on a custom PCB (mostly thanks to your video), but now the EEPROM values I used to save when using the Arduino are no longer getting saved or retrieved. I can't seem to find any info online on how to modify the code to use the EEPROM on the standalone ATmega. You seem to know so much about this stuff, I'd owe you one if you happened to have insight on this!

    • @sweetleaf7751
      @sweetleaf7751 4 ปีที่แล้ว

      I am guessing the Arduino always has to be connected. (which is why i rather do old School electronics. I also assumed You can just program the chip then just use Your own board with no Arduino connected

    • @sweetleaf7751
      @sweetleaf7751 3 ปีที่แล้ว

      @Christian Weissmuller Hi yes it took me a long while to understand that,
      Thank You

  • @mingosutu
    @mingosutu ปีที่แล้ว

    Nice job. Have you stopped uploading videos. Go on, please. Keep it up

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

    I assume this is not possible to do with a One SMD, right?

  • @engr.salman2619
    @engr.salman2619 6 ปีที่แล้ว

    Sir my arduino uno has non removable Atmega Chip. what should I do to burn an external atmega?

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

    i have an atmega 328 chip that i have already programed.. how do i use that as a stand alone?

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

    Will a ATMEGA328-PU work? What he said had an extra P.

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

    Can I use the original chip of the arduino uno even I did not burn the bootloader to shrink my projects? Thanks!

    • @TomHeylen1
      @TomHeylen1  5 ปีที่แล้ว +1

      Sure you can

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

      @@TomHeylen1 Thanks idol

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

    So if we remove all jumper wires instead of wires which are providing power and gnd to the atmega then the atmega should work right?

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

      No. Just buy a goddamn bms

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

      @@muhammadwaqar3406 cant do that. My director wont allow me

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

    What if we have an arduino uno where you can't remove the IC? Is there any way to upload sketches to the atmega328? I have one that already has the bootloader but I don't have a USB to serial cable. Is it possible to cut up a USB cable and attach to breadboard? Please help!

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

      Watch my video on ftdi connector. I think it will solve your problem. Have a good one. Cheers

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

    can i use arduino nano in place of uno

  • @majidhantooshff
    @majidhantooshff 5 ปีที่แล้ว +4

    At 4:08, there was a wrong in the sketch (diagram), the RESET pin of ATMEGA328P-PU shall be connected to RESET pin (not to pin 1) of Arduino UNO , if you connected as in this video you will not be able to re upload a new sketch again

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

      Thanks for sharing. Now it works. Too bad that Tom doesn''t mention this somewhere - or in other words, has errors in his video :-(
      Anyway - I'm glad that he did this video & you corrected it! Thanks dudes!

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

      hi sir we have at mega 328p programmed chip( chip is 4x4 ) and we want to
      take a backup from this chip.please tell me how to take a backup from this chip?
      when can we use a Universal programmer to take a backup from this chip?
      if you have already a video on this please send me link
      thank you so much sir

    • @a.bax.5992
      @a.bax.5992 5 ปีที่แล้ว

      @@muhammadmushtaq2064 Sounds like you want to copy someone's program?

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

      @@a.bax.5992 no dear sir i am working on my sound my voice can if you have any idea or for batter voice please help me i am thankfull to you sir

  • @gasparigi
    @gasparigi 5 ปีที่แล้ว +1

    I am begginer, looking for simple solutions. If I buy a controller with bootloader on it, can I just replace the original to programme it? (On arduino uno directly)

    • @santiagolerin
      @santiagolerin 4 ปีที่แล้ว +1

      You will probably need a serial to USB adapter

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

    If I use the web version of Arduino create - which zip file do I need?

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

    Does this work for Arduino 1.8? Do you have the download?

  • @diogomiguel5477
    @diogomiguel5477 6 ปีที่แล้ว +4

    What if I have a version of the arduino where a I can't remove the uC, how do I upload sketches

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

      Did you ever figure this out? Because I have the same problem as you.

    • @MaxDiscere
      @MaxDiscere 4 ปีที่แล้ว

      cut him out lol

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

    hi sir we have at mega 328p programmed chip( chip is 4x4 ) and we want to
    take a backup from this chip.please tell me how to take a backup from this chip?
    when can we use a Universal programmer to take a backup from this chip?
    if you have already a video on this please send me link
    thank you so much sir

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

      You can't make a backup of this ship. This is called intellectual property. You don't have the source code, you can't do anything.

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

      thak you sir

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

    which capacitor use

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

    So, I'm trying to reupload a revised version of my sketch, and now I'm getting errors...

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

    If I don't want use arduino as power supply, did I need use voltage regulator in this arduino circuit?

    • @AlexLaw_Qld
      @AlexLaw_Qld 7 ปีที่แล้ว +1

      Yes, and no. Depends on the application, and on decisions about 5V or 3,3V peripherals, if you intend to use the ADC (Analogue Pins). Generally having a proper regulated supply and over voltage, excess current and reverse polarity protection is always worth it. Some varieties of the ATMEGA328 will operate at a wide range of voltages (about 1.8 to 5.5V) but not all sensors etc will be as forgiving.

  • @juanemc3
    @juanemc3 4 ปีที่แล้ว

    I had to copy the library to the hardware folder of the installation folder of the Arduino IDE. I am using UBUNTU 18.04 LTS and Arduino IDE 1.8.12. In my case this was /opt/arduino-1.8.12/hardware

  • @josedelsordo8106
    @josedelsordo8106 6 ปีที่แล้ว +4

    Does anybody knows why i get the "avrdude: stk500_getsync(): not in sync: resp=0x00" error every time i try to burn the bootloader?

    • @coachreenasharma
      @coachreenasharma 4 ปีที่แล้ว

      even ii hab the same problem

    • @25pringles
      @25pringles 3 ปีที่แล้ว

      did you install the bootloader and do you have the right driver for the usb to serial adapter.

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

    I have made a project with Atmega328p .
    The project is an 1HP motor(water pump) control .
    the circuit have sonar sensor ,16*2 LCD, relay,ULN2003,7805, crystal, capacitors, 10k variable resistor .,...it is working properly with 9V HW battery ,but when I am trying it with 12V adopter(adopter is ok- also tried with two more adopter) its not working....what would be the cause....My english is not good .....please reply

    • @TomHeylen1
      @TomHeylen1  5 ปีที่แล้ว +1

      Very likely that the adapter does not have enough amps. Check the amps your circuit uses and compare it with the adapter. Have a good day!

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

      +Tom Heylen thank you sir....

  • @mindbender128
    @mindbender128 4 ปีที่แล้ว

    What's the difference between ATmega 328, ATmega 328P and ATmega 328P-PU?

  • @jeffreylebowski4927
    @jeffreylebowski4927 5 ปีที่แล้ว +1

    The 16Mhz Crystal on the UNO only gives its pulse to the small microcontroller, that handles the USB connection - The Atmega328 is clocked by another ceramic oscillator!

    • @a.bax.5992
      @a.bax.5992 5 ปีที่แล้ว

      I see two crystals onboard.

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

      @@a.bax.5992 Are you sure about that? If so you must have a very rare clone.
      Almost all Unos and Megas and the clones have a crystal for the usb connection and ceramic resonator (which is not a crystal) for clocking the main microcontroller. - crystals usually are accurate to within 100ppm which is nessesary for the USB communication, where as ceramic resonators are only "accurate" to within 3000-6000 ppm, which becomes really noticible, when you are trying to control timing sensitive applications with it.
      I tried to build a telescope tracking system, and it was really off, after only a few seconds... the ceramic resonator on my Uno is 1500ppm too slow... After using a sqrw signal from a RTC module for timing it works great. (the crystal in the RTC is accurate to within 6ppm and temperature corrected).

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

    In the Version 1.6.9 com the warning: "Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB" and it takes a long time to compile.
    May it be, that I need an older Version of Arduino Compiler?

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

      I have the same problem...
      did you solve?

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

      Likewise - same problem (I'm running Arduino IDE v1.8.19. Anyone know of a solution?

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

      Oh I found the problem. He has the sequence incorrect. This error occurs when you set 'ATMega328 on a breadboard...' as the board before you upload the ArduinoISP sketch - you need to select your Arduino Uno board first, then upload the ArduinoISP example to it, then do the wiring to the breadboard Atmega328 chip, then select 'ATMega328 on breadboard...' the follow instructions to burn bootloader (3:29).

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

    i am using bootloader programmer but i am not aware of steps and connections..can someone help to proceed further.

  • @Leilektsoglou
    @Leilektsoglou 4 ปีที่แล้ว

    Sometimes there is no need to do whole this process (burning the bootloader) on such chips ( "PU" in the description) because many of them have already the bootloader burnt on them. So, pay attention when you buy.

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

    is there a reason, why i can after Bootload just upload my sketch once, and after them i get only errors when i try it again.. Until i do the same steps from begin, also ArduinoISP, Bootload, upload my sketch.. its kind'a stupid :/

  • @_zh3ro_
    @_zh3ro_ 8 ปีที่แล้ว +15

    GREAT GUIDE
    GREAT GUIDE
    GRE GUID
    GREGUY
    GREG
    GREG
    GREG
    GREG

    • @varkokonyi
      @varkokonyi 5 ปีที่แล้ว +1

      I understand

    • @JS7457
      @JS7457 5 ปีที่แล้ว +3

      hold the door
      hold the door
      hod the door
      hod the dor
      hodortdor
      hododor
      hodoror
      hodor
      hodor

    • @ThatTalkingDogGuy
      @ThatTalkingDogGuy 5 ปีที่แล้ว +1

      I'M OLD GREEEEEEEGG

    • @AndrewWJToler
      @AndrewWJToler 4 ปีที่แล้ว +1

      @@ThatTalkingDogGuy You're like a breadstick

  • @lexclock
    @lexclock 7 ปีที่แล้ว +3

    why don't you stick the new chip in the chip's space from the original chip that you have to remove in arduino uno?

    • @ArenasWorld
      @ArenasWorld 7 ปีที่แล้ว +1

      Because the new chip doesn't come with the Arduino Bootloader, so it will not understand the communication.

    • @morphman86
      @morphman86 6 ปีที่แล้ว +2

      But the removal of the Uno chip was after the bootloader was burned. He removed it and hooked up wires between the naked board and the new chip to program the chip with the actual program (in this case the Blink demo).
      My best guess is that you don't always have the chip on its own, so he was showing you can program it through wires instead. It could also save on wear and tear on the socket and it will prevent legs from getting bent by saving 4 insert/remove processes.

    • @magicarpetmoto
      @magicarpetmoto 6 ปีที่แล้ว +2

      morphman86 agreed or he's showing that this is a way to change/upload sketches onto your project without removing the chip from your project. He's showing how the Arduino can be used to program via ISP.

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

      it will damages the pins
      but it does work

  • @sanu7210
    @sanu7210 7 ปีที่แล้ว +1

    i don't understand in programming pin 13 assigned as output for led but that pic actually pic number 19 of the ic , why ??????????

    • @12Jerbs
      @12Jerbs 6 ปีที่แล้ว +2

      Pin 13 on the Arduino is Pin 19 of the IC : cdn.instructables.com/F2S/FHSD/H3Z3V3P4/F2SFHSDH3Z3V3P4.MEDIUM.jpg

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

    will this work with the atmega328p-au?

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

      Dave Electronics yes

  • @arm2644
    @arm2644 4 ปีที่แล้ว

    Does not longer work. While uploading the bootloader it gives me this error:
    Arduino: 1.8.9 (Windows 8.1), Board: "ATmega328 on a breadboard (8 MHz internal clock)"
    avrdude: Yikes! Invalid device signature.
    Double check connections and try again, or use -F to override
    this check.
    Error while burning bootloader.
    I am using: IDE 1.8.9
    and: breadboard-1-6-x

  • @decent-style
    @decent-style 8 ปีที่แล้ว

    I am having error Expected signature for ATmega328P is 1E 95 0F, any idea?

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

      Maybe you using atmega328p-pu, it have different signature(1E 95 14), but all other are similar. in this case you may try to change configuration file of avrdude(flasher, which used in Arduino IDE).

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

    My friend nice video but, the 16 mhz crystal you show us is not the arduino crystal is the 16 mhz crystal for the usb circuit , the 16 mhz arduino crystal is the very small crystal near to pin 10 on the board