Quantcast
Channel: AVR ATmega Projects Archives - Projects Tutorials Code Library for Atmels Atmega32 AVR
Viewing all articles
Browse latest Browse all 1082

Arduino Without External Clock Crystal on ATmega328

$
0
0

Things used in this project

Arduino Without External Clock Crystal on ATmega328

Story

Putting Stuff on Breadboard

Using ATmega Without UNO Bootloader

First of all, we need to burn the bootloader to the ATmega chip if you bought a blank microcontroller having no bootloader, so that it can be a programmable entity.

  • Refer to the schematics and place the ATmega chip in the breadboard.
  • Open the ArduinoISP firmware (in Examples) to your Arduino board.
  • Select the items in the Tools > Board and Serial Port menus that correspond to the board you are using as the programmer (not the board being programmed).
  • Upload the ArduinoISP sketch.
  • Select the item in the Tools > Board menu and be sure to select “ATmega328 on a breadboard (8MHz internal clock)” when burning the bootloader.
  • Select the Arduino as ISP in the Tools > Programmer menu.
  • Use the Burn Boot-loader command in the Tools menu.

Skip step 2 if you have done step 1.

2. Using ATmega with UNO boot-loader

If the ATmega is already boot-loaded, then just put it in the breadboard and we can proceed programming the ATmega328p microcontroller.

3. Programming the ATmega chip (using other Arduino)

  • Remove the microcontroller of the Arduino you are using as the programmer.
  • Refer to the schematics and pin mapping and connect the Rx and Tx of programmer Arduino to Tx and Rx of the breadboard Arduino respectively.
  • Connect RESET of programmer Arduino to RESET of breadboard Arduino.
  • Connect GND and VCC of breadboard Arduino to GND and VCC on programmer Arduino.
  • Select the item in the Tools > Board menu and be sure to select “ATmega328 on a breadboard (8MHz internal clock)“.
  • Check the port and click on “upload”.

Plug out the connections and now you can power it with a battery for months depending on the kind of project.

4. Programming the ATmega chip (using FTDI USB to Serial Adapter)

Curious what all the pin outs are for on the FT232RL breakout board? Simply flip it over! In this situation I’ll be using VCC (to supply 5V from the USB port to your board), GND, TXD, and RXD. [Refer to schematics]

Programming the ATmega chip (using FTDI USB to Serial Adapter)

 


Viewing all articles
Browse latest Browse all 1082

Trending Articles