Posts

my dev. board - YD-ESP32-C6-N16

Image
 YD-ESP32-C6-N16 by VCC-GND Studio - ESP32-C6-WROOM-1 with 16M Flash CircuitPython related: ~  Flash CircuitPython 9 (Alpha 5) on ESP32-C6, and control on-board RGB LED (NeoPixel) . ESP-IDF related: ~  Install Visual Studio Code on Linux Mint 21.2 (over VirtualBox/Windows 11) . ~  Install Espressif IDF Extension in VS Code to program ESP32-C3 Run on Linux Mint 21.2 . ~  Create Hello World in VSCode/ESP-IDF Extension manually, run on ESP32-C6 to send text to Serial . ~  Install PlatformIO on Visual Studio Code to program ESP32-C6 in ESP-IDF . esp-rs: ~  Install Embedded Rust for ESP32 on Linux Mint 21.3 over VirtualBox/Windows 11 (tested with ESP32-C3-DevKitM-1) ~  Rust on ESP (esp-rs), toggle GPIO to control LED on ESP32-C6 .

my dev. board - YD-ESP32-S3-EYE

Image
YD-ESP32-S3-EYE by VCC-GND Studio. The seller claim that it's compatible with Espressif  ESP32-S3-EYE . The seller claim that it provide the same as ESP32-S3-EYE. Related: ~  Install CircuitPython firmware on YD-ESP32-S3-EYE using esptool . ~  YD-ESP32-S3-EYE/CircuitPython 8, control LCD and Camera . ~  Turtle Graphics on ESP32-S3-EYE/CircuitPython

Python script with tkinter GUI to capture images from Raspberry Pi Camera Module 3, with Toggling AF mode function.

Image
This exercise work on last exercise " Python script with tkinter GUI to capture images from Raspberry Pi Camera Module 3 ", added function to toggle AfMode between Continuous and Manual. It works on Raspberry Pi 4B running 32-bit Raspberry Pi OS (Bookworm), with Camera Module 3 . cam_tkinter_capture.py (2023-10-15) from tkinter import * from tkinter import messagebox from picamera2 import Picamera2, Preview from libcamera import controls import time import sys import importlib.metadata picam2 = Picamera2() camera_config = picam2.create_preview_configuration() picam2.configure(camera_config) picam2.start_preview(Preview.QTGL) picam2.set_controls({"AfMode": controls.AfModeEnum.Continuous}) picam2.start() root = Tk() root.title(sys.argv[0]) root.geometry("550x450") # center on screen root.eval('tk::PlaceWindow . center') label_picam_ver = Label(root, text="picamera2 ver: " + importlib.metadata.ve...

A simple way to take screenshot in Linux

Image
The easiest way to take screenshot in Linux is using the "PrtSc" key. But if your keyboard haven't the "PrtSc" key, it's another easy way, search and run screenshot in Start menu. At least it works on Linux Mint.

BLE communication between MicroPython aioble and ArduinoBLE

Image
Previous posts introduced " MicroPython bluetooth remote control LED between Raspberry Pi Pico W and ESP32-C3, using aioble library " and " BLE examples run on Nano 33 BLE (as Peripheral) and Uno R4 WiFi (as Central) using ArduinoBLE in Arduino Framework ". This video further test how BLE communication between that two approach.

MicroPython bluetooth remote control LED between Raspberry Pi Pico W and ESP32-C3, using aioble library.

Image
Last post introduced " MicroPython bluetooth example using aioble library, temp_client.py and temp_sensor.py ". This post modified it to remote control LED via bluetooth between Raspberry Pi Pico W and ESP32-C3-DevKitM-1 , achieve the same function as in " BLE examples run on Nano 33 BLE (as Peripheral) and Uno R4 WiFi (as Central), using ArduinoBLE in Arduino framework ". Basically, the bluetooth/aioble parts on both boards are same, but code in separated is caused by different configurare of onboard LED. Code: mpy_aioble_peripheral_led_esp32c3.py """ MicroPython v1.21 exercise run on Espressif ESP32-C3-DevKitM-1 using aioble lib. Play the role as BLE Peripheral of LED. As the role in ArduinoBLE examples>Peripheral>LED - Setup as BLE Peripheral of LED, wait connection from Central device. - Turn ON/OFF onboard LED according to received command: 0 - Turn OFF LED 1 - Turn ON LED """ import sys...

MicroPython bluetooth example using aioble library, between Raspberry Pi Pico W and ESP32-C3. (Both run MicroPython 1.21.0)

Image
With recent update of MicroPython, bluetooth is supported in Raspberry Pi Pico W build. The official guide " Connecting to the Internet with Raspberry Pi Pico W book (2023-06-14) " updated with example using bluetooth. Read my previous post " Prepare MicroPython Bluetooth service example on Raspberry Pi Pico W ". Refer to MicroPython libraries document - bluetooth , higher-level aioble library is recommended. aioble provides an object-oriented, asyncio-based wrapper for MicroPython's bluetooth API. (* This module is still under development and its classes, functions, methods and constants are subject to change.) This video introduce the alternative using aioble library, run on Raspberry Pi Pico W and  Espressif ESP32-C3-DevKitM-1 , both run MicroPython v1.21.0. Notice that aioble is included in Raspberry Pi Pico W MicroPython v1.21.0, but not in v1.20.0. Fail in await connection.disconnected() using aioble library...