Home

Awesome

flutter-pi-sensor-tester

This project bases on dart_periphery and the light-weight Flutter Engine Embedder for Raspberry Pi.

UI-Overview

alt text

Test setup with a Raspberry Pi 3 with attached LEDs, sensors and a small touch screen running the led demo.

alt text

Video snippet for reordering UI elements

Overview

This subproject of dart-periphery based on flutter-pi implements an isolate/stream architecture designed to transfer sensor data from an isolate to the Flutter UI.

Isolate Interface: This consists of the steps InitTask, MainTask, and ExitTask, along with a limited back channel for controlling the isolate. This setup is typically used for sensor measurements:

Listening Mode: Features InitTask and user-defined handling for isolate events. This variant remains on standby for data; once data is processed, the result is passed to the stream and subsequently to the Flutter UI. This model is used for actuator control, such as operating an LED.

Support for Multiple Streams: Enables handling of multiple data streams simultaneously.

Import hints:

Known errors: Demo crashes in hardware mode after closing a demo and open the next demo. There is a problem with the re-init of the periphery C-library in context of the isolates. Investigations are ongoing.

Starting The isolate related code can be found here:

Next steps: