Example Code for UNIHIKER-MindPlus-Graphical Programming-Weather Data

This article provides a detailed guide on setting up and programming UNIHIKER with Mind+ to display real-time weather data using the Lark Weather Station, including hardware and software preparations, wiring instructions, and a sample code demonstration.

Hardware Preparation

  • UNIHIKER x1
  • Lark Weather Station x1

Software Preparation

Wiring Diagram

Other Preparation Work

For Mind+

  1. Load the Lark Weather Station user library.
  2. Switch to Python mode and enable required extensions.
  3. Use the "Lark Initialization" block to synchronize UNIHIKER’s system time with the Lark Weather Station.

Sample Code

The UNIHIKER will display real-time weather data on its screen. A sample Mind+ setup is shown below:

Additional Information

  • Ensure the Pinpong library is updated to version 0.4.9 or above to avoid compatibility issues.
  • The "Lark Initialization" block in Mind+ automatically synchronizes the UNIHIKER’s time with the Lark Weather Station.

Was this article helpful?

TOP