YUN HAT is a cloud-shaped multi-function environment information measurement base. Built-in temperature and humidity sensor SHT20, air pressure sensor BMP280, photoresistor,14 RGB LEDs. The board is build with Embedded Microprocesser ** STM32F030F4** , which implenmented a consice and efficient program APIs.
YUN HAT features a pretty appearance which could be used as a decration for your space.
The base is designed for the M5StickC, like other HAT devices, it is compatible with top socket of M5StickC. The overall structure adopts a three-layer design, and the upper and lower PCB boards serve as fixed structure and main circuit respectively, which is beneficial to the circuit conduct long hours of work.
the board also provides an independent external power interface.
The middle layer is a light-guided acrylic component. To achieve a better light display effect, The acrylic outer contour cutting surface is partially polished, and the purpose is to effectively reduce the scattering of light, making it evenly saturated with light effects.
One hook hole and two 6*4mm magnet mounting positions are reserved on the board, so users can easily magnet or hang in any corner of space.

Product Features

  • Compatible with M5StickC
  • On-board Microprocessor STM32F030F4
  • Temperature and Humidity sensor SHT20
  • Air pressure sensor BMP280
  • Photoresistance
  • 14 x SK6812 4020 RGB LED
  • Three-layer structure design:      - 1 x hook hole      - 2 x 6*4mm magnet mounting position      - 1 x finishing Acrylic profile surface
  • Development platform: Arduino, UIFlow(Blockly, Python)


  • 1x YUN HAT
  • 2x Dupont


  • Environmental information collection
  • Smart home decoration
  • Fridge Magnet


Resources Parameter
Communication protocol I2C:SHT20(0x40),BMM280(0x76),YUN(0x38)
Net weight 7g
Gross weight 15g
Product Size 75*55*5mm
Package Size 100*85*20mm

Pin Map




download EasyLoader

1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.

  1. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)


Line Fridge Thief with M5StickV & M5StickC & YUN hat
The idea is simple, I would like to create Home Automation unit with something intelligent. So I combine M5StickV and M5StickC.




Open and Load Demo