$2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide
Atmega328 here: https://www.banggood.com/custlink/3Dm3hhvZif
Facebook: https://www.facebook.com/OfficialTomHeylen
In this video you will learn how to use the Arduino ATMEGA328 microcontroller chip as a stand-alone microcontroller. I got mine here:
http://s.click.aliexpress.com/e/IQ3ZfMvf6
And the dip socket here:
http://s.click.aliexpress.com/e/YVRBU7ayB
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
https://www.arduino.cc/en/uploads/Tutorial/breadboard-1-6-x.zip
1-5-x.zip
https://www.arduino.cc/en/uploads/Tutorial/Breadboard1-5-x.zip
1-0-x.zip
https://www.arduino.cc/en/uploads/Tutorial/Breadboard1-0-x.zip
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:
http://www.banggood.com/5-Pcs-2_54mm-28-Pins-IC-Socket-Wide-DIP-Sockets-Adaptor-Solder-Type-p-919476.html?p=FA25224129409201603Q
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.
Видео $2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide канала Tom Heylen
Facebook: https://www.facebook.com/OfficialTomHeylen
In this video you will learn how to use the Arduino ATMEGA328 microcontroller chip as a stand-alone microcontroller. I got mine here:
http://s.click.aliexpress.com/e/IQ3ZfMvf6
And the dip socket here:
http://s.click.aliexpress.com/e/YVRBU7ayB
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
https://www.arduino.cc/en/uploads/Tutorial/breadboard-1-6-x.zip
1-5-x.zip
https://www.arduino.cc/en/uploads/Tutorial/Breadboard1-5-x.zip
1-0-x.zip
https://www.arduino.cc/en/uploads/Tutorial/Breadboard1-0-x.zip
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:
http://www.banggood.com/5-Pcs-2_54mm-28-Pins-IC-Socket-Wide-DIP-Sockets-Adaptor-Solder-Type-p-919476.html?p=FA25224129409201603Q
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.
Видео $2 Arduino The ATMEGA328 as a stand alone Easy, cheap and very small A complete guide канала Tom Heylen
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Arduino Uno to ATmega328 - Shrinking your Arduino Projects](https://i.ytimg.com/vi/Sww1mek5rHU/default.jpg)
![Bau eines Arduinos (Aufbauanleitung) [German/Deutsch]](https://i.ytimg.com/vi/slezReZBRsE/default.jpg)
![1-Day Project: Build Your Own Arduino Uno for $5](https://i.ytimg.com/vi/sNIMCdVOHOM/default.jpg)
![Long range, 1.8km, Arduino to Arduino wireless communication with the HC-12](https://i.ytimg.com/vi/DGRPqeacJns/default.jpg)
![Best Way to Burn Arduino Bootloaders Tutorial!](https://i.ytimg.com/vi/dpgcBsl9D4k/default.jpg)
![Arduino on a Proto-Board - Make it permanent!](https://i.ytimg.com/vi/vMu1UjBxOiQ/default.jpg)
![#119 Bootloader Shield 🛡️ and 8Mhz Arduino Barebones (made easy)](https://i.ytimg.com/vi/BJe-pTgfLLM/default.jpg)
![Electronic Basics #6: Standalone Arduino Circuit](https://i.ytimg.com/vi/J3DYgzRvLT8/default.jpg)
![Atmega 328 Programming Pixel Led | தமிழில் |SMALL TECH](https://i.ytimg.com/vi/BlYyxHgSME8/default.jpg)
![#163 Flash your ATMega328P using THIS for the cost of a cup of coffee](https://i.ytimg.com/vi/hY5aydgilTk/default.jpg)
![Arduino: Arduino on a Breadboard](https://i.ytimg.com/vi/_m9aciePKEk/default.jpg)
![Arduino Uno (ATMEGA328P) on a breadboard Tutorial DIY project. Easy guide.](https://i.ytimg.com/vi/npc3uzEVvc0/default.jpg)
![How-To: Shrinkify Your Arduino Projects](https://i.ytimg.com/vi/30rPt802n1k/default.jpg)
![How to fix bad Chinese Arduino clones](https://i.ytimg.com/vi/HHF45zhe_9U/default.jpg)
![MOSFETs and Transistors with Arduino](https://i.ytimg.com/vi/IG5vw6P9iY4/default.jpg)
![Improve your Arduino programming skills - Using the ATmega328P registers.](https://i.ytimg.com/vi/8aMsJWpXyE8/default.jpg)
![Smallest and cheapest microcontroller - tutorial](https://i.ytimg.com/vi/300HMv6gOs8/default.jpg)
![Make Your Own Arduino Board | Atmega168/328 IC | Mert Arduino and Tech](https://i.ytimg.com/vi/BJnFb-iFpeU/default.jpg)
![HOW TO BURN BOOTLOADER IN ATMEGA328P MICROCONTROLLER . HELP OF USING ARDUINO UNO](https://i.ytimg.com/vi/B5HT5IKcprE/default.jpg)
![How To Load Bootloader onto Arduino](https://i.ytimg.com/vi/g90xb0nNX50/default.jpg)