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

Поделиться
HTML-код
  • Опубликовано: 18 окт 2024
  • Atmega328 here: www.banggood.c...
    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.aliexpr...
    And the dip socket here:
    s.click.aliexpr...
    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...
    1-5-x.zip
    www.arduino.cc...
    1-0-x.zip
    www.arduino.cc...
    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.co...
    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.

Комментарии • 224

  • @Ro_Wa
    @Ro_Wa 8 лет назад +63

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

    • @Vishank
      @Vishank 6 лет назад

      You are right

  • @markuseby5267
    @markuseby5267 Год назад

    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

  • @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 4 года назад +1

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

    • @abrahamjones3635
      @abrahamjones3635 Год назад

      @@ianthehunter3532 yah

  • @kosa2004
    @kosa2004 7 лет назад +14

    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 4 года назад

      @@ezeprojects5425 What's the big difference?

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

  • @Gardol2
    @Gardol2 8 лет назад +3

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

  • @colinloweg1ivg318
    @colinloweg1ivg318 4 года назад +2

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

    • @TomHeylen1
      @TomHeylen1  4 года назад

      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!

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

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

  • @FreddyBNL
    @FreddyBNL 6 лет назад

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

  • @christophertadeo6120
    @christophertadeo6120 Год назад

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

  • @userou-ig1ze
    @userou-ig1ze 4 года назад

    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!!

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

  • @naveenvaid4318
    @naveenvaid4318 7 лет назад +3

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

  • @Mosfet510
    @Mosfet510 7 лет назад

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

  • @ianthehunter3532
    @ianthehunter3532 4 года назад +1

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

  • @AliA-ti1ko
    @AliA-ti1ko 2 года назад +1

    Great, thanks so much for your video

  • @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 5 лет назад

      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

  • @dustinturner1757
    @dustinturner1757 2 года назад +1

    Great video!

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

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

  • @vasili1207
    @vasili1207 8 лет назад

    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

  • @janaalam5633
    @janaalam5633 3 года назад +1

    Thanks brother..

  • @mingosutu
    @mingosutu Год назад

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

  • @MrSome1bad
    @MrSome1bad 8 лет назад +4

    Very informative man

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

  • @naeemhassim2376
    @naeemhassim2376 6 лет назад +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 4 года назад +1

      Did it?

    • @25pringles
      @25pringles 4 года назад

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

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

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

  • @IdanAbutbul
    @IdanAbutbul 6 лет назад

    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

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

  • @aamoroso2824
    @aamoroso2824 4 года назад

    FANTASTIC

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

  • @ShawnA560
    @ShawnA560 4 года назад

    Does this process eliminate the delay of booting time?

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

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

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

  • @AtlantaTerry
    @AtlantaTerry 7 лет назад

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

  • @nguyenthinh6188
    @nguyenthinh6188 4 года назад

    Thank, it very helpful

  • @flushyoudowntheloo
    @flushyoudowntheloo 6 лет назад +1

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

  • @heatthermdd495
    @heatthermdd495 7 лет назад

    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.

  • @ruhulaminmahin4504
    @ruhulaminmahin4504 4 года назад

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

  • @Kafrotox
    @Kafrotox 7 лет назад

    Thanks very much Tom

  • @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 5 лет назад +1

      You will probably need a serial to USB adapter

  • @advancednutritioninc908
    @advancednutritioninc908 8 лет назад +1

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

  • @majidhantooshff
    @majidhantooshff 6 лет назад +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 лет назад +1

      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

  • @piconano
    @piconano 9 месяцев назад

    I found out the hard way that, you need to program it initially with the crystal in place.

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

  • @bimmerman88
    @bimmerman88 8 лет назад

    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)

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

  • @flushyoudowntheloo
    @flushyoudowntheloo 6 лет назад

    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  6 лет назад

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

  • @ahmedramzihoualef2692
    @ahmedramzihoualef2692 5 лет назад

    Thanks that was so helpful

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

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

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

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

  • @mindbender128
    @mindbender128 5 лет назад

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

  • @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 4 года назад

      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

  • @zaheerahmad5632
    @zaheerahmad5632 3 года назад

    Nice video

  • @phmiii
    @phmiii 8 лет назад +1

    Very Cool; very well done!

  • @NotTheLarryDavid
    @NotTheLarryDavid 5 лет назад

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

  • @purge98
    @purge98 4 года назад

    You have a nice Australian accent.

  • @风向标-m8g
    @风向标-m8g 5 лет назад

    Very nice!

  • @diogomiguel5477
    @diogomiguel5477 7 лет назад +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

  • @ppsmumbai
    @ppsmumbai Год назад

    nice presention ,

  • @tcoo1999
    @tcoo1999 6 лет назад

    Great video

  • @_zh3ro_
    @_zh3ro_ 8 лет назад +15

    GREAT GUIDE
    GREAT GUIDE
    GRE GUID
    GREGUY
    GREG
    GREG
    GREG
    GREG

    • @varkokonyi
      @varkokonyi 6 лет назад +1

      I understand

    • @JS7457
      @JS7457 6 лет назад +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

  • @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 4 года назад

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

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

  • @Create_o_raptor
    @Create_o_raptor 7 лет назад

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

  • @thePonker
    @thePonker 6 лет назад

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

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

  • @ronwesterveld8077
    @ronwesterveld8077 4 года назад

    Why does the Arduino Uno board have a 8Mhz crystal, if the Atmega 328P has an internal oscillator ?

  • @doubleHLabs
    @doubleHLabs 7 лет назад

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

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

  • @KI_47
    @KI_47 7 лет назад

    Great job! Thanks for your guide =)

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

  • @nathanaelvetters2684
    @nathanaelvetters2684 5 лет назад

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

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

  • @CorruptName1
    @CorruptName1 5 лет назад

    well done sir.

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

  • @engr.salman2619
    @engr.salman2619 6 лет назад

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

  • @NorGamersNorskunderholding
    @NorGamersNorskunderholding 6 лет назад

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

  • @jeanyves5380
    @jeanyves5380 Год назад

    Like in all videos: it is never mentionned what is the true reference you burn on the breadbord.
    Yours is a P - PU but there are Atmega328 without P or with PU without - before.
    I'd like tu burn these types for myself : i have a signature problèm. I change for what it should be but i did not check wath the signature really is. Unfortunatly i cannot have any accès to the chip except may be with another protocol as i saw.
    Did not really use your method but the one that connects pins 10 11 12 of the chip.

  • @nahuel9797
    @nahuel9797 8 лет назад

    that electrolytic capacitor you used ?

  • @andymouse
    @andymouse 6 лет назад

    thanks very useful

  • @C414AC
    @C414AC 6 лет назад

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

  • @Leilektsoglou
    @Leilektsoglou 5 лет назад

    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.

  • @bharathis714
    @bharathis714 6 лет назад

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

  • @harrytsang1501
    @harrytsang1501 5 лет назад +1

    But a Nano is just $2, I’ll consider this if I were to embed my project into a small package but I’ll probably use one of the 8 pin chips

  • @visitkoushik
    @visitkoushik 8 лет назад

    can i use arduino nano in place of uno

  • @parveen748
    @parveen748 6 лет назад

    I have atmega328-pu, its not working . ( Error while burning bootloader.) Help me

  • @finitebites
    @finitebites 8 лет назад

    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!

  • @enroute3
    @enroute3 7 лет назад

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

  • @Haziq777
    @Haziq777 8 лет назад

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

    • @AlexLaw_Qld
      @AlexLaw_Qld 8 лет назад +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.

  • @caroman6761
    @caroman6761 8 лет назад

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

  • @naveenranasinghe2893
    @naveenranasinghe2893 6 лет назад +7

    I got this error
    avrdude: Yikes! Invalid device signature.
    Double check connections and try again, or use -F to override
    this check.

    • @skflyer5392
      @skflyer5392 6 лет назад +2

      I have the same problem too

    • @JS7457
      @JS7457 6 лет назад

      Did the atmega328 came from the arduino ?

    • @skflyer5392
      @skflyer5392 6 лет назад

      @@JS7457 I bought them from ebay, they are ATMEGA328P U. I tried programming the bootloader using the UNO as SPI and the atmega with 16 mhz crystal attached and selecting Arduino Uno in boards(16mhz) and it works perfect. But when I try to use it or bootload the Atmega standalone with 8 mhz inner crystal as shown in this video I get the error message that Naaven posted.

    • @JS7457
      @JS7457 6 лет назад

      Check your connections. Be careful as there is two VCC and GND on the atmega, connect them together.

    • @zukhrighazali8197
      @zukhrighazali8197 5 лет назад

      have you found the solution yet?

  • @fyxy912
    @fyxy912 7 лет назад

    well explained...
    but I get this error:
    Warning: Board breadboard:avr:atmega328bb doesn't define a 'build.board' preference. Auto-set to: AVR_ATMEGA328BB
    Sketch uses 4380 bytes (13%) of program storage space. Maximum is 32256 bytes.
    Global variables use 481 bytes (23%) of dynamic memory, leaving 1567 bytes for local variables. Maximum is 2048 bytes.

    • @thuffam
      @thuffam 5 лет назад

      I get the same error. I'm running IDE version 1.8.19 - any ideas how to solve?

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

  • @MinecraftlerDan
    @MinecraftlerDan 7 лет назад

    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 :/

  • @charlesklein7232
    @charlesklein7232 4 года назад

    specify which type of chip to use! your using a "atmel 1417" atmega 328 means nothing! their are possibly 3 serial numbers on each chip. some only have 2. "atmega 238p-pu" is one but their are many types some are not even rectangular some are square chips! their are lots of "ATMEL" all are atmega328. however, you do specify which one to use in your down load. i think do you have the exact right type?