Because the cost of an Arduino Uno on different sites are more than 30euro you could use the Atmega on the breadboard without entire Arduino board but with some pheripherals such as:
-1 oscillator 16MHz
-2 capacitor of 22pF
-1 button(for RESET)
-10 kohms resistor
-5 Vdc source(you could use different sources with a voltage regulator such as 7805)
The advantage of this method is that you can create a PCB exactly for your application with the peripherals mentioned above and others without use an arduino board.
The program will be uploaded on an arduino board, after that the atmega will be removed from arduino and mounted to your PCB. An important thing to know when you buy atmega microcontrollers is they need to have the bootloader (is like a BIOS for your PC) preinstaled. If they not you can upload this bootloader as you can see here.
Next is represented a diagram with the corresponding pins of Atmega328 on the arduino which is necessary when we wrote the program.
For the project we have used a 12 Vdc source and because the atmega328 needs 5V for power, a voltage regulator 7805, a button and a 10kohms resistor to reset the atmega, two 22pF capacitors and a 16MHz oscillator. The LED and the 220ohm resistor is to verify with a small program the proper work of the montage.
The schematic created with fritzing is in the picture below:
The circuit on a breadboard with the LED on is :
The program used is in the arduino software File-Examples-Basics-Blink.
And the PCB(be carefully at the polarity o the input voltage):
The PCB I made is to have acces to all the pins of atmega:
The fritzing program(breadboard and PCB) for this project can be downloaded from here:
Please let us in the comment zone any suggestions that you think will improve the article!
If you like the article click the follow button from social media to stay in touch with us!


