4-Sensors BLE Beacon
- MCU
- STM32
- Kit
- Basic Kit 2
Find sample programs by purpose and MCU.
52samples
Check each sample for its kit and leaf requirements.

Use an STM32CubeIDE project to turn the AP03 STM32 MCU LED on and off every second. Covers downloading, importing, building, programming, and checking the result.

Read the battery voltage using the AD converter on the CR2032 coin cell leaf.

Displays the status of the boot mode switch on the ESP32 MCU leaf on the serial monitor.

This sample reads the value of the temperature and humidity sensor on the 4-Sensors Leaf and displays it on a serial monitor.

This sample reads the value of the temperature and humidity sensor on the 4-Sensors Leaf and displays it on a serial monitor.

Use Leafony AP02 ESP32 MCU and AI01 4-Sensors to read HTS221 data in Arduino's serial monitor. Covers assembly, sample code and two-point correction.

This sample reads the value of the illuminance sensor on the 4-Sensors leaf and displays it on the serial monitor.

This sample reads the value of the illuminance sensor on the 4-Sensors leaf and displays it on the serial monitor.

This sample reads the value of the illuminance sensor mounted on the 4-Sensors leaf and displays it on the serial monitor.

Read acceleration with AP03 STM32 MCU and AI01 4-Sensors using Arduino IDE. Includes required libraries, the I2C address, 115200 bps output, and checks.

This sample reads the value of the accelerometer on the 4-Sensors Leaf and displays it on a serial monitor.

This sample reads the value of the accelerometer mounted on the 4-Sensors leaf and displays it on the serial monitor.

Read the battery voltage using the AD converter on the CR2032 coin cell leaf.

Using an infrared sensor IC (AKM AK9754AE) for close-range detection on the SP&PIR Leaf, let's create a system that makes a sound when a person approa

Using an infrared sensor IC (AKM AK9754AE) for close-range detection on the SP&PIR Leaf, let's create a system that makes a sound when a person approa

Using an infrared sensor IC (AKM AK9754AE) for close-range detection on the SP&PIR Leaf, let's create a system that makes a sound when a person approa

Let's assemble leaves as shown in the figure below.

As you rotate the volume, the number of LEDs light up in proportion to the amount of rotation. You can also turn on the number of LEDs according to th

As you rotate the volume, the number of LEDs light up in proportion to the amount of rotation. You can also turn on the number of LEDs according to th

An example of using Seeed Studio's Grove series of sensors. The distance measured by the ultrasonic sensor is displayed on the LCD. Ultrasonic sensors
Requires a Grove ultrasonic distance sensor

In order to make this sketch work, you need to install the libraries If you haven't installed it yet, refer to Environment to install it.

Use the piezoelectric loudspeaker in the SP&PIR Leaf to make the melody sound.

このサンプルはGoogle SheetsをつかったIoTサービス入門で紹介したものと抵抗測定を組み合わせたものです。 Leafony で恒温槽内複数の被測定基板の抵抗と温度を測定してBeaconで送信しRaspberry Piを使ってGoogle スプレッドシートに測定データを保存します。
Requires a Raspberry Pi and a prototyping board

c++ / Connect the SD card to the following pins: SD Card ESP32 D2 - D3 SS CMD MOSI VSS GND VDD 3.3V CLK SCK VSS GND D0 MISO D1 - / include "FS.h" incl
Requires a microSD card

Let's assemble leaves as shown in the figure below.

このサンプルはWeb Bluetoothを使ったIoTアプリ入門で紹介したものと歪センサーを組み合わせたものです。BLEを使って体重をスマートフォンやパソコンに表示することができます。
Requires strain sensors and an HX711 board

This sample is an STM32 implementation of the one introduced in the Basic Kit Web Bluetooth IoT. The Web Bluetooth application uses the same one as th

Use the piezoelectric loudspeaker in the SP&PIR Leaf to make the melody sound.
This is a simple BLE Beacon sample design using STM32 Leaf. Send the string "HELLO BEACON" for a period of time, then repeat the sleep cycle.

Turns on and off the LEDs on the AVR MCU leaf every second.

Let's assemble leaves as shown in the figure below.

View ESP32 Wi-Fi Kit touch readings in a phone or PC browser. Connect to Leafony's Wi-Fi and explore 29pin header touch inputs and the detection threshold.
This is a sample design of a BLE Beacon that can record temperature, humidity and measurement time using the Flash memory in the STM32 leaf.

Use the piezoelectric loudspeaker in the SP&PIR Leaf to make the melody sound.

Send readings from ESP32 Wi-Fi Kit 2 with 4-Sensors or DHT22 to Google Sheets. Set up Apps Script, Arduino or PlatformIO, and plot your data in Grafana.

Leafony blockは、センシングデータをBeacon ^1 の電波で飛ばします。beaconの電波をRaspberry Piが受け、インターネット経由でGoogle スプレッドシートに書かせて、データの可視化ができます。
Requires a Raspberry Pi

The display has 8 characters per line and 2 lines . Hello, World! has 13 characters and does not fit on one line. This sample uses Hello! , which fits

(/examples/advanced/avr-mcu/exten/4-sensors_lcd/lcd_overview2.png)
This is an example of a BLE Beacon type environmental sensor application using ESP32. By adding sensor data to the Attribute of the GATT Server, it ca
Requires a Raspberry Pi
Build an AP03 STM32 MCU and AC07 LoRa Mary transmitter and receiver. Use Arduino IDE or PlatformIO to send hello messages and check reception.
Requires both a transmitter and a receiver

Using the infrared sensor IC for short range detection (AKM AK9754AE) installed in the SP&PIR leaf, let's create a system that plays a melody when a p

ESP32の省電力動作と加速度センサを使ったポスト投函検出の過去の実装例。LINE Notifyは2025年3月31日に終了しており、掲載の通知手順は現在利用できません。

(/examples/advanced/stm32-mcu/stm32/stm32_lora_tx_sensors/ap07_fig2.jpg)
Requires a transmitter and receiver; add an LCD to display RSSI

This sample app is a combination of the one introduced in the Basic Kit Web Bluetooth IoT and Motorleaf. Using Bluetooth, you can control the electric
Requires an electric pump

このチュートリアルではAC07 LoRa Maryリーフに搭載されるATECC608Aを使用して、LoRaの通信に署名をつける方法を紹介します。 通信に署名をつけることで、データの送り元が、受信者が意図したデバイスであるかどうかを判定することができ、通信の安全性が向上します。
Requires both a transmitter and a receiver

This sample is the same as the one introduced in Basic Kit Getting Started Guide. Let's read the source code to understand how it works.

^1 : このサンプルのセルラー通信は、携帯電話のLTE網を使うIoT向けのCat-M1方式です。
Requires an IoT SIM, power leaf, and other parts listed in the article
Send temperature and humidity measured by 4-Sensors to Google Sheets every 10 minutes using AC09 Cat-M1 TY.
Requires Spacer, USB-C, and AV06 leaves, plus a 1NCE or SORACOM SIM
AC07 LoRa Mary でデータを受信する最もシンプルなサンプルプロジェクトです。 LoRa送信機やLoRa送信機 + 4-Sensorsのデータを受信することができます。

We will create an IoT environment sensor using Leafony Beacon1) and Raspberry Pi, and visualize the sensor data using Google Spreadsheet.
Requires a Raspberry Pi

- Emmbedded Software Packages Manager というウィンドウが開かれます。 - STMicroelectronics というタブを選択します。 - X-CUBE-AI をクリックすると様々なバージョンの Artificial Intelligence が表示されますの
Requires a camera, display, and other parts listed in the article

Using LoRa Easy leaf, sensor data (temperature, humidity, illumination, tilt) can be sent to a distant location and output to a PC terminal.
Requires both a transmitter and a receiver

An example of using Seeed Studio's Grove series sensors. Let's try to save an image taken by the camera once a minute to a microSD card.
Requires a camera, RTC & microSD leaf, and microSD card

ESP32 MCUと4-Sensorsを使う旧サンプルのGoogle Sheets設定手順。旧Apps Script画面向けの資料として残し、現在のESP32 Wi-Fi Kit 2向け手順へ案内します。

公開予定

ESP32 MCUと4-Sensorsを使う旧Google Sheets連携サンプルの組み立てとスケッチ設定。使用リーフ、Wi-Fi接続、送信間隔の設定と現行手順へのリンクを掲載しています。

^1 : LTEは通常使用している携帯電話・スマートフォン用広域無線通信規格のことで、LTE-Mはこの通信技術を応用し通信速度を下げて超低電力化している無線規格です。
Try a shorter keyword or select fewer filters.
“Published” describes the article status, not the availability of its products.