Skip to content

DFRobot/platform-unihiker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIHIKER: development platform for PlatformIO

Build Status

UNIHIKER is an intelligent development platform based on ESP32-S3 microcontroller, specifically designed for the DFRobot UNIHIKER K10 development board. This platform integrates advanced features such as AI recognition, voice interaction, and graphical display, providing a powerful development environment for education, maker projects, and IoT applications.

Platform Features

  • AI Intelligence: Built-in face recognition, speech recognition, and other AI capabilities
  • Graphical Display: 2.8-inch color touchscreen with graphics drawing and interaction support
  • Sensor Integration: Accelerometer, gyroscope, and various other sensors
  • Voice Interaction: Support for Chinese speech recognition and speech synthesis
  • Wi-Fi and Bluetooth: Built-in wireless connectivity
  • Education-Friendly: Optimized for learning and prototyping
  • Open Source: Based on Apache-2.0 license

Supported Boards

UNIHIKER K10

  • Processor: ESP32-S3 (240MHz)
  • Memory: 16MB Flash, 8MB PSRAM
  • Display: 2.8-inch color touchscreen (240x320 resolution)
  • Camera: 2MP camera
  • Sensors: 6-axis IMU (accelerometer + gyroscope)
  • Connectivity: Wi-Fi 802.11 b/g/n, Bluetooth 5.0
  • USB: Type-C interface with USB device mode support
  • Expansion: Rich GPIO interfaces and I2C/SPI buses

Usage Example

Here's a simple LED blinking example demonstrating how to use the UNIHIKER platform:

#include "unihiker_k10.h"

UNIHIKER_K10 k10;
uint8_t screen_dir = 2;

void setup() {
    k10.begin();
    k10.initScreen(screen_dir);
    k10.creatCanvas();
    k10.setScreenBackground(0xFFFFFF);
}

void loop() {
    // Draw a green circle on the screen
    k10.canvas->canvasCircle(120, 160, 10, 0x00FF00, 0x00FF00, true);
    k10.canvas->updateCanvas();
    delay(1000);
    
    // Clear the circle
    k10.canvas->canvasCircle(120, 160, 10, 0xFFFFFF, 0xFFFFFF, true);
    k10.canvas->updateCanvas();
    delay(1000);
}

Getting Started

1. Install PlatformIO

First, install PlatformIO IDE or CLI:

2. Create Project

Configure the platform in your platformio.ini file:

[env:unihiker]
platform = https://github.com/DFRobot/platform-unihiker.git
board = unihiker_k10
framework = arduino
build_flags = 
    -DARDUINO_USB_CDC_ON_BOOT=1
    -DARDUINO_USB_MODE=1
    -DModel=None

3. Build and Upload

# Build the project
pio run

# Upload to the board
pio run --target upload

# Monitor serial output
pio device monitor

Quick Start

1. Clone the Platform

git clone https://github.com/DFRobot/platform-unihiker.git
cd platform-unihiker

2. Create Project

Create a new PlatformIO project and configure it in platformio.ini:

[env:unihiker]
platform = https://github.com/DFRobot/platform-unihiker.git
board = unihiker_k10
framework = arduino
build_flags = 
    -DARDUINO_USB_CDC_ON_BOOT=1
    -DARDUINO_USB_MODE=1
    -DModel=None

3. Write Code

Refer to the usage example above to write your first UNIHIKER program.

Core Features

AI Recognition

  • Face Detection: Real-time face position and size detection
  • Object Recognition: Support for various object recognition
  • Gesture Recognition: Recognize gesture movements

Voice Interaction

  • Voice Wake-up: Support for custom wake words
  • Command Recognition: Recognize voice control commands
  • Speech Synthesis: Provide voice feedback

Graphical Display

  • Graphics Drawing: Support for lines, circles, rectangles, and other basic shapes
  • Text Display: Support for Chinese and English text display
  • Touch Interaction: Support for touchscreen interaction

Sensor Support

  • Accelerometer: Detect device tilt and motion
  • Gyroscope: Detect device rotation
  • Environmental Sensors: Support for temperature, humidity, and other sensors

Development Environment

Supported Frameworks

  • Arduino: Simple and easy-to-use development framework
  • ESP-IDF: Powerful native development framework

Development Tools

  • PlatformIO: Recommended development environment
  • Arduino IDE: Traditional development environment
  • VS Code: Modern editor

Troubleshooting

Common Issues

  1. Upload Failure

    • Check USB connection
    • Verify correct board selection
    • Try reducing upload speed
  2. AI Function Issues

    • Ensure camera connection is normal
    • Check ambient lighting conditions
    • Verify model file integrity
  3. Speech Recognition Problems

    • Check microphone connection
    • Ensure low ambient noise
    • Verify speech model settings
  4. Display Issues

    • Check screen connection
    • Confirm display orientation settings
    • Verify graphics library version

Getting Help

Contributing

We welcome issues and pull requests to improve this platform!

License

This project is open source under the Apache-2.0 license.

Related Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages