Posts

Download Fritzing Parts for Seeed-Studio Hardware

Image
To download Fritzing Parts (.fzbz) for Seeed-Studio Hardware, include XIAO Boards and Accessories, and others, visit:  https://github.com/Seeed-Studio/fritzing_parts . Currently, 9 XIAO Boards are provided, include: - Seeed Studio XIAO RA4M1.fzpz - XIAO ESP32C3.fzpz - XIAO ESP32C6.fzpz - XIAO ESP32S3(Sense).fzpz - XIAO ESP32S3.fzpz - XIAO RP2040.fzpz - XIAO RP2350.fzpz - XIAO SAMD21(Seeeduino).fzpz - XIAO nRF52840(Sense).fzpz

UART (Serial1) communication between XIAO ESP32C3 and Raspberry Pi Pico (RP2040), in Arduino framework.

Image
This exercise show UART (Serial1) communication between XIAO ESP32C3 and Raspberry Pi Pico (RP2040) , in Arduino framework. Connection:      Pico TX GP0 (pin 1) <-----> XIAO ESP32C3 RX GPIO20 (pin 8)      Pico RX GP1 (pin 2) <-----> XIAO ESP32C3 TX GPIO21 (pin 7)      Pico GND                        <-----> XIAO ESP32C3 GND Code: The main issue for this exercise is how to handle Serial1.begin() for XIAO ESP32C3. Ref: https://wiki.seeedstudio.com/XIAO_ESP32C3_Pin_Multiplexing/#serial---uart There is no Serial2 for XIAO ESP32 C3. Also If you need to use Serial1, you must define the pins; otherwise, it may not receive data. For XIAO ESP32 series, use Serial1 as follows:      Serial1.begin(115200, SERIAL_8N1, RX, TX); rp_SerialPassthrough_115200_8N1.ino /* UART/Serial1 exercise run on Raspberry Pi Pi...

Adafruit_GFX/ImageReader exercises to load bmp images from MicroSD and display on 240×320 ST7789 SPI TFT, run on Seeed Studio XIAO ESP32S3 Sense (Arduino Platform).

Image
Previous exercise of Seeed Studio XIAO ESP32S3 Sense display on 2.4" TFT 240×320 ST7789V using Adafruit_ST7789 lib in Arduino framework . In this exercise, load and display images from expansion board MicroSD card. Connection between XIAO ESP32S3 Sense and 2.4" TFT 240×320 ST7789V,  refer to previous exercise . Remark about the card slot on XIAO ESP32S3 Sense expansion boards Refer to  File System and XIAO ESP32S3 Sense document, Card slot circuit design for expansion boards part : The GPIO assigned to microSD Card Slot's CS is GPIO21, and SCK/MISO/MOSI are assigned to GPIO7/8/9 (the hardware SPI). And it's also stated that "if you choose to use the microSD card function of the expansion board, you cannot also use the SPI function of the XIAO ESP32S3. You can turn on/off the microSD card function by connecting/cutting the pads of J3" . But in my exercise as shown in the video: - It's no hardware ...

Python + cv2 exercises to resize jpg and save in bmp

Image
Python + cv2 exercises to resize jpg and save in bmp, tested on Raspberry Pi 5/64 bit Raspberry Pi OS (bookworm). py_cv_resize.py , resize jpg and save in bmp, the file name is hard-coded in the program. You can also save the image in other file name/format in cv.imwrite() interface. # Python exercise to resize jpg and save in bmp # tested on Raspberry Pi 5/64 bit Raspberry Pi OS (bookworm) import cv2 as cv target_width = 240 target_height = 240 path = "./images/" file = "05" ext_jpg = ".jpg" ext_bmp = ".bmp" img = cv.imread(path + file + ext_jpg) img = cv.resize(img, (target_width, target_height)) cv.imwrite(path + file + ext_bmp, img) cv.imshow("img", img) cv.waitKey(0) cv.destoryAllWindows() py_cv_batch_resize.py , resize in batch. It's used to prepare bmp images in my next " Adafruit_GFX/ImageReader exercises to load bmp images from MicroSD and display on 240×320 ST7789 SPI TFT, run on Seeed Studio XIAO...

Seeed Studio XIAO ESP32S3 Sense display on 2.4" TFT 240×320 ST7789V using Adafruit_ST7789 lib in Arduino framework.

Image
Exercise running on  Seeed Studio XIAO ESP32S3 Sense , to display on 2.4" TFT 240×320 ST7789V using Adafruit_ST7789 lib in Arduino framework. Board and library installed: esp32 by Espressif System (arduino-esp32) 3.0.3 Adafruit ST7735 and ST7789 Library 1.10.4 Connection: Code: XiaoS3_ST7789_SPI_240x320_color.ino /************************************************************************** XIAO ESP32S3 Connect display on 2.4" IPS 240x320 SPI (ST7789V) : Color Test Connection: ST7789 XIAO ESP32S3 1 GND GND 2 VCC 3V3 3 SCL GPIO7 (hardware SPI SCK) 4 SDA GPIO9 (hardware SPI MOSI) 5 RST GPIO2 6 DC GPIO3 7 CS GPIO4 8 BL 3V3 **************************************************************************/ #include <Adafruit_GFX.h> // Core graphics library #include <Adafruit_ST7789.h> // Hardware-specific library for ST7789 #include <SPI.h> #define TFT_RST ...

2.4 inch TFT Module 240×320 ST7789V (GMT024-08-SPI8P VER 1.3)

Image
 2.4 inch TFT Module 240×320 ST7789V, marked "GMT024-08-SPI8P VER 1.3". Pin assignment: 1 GND 2 VCC 3 SCL 4 SDA 5 RST 6 DC 7 CS 8 BL Related exercise: ~  Seeed Studio XIAO ESP32S3 Sense display on 2.4" TFT 240×320 ST7789V using Adafruit_ST7789 lib in Arduino framework . ~  Adafruit_GFX/ImageReader exercises to load bmp images from MicroSD and display on 240×320 ST7789 SPI TFT, run on Seeed Studio XIAO ESP32S3 Sense (Arduino Platform) . ~  Raspberry Pi Pico 2 W display on dual LCD using Arduino_GFX_Library (Arduino Framework) . On Raspberry Pi: ~  Face detection using Python/OpenCV on Raspberry Pi, display on ST7789 LCD using Luma.LCD .

First try CameraWebServer on Seeed Studio XIAO ESP32S3 Sense + ov5640 Camera (Auto-Focusing), in Arduino framework.

Image
First try CameraWebServer on Seeed Studio XIAO ESP32S3 Sense + ov5640 Camera (Auto-Focusing) , in Arduino framework. Make sure  ESP32 (Arduino-ESP32) is installed to your Arduino IDE , 3.0.2 is installed in this video. Select board of esp32 > XIAO ESP32S3 Open Examples for XIAO_ESP32S3 > ESP32 > Camera > CameraWebServer un-comment the line: #define CAMERA_MODEL_XIAO_ESP32S3 and comment all other CAMERA_MODEL. Edit ssid and password to match with your WiFi network. optionally, you can compare with Seeed Studio XIAO ESP32S3 Sense Schematic . To check the supported camera sensor: Right click on any _PID (OV3660_PID here) in the code, click on Go to Definition. You can add code to check the attached camera sensor at runtime. CameraWebServer.ino #include "esp_camera.h" #include <WiFi.h> // // WARNING!!! PSRAM IC required for UXGA resolution and high JPEG quality // Ensure ESP32 Wrover Module or other board ...