gigwegbe / SenseCraft

Open source smart sensor software for no-code sense, process and uplink. It’s now compatible with Wio Terminal, and we hope it will be compatible with M5 Stack, XIAO and MCU with screen on the basis of community contribution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SenseCraft - The Project of No-Code Smart Sensor Builder

Description

SenseCraft is an open source software platform to build smart sensors with no-code. It delivers a complete out-of-the-box solution to sense the real-world, process data and send the data to the cloud in the easiest and fastest way possible with no coding experience at all! It is now compatible with Wio Terminal, and we hope it will be open and inclusive to support hardware platforms such as M5 Stack, XIAO and MCU with screen on the basis of community contribution.

With this toolkit, we’ll break down the process of displaying sensor data into 3 actions:

  • Sense: Connect all the sensors to supported hardware platform
  • Process: Data handling and Machine Learning
  • Uplink (Network): Sending data to the clould via WiFi/ LoRaWAN

Supported hardware platforms

Currently we have implemented several functions and they have already been tested to work well on the pilot testing hardware platform Wio Terminal. We will continue to further expand the possibilities of the current solution and ultimately end up with a more polished solution to serve the open source community. So, please stay tuned for our next update.

Quick start with Wio Terminal

  • Step 1: Download the latest .uf2 file from here

  • Step 2: Connect Wio Terminal to PC and enter bootloader mode on the Wio Terminal

  • Step 3: Drag-and-drop the .uf2 file into the USB drive which appears on PC

To get a sneak peak about how to use this at the current state, please follow this wiki

Note: Please note that you need to follow the steps below if you want to connect to SenseCAP platform via LoRa. This will not be needed in the future.

  • Step 4: When the Wio Terminal is connected to the PC with the above project loaded, you will see a new USB drive appear
  • Step 5: Create a new file named config.txt inside this USB drive, add the following and save it
FREQUENCY=1
  • Step 6: Turn OFF Wio Terminal and turn it back ON

Functions list

No Function Description State
1 Basic interaction logic of the user interface Switch between the homepage of Sense, Process, and Uplink (Network) by pressing the top 3 buttons. Press LEFT and RIGHT to select different options, press UP to return, and press ENTER to confirm. DOWN key is undefined Implemented
2 Real-time data display with line charts On the Sense homepage, the instantaneous data from different sensors can be updated and displayed in real-time with units and as line charts
3 TinyML Tutorial link Display a QR code to let users jump to the wiki to follow the tutorial
4 LoRa® Communication (SenseCAP) All data is sent to the cloud via LoRa®
5 Automatic recognition of sensor connections When any sensor in the kit is connected, the screen shows that the sensor is connected and you can see the real-time data and line charts Under development with an estimated release date on August 31
6 LoRa® communication information panel display When the LoRa is successfully connected to send data, there is an information panel that displays the signal strength and the number of successful packets in real-time
7 Connect to Ubidots via WiFi The user fills in the WiFi account password and ubidots binding code through a config file, and then Wio Terminal automatically identifies the information and binds the device to the specified Ubidots account
8 Save sensor data to SD card The user has a switch under each sensor, which can save the sensor data to an SD card when turned on
9 Grove - Vision AI Module Logs Scroll real-time training logs of Grove - Vision AI Module with timestamps on the screen
10 Automatically rotate the screen When Wio Terminal is held upside down, after more than 5 seconds, it will automatically rotate the screen orientation display. (only consider up and down, not left and right)
11 Disconnect secondary confirmation interface On the information display page after successfully connecting to LoRa or WiFi, a discontent button is provided. After clicking, a pop-up window appears to confirm whether it is disconnected or not.
12 Add threshold function (user can choose when the sensor value is greater or less than the set value and then choose to upload or not upload data) The user can set in a sensor when the value is greater than/smaller than the threshold and then choose to send/not send the data to the cloud to complete a local data filtering function to-be-developed functions that we’d love to invite the community to contribute
13 Grove sensor support continues to be added based on classification and popularity from the current 200 Grove Sensors In addition to the 4 supported sensors (Grove VOC and eCO2 Gas Sensor, Grove - Soil Moisture Sensor, Grove Temp&Humi Sensor, Grove Vision AI Sensor), continue to add more Grove sensor support
14 Other functional and optimization suggestions Provide optimization and bug feedback, and then classify the problems according to the problem. We try to fix the functions we wrote ourselves. For other suggestions and time-consuming problems raised by the community, we encourage the community to offer rewards to solve them.

Note: The LoRa® Mark is a trademark of Semtech Corporation or its subsidiaries.

Before moving further, please check this wiki to have a glimpse of this project in it’s current state and experience it right away!

Would you like to contribute to this project?

You are all invited to experience this beta version toolkit by downloading the Release v0.1. Feel free to propose any other functions that you’d love to have by raising an Issue. Hunting the bugs by raising issues is much appreciated. A big shout-out in advance to those who will contribute to the project.

Development Steps

In order to get started with the development, you first need to setup a development environment on your PC. After you are done with the development, you need to compile the codes and upload to the pilot testing hardware platform Wio Terminal. All these will be explained below.

Set up environment

Here we use the PlatformIO as the debut integrated development environment (We’re open to other IDEs and feel free to offer your suggestions). PlatformIO supports some of the most popular IDEs and text editors as an extension/ plugin. Moreover, we will use PlatformIO extension with Microsoft Visual Studio.

  • Step 1: Download and install Microsoft Visual Studio Code by following this link
  • Step 2. Open VS Code, click Extensions from the left navigation pane, type platformio in the search bar and click Install

Build

Now we will build the project for Wio Terminal

  • Step 1: Clone the following GitHub repo
https://github.com/Seeed-Studio/SenseCraft
  • Step 2: Go into the project root directly and type the following to build the project
pio run -v

Upload

Now we will upload the project into Wio Terminal

  • Step 1: Connect Wio Terminal to PC via USB Type-C cable
  • Step 2: Go into the previous project root directly and type the following to upload the project into Wio Terminal
pio run -t upload

Get in touch

Have any questions? Would like to discuss something in depth? Join us on Discord (#iot-into-the-wild channel)!

Useful links

To get started with this project, here is a list of links that we think miaght be useful.

About

Open source smart sensor software for no-code sense, process and uplink. It’s now compatible with Wio Terminal, and we hope it will be compatible with M5 Stack, XIAO and MCU with screen on the basis of community contribution

License:MIT License


Languages

Language:C++ 56.8%Language:C 42.0%Language:Assembly 1.2%