Skip to content
Shop

AVR MCU: Arduino IDE Setup

Set up with your favorite AI

Gemini & other AI

Copy the setup prompt into your AI. Work through each step together, from checking your kit to getting it running.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

Use Arduino IDE to set up the development environment for the AP01 AVR MCU leaf (ATmega328P, 3.3 V, 8 MHz).

Uploading through AZ01C (USB Type-C) requires a manual reset. See the AZ01C upload instructions.

  • Basic Kit
  • Data-capable USB cable
  • PC (Windows, macOS or Linux)

The Arduino IDE is a development environment for the Arduino, an open source hardware platform for electronics.

The development environment allows you to write programs, write programs to the Arduino board, and display the data coming from the board.
Leafony can be developed with the Arduino IDE.

Let’s download the Arduino IDE right away.

  1. From the Arduino website, go to SOFTWARE and then DOWNLOADS to get to the Arduino IDE download page.
  2. Download the installer for your OS at the place where it says Download the Arduino IDE.
  3. Run the downloaded installer and follow the on-screen instructions to install the Arduino IDE.

Older Arduino IDE installers are available from Previous IDE Releases.

Connect to your PC with a USB cable.



Configuration of the microcontroller board

Section titled “Configuration of the microcontroller board”

To develop Leafony in the Arduino IDE, let’s follow the steps below to configure the IDE.

  1. Arduino AVR Boards is installed with the IDE. Open Tools → Board → Boards Manager to check its version. Use the version selector to install an earlier version.

  1. Go to Tools → Board and select Arduino Pro or Pro Mini and ATmega328P (3.3V, 8MHz) for Processor.



  1. Go to Tools → Serial Port and select the serial port that Leafony is connected to. If no port is available, see the FAQ.

Checking the operation of the microcontroller board

Section titled “Checking the operation of the microcontroller board”

Uploading replaces the program currently on the MCU. To run the kit demo again later, follow Restore the demo.

  1. In the Arduino IDE, click on File → Sketch Examples → 01.Basics → Blink to open the sample app.
  2. The program is written to Leafony by pressing the write to microcontroller button.
  3. If you can confirm that the LED on the AVR MCU leaf is blinking, you are done.

The pin should be specified by its name.

See Libraries and board definitions for library sources, the correct ST7032 library for AI04 LCD, and ZIP installation. Add only what your example requires. The initial Blink example needs no additional libraries.

If it doesn’t work, go to “If it doesn’t work…” to find a solution.