NanoProg v1

From lechacal
Jump to navigation Jump to search

Page under completion. Some more information on the link below.

How_to_program_an_Attiny85_or_Attiny84

Overview

The NanoProg is a shield for the Arduino Nano to program arduino chips.

Usage

Connect the hardware

Insert the MCU to program on the programmer board. Beware of the direction when the inserting the MCU. The small dot must be pointed toward the left of the board (toward the leds).

Connect the Programmer board to the computer with a USB cable.

Once all connected the Programmer board will show heartbeat with the green led.

Initial Setup

For anything below make sure Arduino as ISP is selected in Tools | Programmer menu.

Upload Bootloader

If programming an arduino MCU for the first time you must burn the bootloader onto it. For this first select the appropriate board in the Arduino IDE. Tools | Board . For example ATtiny85 @ 8Mhz or Arduino UNO. Then select Tools | Burn Bootloarder.

Upload Sketch (ATtiny)

Open your sketch file with the Arduino IDE. Make sure you select the appropriate MCU type in Tools | Board. Upload the sketch from the IDE.

How to program an Attiny85 or Attiny84

Upload Sketch (ATmega)

Open your sketch file with the Arduino IDE. Make sure you select the Arduino UNO type in Tools | Board. Upload the sketch from the IDE using the Upload Using Programmer function found under the File menu.

Warning. Do not use the normal Upload function of the IDE as it will overwrite the main mcu sketch. This can be recovered by re-uploading the ArduinoISP sketch.

Overwritten sketch

The primary ATmega328 sketch could be inadvertently overwritten. This is an easy fix. You can recover its initial state by uploading the original sketch. To do so remove all secondary chips. In the Arduino IDE select File | Examples | ArduinoISP. Then make sure Tools | Board | Arduino UNO is selected. Then upload that sketch.

Ubuntu users

When using the serial port for the first time the user must be added to the dialout group. Do this with the command below:

$ sudo usermod -a -G dialout $USER

Related Articles

Nano_ch340_diode_flaw