Basic Kit / Basic Kit 2: Your First AVR Demo

Use this page with AI

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

Table of contents

If your Basic Kit 2 has just arrived, start here too. Its preinstalled AVR demo is shared with Basic Kit. Keep the kit assembled with its AVR MCU; you do not need to swap the processor.

Use the program preinstalled on the AVR MCU to view temperature, humidity, illuminance and acceleration readings over BLE on a phone or computer. You do not need to upload a program or install development tools. The separate STM32 MCU included in Basic Kit 2 is not used for this first check.

What to prepare

  • Basic Kit or Basic Kit 2 with its AVR MCU installed
  • A CR2032 coin cell battery
  • A phone or computer with Bluetooth LE and a supported browser
DeviceBrowser to use
Android, macOS or WindowsGoogle Chrome with Web Bluetooth support
iPhone or iPadBluefy
LinuxChrome requires additional setup; see the instructions below

The Web Bluetooth implementation status describes browser support. OS and browser support alone do not guarantee that this demo works on every device. Start by checking the on-screen readings.

Setup

Insert the CR2032 coin cell in the orientation shown, then turn the power switch ON.

Battery orientation and power switch

Usage

For Android, macOS or Windows

  1. Enable Bluetooth on your device and open Google Chrome.
  2. Open the Leafony Web Bluetooth app.
  3. Press Leafonyに接続する (Connect to Leafony). Select Leafony_AC02 in your device's pairing dialog and pair. Allow Bluetooth access if prompted.
  4. Check that temperature, humidity and other readings appear and the Leafony LED blinks.

Sensor readings in the previous web app interface

This is an example of the previous interface. In the current app, use Leafonyに接続する (Connect to Leafony).

For iPhone or iPad

  1. Install and open Bluefy.
  2. Enable Bluetooth and allow Bluefy to access it if prompted.
  3. Open https://docs.leafony.com/WebBluetooth_for_Leafony_app/ in Bluefy.
  4. Press Leafonyに接続する (Connect to Leafony), select Leafony_AC02 in your device's pairing dialog, and pair. Check the readings on screen and the blinking LED.

On iPhone and iPad, first check the on-screen readings. CSV export in the current Bluefy version has not been rechecked for this demo.

On Linux

The official compatibility table lists Linux as partially implemented and unsupported. Check the Linux notes and required settings first, then follow the Chrome connection steps above. If setup is difficult, use another device from the table for the initial demo.

Check that it worked

When sensor readings appear in the web app and the Leafony LED blinks, your first check is complete. CSV export and changing the program are not needed for this check.

Open LEDの調整・データの保存 (LED settings and data export) to change the LED blink speed or export readings. Adjust the LED while connected, and use CSVを保存する (Save CSV) to export received readings. When finished, select 接続を切る (Disconnect).

Troubleshooting

If the device does not appear, see BLE connection checks. If you uploaded a different program, follow Restore the demo; restarting the MCU does not restore it.

Next steps

For a different MCU or development tool, use the development environment list. Uploading a program replaces the current demo, so check how to restore it before continuing.

Leaves included in the kit

For Basic Kit 2, see its included leaves. The AVR demo on this page is shared, but the kit contents differ.

Show the contents of the original Basic Kit

6 types of leaves. Select a photo or name for specifications and pin assignments.

AP01 AVR MCU

An AVR microcontroller that runs your programs.
Qty: 1

AI01 4-Sensors

Measures temperature, humidity, light, and acceleration.
Qty: 1

AC02 BLE Sugar

Sends and receives data over Bluetooth LE.
Qty: 1

AV01 CR2032

Supplies power from a CR2032 coin cell battery.
Qty: 1

AZ01 USB

Connects to a computer for programming, serial communication, and USB power.
Qty: 1

AX02 29pin

Connects leaf signals to external circuits.
Qty: 1
Accessories and other included items

AZ62 Connector Cover

Protects the connector from dust and debris.
Qty: 1

AZ66 Basic Kit Case

Holds Basic Kit and attaches it to a surface that magnets stick to, using a magnet on its base.
Qty: 1
  • CR2032 coin cell battery× 1
  • M2×18 mm screw× 2
  • Screwdriver× 1

Demo Video

Demo illustration

Leafony and a smartphone displaying sensor readings

Leaf photo
Search documentation, sample apps, and Q&A