In Circuit System Programming (ICSP) using USBtinyISP and Arduino IDE

1. Description

This tutorial shows how to use Arduino IDE (1.8.2) and an USBtinyISP programmer to upload code (bootloader and/or schetches) into ATmega328P-PU microcontrollers without using a serial/USB connection.

USBtinyISP is an inexpensive open-source external programmer that can be used to easily upload code into Arduino Uno R3,  stripped-down AVR development boards and/or standalone ATmega328P-PU microcontrollers.

Difficulty level: intermediate.

Continue reading “In Circuit System Programming (ICSP) using USBtinyISP and Arduino IDE”

ATmega328P-PU Power Saving (Sleep Mode and Watchdog Timer)

1. Description

This tutorial presents some power-saving techniques available for ATmega328 based designs.  They could help in lowering the overall power consumption and preserve battery life (in case of using batteries as a power supply). Even though the examples presented below are originating from a basic sketch (periodic LED blinking), they could easily be ported to various other applications.  Each scenario indicates the current consumption measurement and an estimation of the battery lifetime – this could be useful in choosing the right and most effective power-saving technique(s) for your specific applications.

Difficulty level: intermediate.

Continue reading “ATmega328P-PU Power Saving (Sleep Mode and Watchdog Timer)”

Standalone ATmega328P-PU w Reset Button and LED

1. Description

This tutorial shows how to setup a standalone ATmega328P-PU microcontroller (breadboard or PCB) in an Arduino compatible mode.
The microcontroller should be pre-loaded with the Arduino bootloader in order to be able to easily upload Arduino
sketches using an additional Adruino board. The setup helps to reduce costs and power conpsumtion, in particular for
remote devices (i.e. remote sensors).

Difficulty level: intermediate.

Continue reading “Standalone ATmega328P-PU w Reset Button and LED”