Saturday, 17 August 2013 16:51
Minimal Arduino with 8MHz internal clock
Build your own DIY Arduino board with only one passive component, it is very easy and simple. This is probably the most minimal ATmega328 based Arduino.
28 pins IC socket
Shematic diagram and PCB
Minimal Arduino is similar to my previous DIY Arduino board, schematic and PCB as shown in Fig 1.
Burning the bootloader
You must burn the bootloader onto the ATmega328.You can do this using an Arduino board as an in-system program (ISP).
- Upload the ArduinoISP sketch onto your Arduino board
- Download this hardware configuration archive: Breadboard.zip
- Create a "hardware\breadboard" sub-folder in your Arduino sketchbook folder if you don't have the "hardware\breadboard" folder
- Extract the Breadboard.zip archive to "hardware\breadboard" sub-folder as shown in figure below
- Restart the Arduino software. You should see "ATmega328 on a breadboard (8 MHz internal clock)" in the Tools > Board menu
Wire up the connection as shown in figure below
Select Tools > Programmer > Arduino as ISP
Select Tools > Burn Bootloader to start burning bootloader
You may facing problem (Expected signature for ATMEGA328P is 1E 95 OF) as shown in figure below. This problem occured because of using diffrent ATMega328 chip
- ATMega328-PU chips signature = 1E 95 14
- ATMega328P-xx chips signature = 1E 95 0F
To resolve the signature issues, replace 0x1E 0x95 0x0F with 0x1E 0x95 0x14 as shown in figure below. It is advise to comment the previous signature and add a new signature to the avrdude.conf file. Restart the Arduino software & start burn the bootloader again
You may facing another problem due to the ATMega328 program with external clock previously. To resolve this issue, use an crystal & two capacitors as the clock source temporary.
If all goes smoothly, you are ready to upload sketch
Thre are few ways to upload sketch
- Using a new USB-to-serial convertor
- Using FTDI USB-to-serial convertor from Arduino board, you remove the microcontroller from the Arduino board
- Using the Arduino board, remove the old microcontroller and place your new microcontroller to the Arduino board
- Using the Arduino as an ISP, the Arduino must preloaded with ArduinoISP sketch as mentioned above
Using FTDI USB-to-serial convertor from Arduino board, notice that the microconroller is removed from the Arduino board
Using Arduino as an ISP, this is the same connection to burning bootloader. Make sure you had select "Arduino as ISP" as the programmer as shown in Fig. 5
- After making the connections, select "ATmega328 on a breadboard (8 MHz internal clock)" in the Tools > Board menu as shown in Fig. 3
- Click on Upload icon to start uploading sketch
You may facing wrong microcontroller issue, you can follow the method as shown in Fig. 8 to fix the problem