M5Stack U078-USB

Contents

M5Stack UnitV2 USB AI Camera Module User Manual

Model: U078-USB

1. Introduction

The M5Stack UnitV2-USB is a high-efficiency AI recognition module designed for edge computing and machine vision applications. Powered by the SigmaStar SSD202D dual-core Cortex-A7 1.2GHz processor, it features 128MB DDR3 memory and 512MB NAND Flash. This module provides a USB Type-A interface for connecting various UVC cameras and operates on a built-in Linux operating system. It integrates rich software and hardware resources, offering a simple and efficient AI development experience right out of the box.

M5Stack UnitV2 USB AI Camera Module overview with labeled components

Figure 1: UnitV2-USB Module and Included Components

  • Key Features Highlighted: USB-A Port, Button, TF Card Slot, USB 2.0 Port, HY2.0-4P Connector, Back-Brick, USB Cable (50cm), UART Interface, AI Camera capabilities.
  • Internal Specifications: Dual Cortex-A7 1.2GHz, 128MB DDR3, 512MB NAND Flash, WiFi 150Mbps 2.4GHz, SigmaStar SSD202D, Support UVC Camera.

2. Package Contents

Please check the package for the following items:

  • 1 x M5Stack UnitV2-USB AI Camera Module
  • 1 x 16GB microSD Card
  • 1 x USB Type-C Cable (50cm)
  • 1 x Stand
  • 1 x Back Clip

3. Specifications

Bottom label of M5Stack UnitV2 showing detailed specifications and connection information

Figure 2: UnitV2-USB Bottom Label with Detailed Information

  • WLAN1 Wi-Fi AP Details: SSID: M5UV2_XXXX, PWD: 12345678
  • Browser Access: 10.254.239.1 or unitv2.py
  • SSH Access: 10.254.239.1:22, USER: m5stack, PWD: 12345678
  • UART Pinout: Tx, Rx, 5V, G
FeatureParameter
ProcessorSigmaStar SSD202D (Dual Cortex-A7 1.2GHz)
Flash Memory512MB NAND
RAM128MB DDR3
Camera InterfaceUSB-A universal interface (supports UVC cameras, no built-in lens)
Input Voltage5V @ 500mA
Hardware InterfacesType-C x1, UART x1, TFCard x1, Button x1, Microphone x1, built-in active cooling fan x1
LED IndicatorRed, White
Wi-Fi150Mbps 2.4GHz 802.11 b/g/n
Ethernet CardSR9900
Product Dimensions48.0 x 24.0 x 24.2mm
Product Weight20.0g
Operating SystemLinux

4. Setup and Initial Configuration

4.1. Driver Installation (SR9900 Ethernet Adapter)

The UnitV2-USB uses an SR9900 Ethernet adapter for network communication when connected via USB. You may need to install drivers for your operating system.

For Windows 10:

  1. Download Drivers: Obtain the SR9900 driver package for Windows.
  2. Extract: Extract the downloaded driver package to a convenient location (e.g., your Desktop).
  3. Open Device Manager: Right-click the Start button and select 'Device Manager'.
  4. Locate Device: Look for an unrecognized device, typically named 'USB 10/100 LAN' or containing 'SR9900', usually under 'Other devices'.
  5. Update Driver: Right-click on the unrecognized device and select 'Update driver'.
  6. Browse for Drivers: Choose 'Browse my computer for drivers'.
  7. Specify Location: Navigate to the folder where you extracted the SR9900 drivers (e.g., D:\unitv2\sr9900.inf_amd64).
  8. Install: Click 'Next' and follow any on-screen prompts to complete the installation.
  9. Verification: Once installed, the device should appear correctly under 'Network adapters' as 'Corechip SR9900 USB2.0 to Fast Ethernet Adapter'.

For macOS:

  1. Download Drivers: Obtain the SR9900 driver package for macOS (e.g., SR9900_v1.x.pkg).
  2. Install: Double-click the .pkg file and follow the on-screen instructions to install the driver. The package usually includes a detailed installation tutorial in PDF format.
  3. Network Card Re-enable (if needed): If the network card does not enable normally after installation, open 'Terminal' and execute the following commands:
    sudo ifconfig en10 down
    sudo ifconfig en10 up

4.2. Initial Connection and Access

The UnitV2-USB is designed for plug-and-play operation. It has a built-in wired network card that automatically establishes a network connection when connected to a PC via the USB Type-C interface.

  1. Connect to PC: Use the provided USB Type-C cable to connect the UnitV2-USB to your computer.
  2. Power On: The device will power on automatically.
  3. Access via Browser: Once connected and drivers are installed (if necessary), you can access the UnitV2's web interface by navigating to http://10.254.239.1 or http://unitv2.py in your web browser.
  4. Wi-Fi Access Point: The UnitV2 also creates a Wi-Fi Access Point (AP) with SSID M5UV2_XXXX (where XXXX is unique to your device) and password 12345678. You can connect to this AP from another device to access the web interface.
  5. SSH Access: For command-line access, you can connect via SSH using the IP address 10.254.239.1 on port 22. The default username is m5stack and the password is 12345678.

5. Operating the UnitV2-USB

5.1. Preloaded AI Recognition Service

The UnitV2 comes preloaded with a basic AI recognition service developed by M5Stack, enabling rapid AI application development. All functions are plug-and-play.

5.2. AI Image Functions

The device supports 12 commonly used AI image functions:

  • QR code recognition
  • Face detection
  • Line following
  • Motion detection
  • Template matching
  • Image streaming
  • Classification
  • Color tracking
  • Face recognition
  • Object tracking
  • Contour detection
  • Custom object recognition

5.3. Development Methods and Resources

  • Web Online Preview: Access the web interface for real-time video feed and function control.
  • UiFlow: Supports calls in JSON format via serial port for integration with UiFlow.
  • Linux Environment: Develop directly within the Linux environment using tools like OpenCV, SSH, and Jupyter Notebook.
  • Tutorials: Access built-in recognition function tutorials, V-Training online AI model training service, Jupyter Notebook development tutorials/examples, and SSH/Wi-Fi configuration guides.
  • SDK: Utilize the UnitV2Framework for custom development.

Video 1: M5Stack UnitV2 Product Overview and Application Showcase

This video demonstrates the UnitV2's features, ports, and practical applications such as production line label detection, operator identification, and face recognition for system unlocking.

5.4. UART Serial Output

All recognition results can be automatically output via serial in JSON format, allowing for easy integration with other systems or microcontrollers.

6. Maintenance

  • Cleaning: Use a soft, dry cloth to clean the exterior of the device. Avoid using liquid cleaners or solvents.
  • Storage: Store the device in a cool, dry place away from direct sunlight and extreme temperatures.
  • Firmware Updates: Regularly check the M5Stack official website for firmware updates to ensure optimal performance and access to new features. Refer to the 'Firmware Update Tutorial' available in the device's resources.
  • MicroSD Card: Ensure the microSD card is properly inserted and handled with care. Avoid frequent removal or insertion while the device is powered on.

7. Troubleshooting

7.1. Device Not Recognized by PC

  • Check Cable: Ensure the USB Type-C cable is securely connected to both the UnitV2 and your PC. Try a different USB port or cable.
  • Driver Installation: Verify that the SR9900 Ethernet adapter drivers are correctly installed for your operating system (Windows/macOS). Refer to Section 4.1.
  • Device Manager (Windows): Check Device Manager for any unknown devices or devices with exclamation marks.

7.2. Cannot Access Web Interface

  • Network Connection: Ensure your PC has established a network connection with the UnitV2. Check your network adapter settings.
  • IP Address: Confirm you are using the correct IP address (http://10.254.239.1 or http://unitv2.py).
  • Firewall: Temporarily disable your computer's firewall to see if it's blocking access.
  • Wi-Fi Connection: If using Wi-Fi, ensure you are connected to the UnitV2's AP (SSID: M5UV2_XXXX, PWD: 12345678).

7.3. SSH Connection Issues

  • IP Address and Port: Verify the IP address (10.254.239.1) and port (22) are correct.
  • Credentials: Ensure you are using the correct username (m5stack) and password (12345678).
  • Network Connectivity: Confirm network connectivity between your host and the UnitV2.

7.4. Network Card Not Enabling (macOS)

  • If the network card fails to enable after driver installation, use the terminal commands: sudo ifconfig en10 down followed by sudo ifconfig en10 up.

8. User Tips

  • External Camera Compatibility: The UnitV2-USB requires an external UVC-compatible camera. Ensure your chosen camera is compatible for optimal performance.
  • Power Supply: While powered by USB, ensure your USB port or hub can provide stable 5V @ 500mA for reliable operation, especially when using external peripherals.
  • Development Environment: Familiarize yourself with the Linux environment and tools like OpenCV and Jupyter Notebook for advanced AI application development.

9. Warranty and Support

For warranty information, technical support, and further resources, please visit the official M5Stack website or contact their customer service. Keep your purchase receipt for warranty claims.

© 2023 M5Stack. All rights reserved.

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.