edit

Grove AI HAT for Edge Computing

The Grove AI HAT for Edge Computing(hereafter called 'Grove AI HAT') is built around Sipeed MAix M1 AI MODULE with Kendryte K210 processor inside. It's a low cost but powerful raspberry pi AI hat which assists raspberry pi run the AI at the edge, it also can work independently for edge computing applications.

The MAix M1 is a powerful RISC-V 600MHz AI module features dual core 64-bit cpu, 230GMULps 16-bit KPU(Neural Network Processor), FPU(Float Point Unit) supports DP&SP, and APU(Audio Processor) supports 8 mics.

In addition to the powerful Kendryte K210 processor, the Grove AI HAT for Edge Computing board provide a wealth of peripherals: I2C/UART/SPI/I2S/PWM/GPIO. The hat also offers LCD and camera interface, which support the Sipeed 2.4inch QVGA LCD and DVP camera, it will be helpful and convenience with your AI vision project. Just like the Sipeed MAix BiT Kit for RISC-V AI+IoT, we will release the kit with camera and LCD soon. For AI voice recognition applications, we add a high-quality microphone. And for robot or motion applications, there is a onboard 3-axis accelerometers sensor, which is more accurate and easy to use compared to external sensors.

We have released varies of SIPPED AI products, we believe it is time to make it Grove, and bring all our hundreds of grove senors and grove acvotors to your AI applications. So here comes the Grove AI HAT for Edge Computing. We've added 6 grove connectors to this hat, including 1xDigital IO, 2xAnalog IO, 1xI2C, 1xUART and 1xPWM. On top of that, based on kendryte-standalone-sdk, we added the full ArduinoCore-API interface to support Arduino IDE, Linux, Windows, Mac OS X and other development environments. Which means you can run Grove Arduino Libraries and many excellent Arduino libraries on this board easily.

We hope this board may help you with your edge computing, AI vision, voice recognition, and other AI projects, just enjoy it.

Features

  • Processor: Sipeed MAIX-I module w/o WiFi ( 1st RISC-V 64 AI Module, K210 inside )
  • 1x USB 2.0 Device, Type C(Power and Programming)
  • 6x Grove Interface: include 1x Digital IO, 1x PWM, 1x I2C, 1x UART, 2x ADC
  • 1x Power LED, 1x Boot LED
  • 1x Reset Button, 1x Boot Button
  • 1x LCD Interface
  • 1x Camera Interface
  • 1x Digital Mic
  • 1x Accelerometers Sensor
  • 1x JTAG & ISP UART Pin Header
  • 2x 20 Pin Header with I2C, UART, SPI, I2S, PWM, GPIO

Specification

Parameter Value
CPU K210 RISC-V Dual Core 64bit, 400Mh(Max. 600Mhz)
FPU IEEE754-2008 compliant high-performance pipelined FPU
KPU(Neural Network Processor ) • Supports the fixed-point model that the mainstream training framework trains according to specific restriction rules
• Support for 1x1 and 3x3 convolution kernels
• Support for any form of activation function
• The maximum supported neural network parameter size for real-time work is 5MiB to 5.9MiB
APU(Audio Processor) • Up to 192kHz sample rate
• Up to 8 channels of audio input data, ie 4 stereo channels
Debugging Support High-speed UART and JTAG interface for debugging
Supply Voltage 5V
can not exceed 5.5V
IO Voltage 3.3V
Operating Ambient Temperature -20 – 70℃
ADC Onboard 16-bit ADC
3-Axis Accelerometers ADXL345 ±2 g/±4 g/±8 g/±16 g
Micrephone Sensitivity:-26 dB;SNR:61 dB
GPIO 2x 20 Pin Header compatible with Raspberry Pi
Grove Interface 1x Digital IO, 1x PWM, 1x I2C, 1x UART, 2x ADC
USB Interface USB 2.0 Device, Type C(Power and Programming)
LCD Interface 8bit MCU LCD 24P 0.5mm FPC connector
DVP Camera Interface 24P 0.5mm FPC connector
Button 1x Reset Button, 1x Boot Button (can be used as User Button)
LED 1x Power LED, 1x Boot LED(can be used as User LED)

Attention

  • All digital and analog IO interface levels are 3.3V. Please do not input more than 3.3V, otherwise the CPU may be damaged.
  • The input power supply voltage is 5V and cannot exceed 5.5V.

Applications

  • AI for Edge Computing
  • Smart Building
  • Medical equipment
  • Automation & Process Control
  • Robot

Hardware Overview

Grove AI HAT for Edge Computing hardware overview
Figure 1. Grove AI HAT for Edge Computing hardware overview

Platforms Supported

Arduino Raspberry Pi BeagleBone Wio LinkIt ONE

Getting Started

Readme

  • When the board is used in standalone mode, please turn the toggle switch J4 to the ON terminal. Then the Pin2 and Pin4 of the 2x20Pin socket J6 will connect to 5V power.
  • When the board is plugged into the Raspberry Pi, if only one board is powered, J4 needs to be dialed to the ON end; if the board and the Raspberry Pi use different USB power at the same time, J4 needs to be dialed to the OFF end to disconnect The two sets of 5V connections on the J6 avoid the two USB power supplies being directly connected.

Play With Arduino

Attention

If this is the first time you work with Arduino, we strongly recommend you to see Getting Started with Arduino before the start.

In theory, Grove AI HAT can be compatible with all Grove modules, but inevitably there will be compatibility issues. If you find a Grove module that is not compatible with the Grove AI HAT, please submit it to our Github Page.

Arduino config

  • Step 1. Configure the Arduino Board Manager URL.
    Click File → Preference, copy the following URL into the Additional Boards Manager URLs
1
https://raw.githubusercontent.com/Seeed-Studio/Seeed_Platform/master/package_seeeduino_boards_index.json
Grove AI HAT Arduino config
Figure 2. Arduino Board URL config
Grove AI HAT Arduino config
Figure 3. Arduino Board URL config
  • Step 2. Add the Grove AI HAT board into Arduino IDE.
    Click Tools → Board:"xxxx" →Boards Manager, tap K210 into the search bar.
    Find the Grove AI HAT for Edge Computing by Seeed Studio, click Install button.
Grove AI HAT Arduino config
Figure 4. Open Board Manager
Grove AI HAT Arduino config
Figure 5. Install the Grove AI HAT Board

When the installation is complete, you can find the Seeed K210 Pi board in the Arduino board list.

Grove AI HAT Arduino config
Figure 6. Select Seeed K210 Pi

Also, to use the Grove AI HAT in the Arduino IDE, you need to select the K-flash Programmer at the Arduino Programmer list.

Grove AI HAT Arduino config
Figure 7. Select K-flash Programmer

Digital Demo

Materials required

Hardware Connection
  • 1 Conect the Grove - LED to the Grove J2 port(D13 pin) of the Grove AI HAT
  • 2 Conect the Grove AI HAT to the computer via USB Type C port.
Grove AI HAT Arduino demo
Figure 8. Hardware connection
Software
  • Step 1. Creat a new blank sketch in your Arduino IDE, copy the following code into that sketch.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(13, OUTPUT);
}


void loop() {
  digitalWrite(13, HIGH);   // 
  delay(1000);                       // wait for a second
  digitalWrite(13, LOW);    // 
  delay(1000);                       // wait for a second
}
  • Step 2. Upload the demo. If you do not know how to upload the code, please check How to upload code.

After done uploading, the Grove - LED will flash.

Analog Demo

Materials required

Hardware Connection
  • 1 Conect the Grove - Round Force Sensor (FSR402) to the Grove J11 port(A0 pin) of the Grove AI HAT
  • 2 Conect the Grove AI HAT to the computer via USB Type C port.
Grove AI HAT Arduino demo
Figure 9. Hardware connection
Software
  • Step 1. Download the ADS1115 library

  • Step 2. Open the demo at File → Examples →ADS-1115-master →Example →ADS1115_ReadVoltage

Grove AI HAT Arduino demo
Figure 10. ADC Demo Path
  • Step 3. Upload the demo. If you do not know how to upload the code, please check How to upload code.

  • Step 4. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or tap the Ctrl+Shift+M key at the same time. Set the baud rate to 115200.

Then, press the Grove - Round Force Sensor, the A0 valnue will change.

Grove AI HAT Arduino demo
Figure 11. Output

Resources

Tech Support

Please submit any technical issue into our forum or drop mail to techsupport@seeed.cc