Smart sensor

Found in nearly all modern gadgets, sensors gather and measure data about the environment or other factors. Examples include position, height, speed, temperature, vibrations, air quality, touch, color, smoke and gas, tilt, light, and proximity, to name a few. Beyond just showing data, sensors in "smart" devices are used to collect more accurate input in order to offer improved response, functionality, or service.

Meet Lunar

The firmware on this page is an example implementation of a smart multi-sensor device available in two versions, a simple version with just two sensors, and the other one with also touch display and UI.

While developing the UI version of the firmware a 3d-printed housing was a due to not mess with the cables and be able to comfortably plug and unplug components and develop the touch UI version of the firmware.
You can see in the picture below the resulting unusual combo which code name is "Lunar" because it vaguely resembles the view of a spaceship passing by the moon (I know... it requires a lot of fantasy to see that :)).

Non-conventional housing for a bunch of common electronic modules.


Open media

Example activity to control a switchable input


Open media

Lunar is also an example of how to use HomeGenie Mini SDK classes to implement a multitasking and touch based user interface.


Open media

The final goal of this version with a display and a motion sensor is to release it in the future as a specific firmware example that implements a smart thermostat that also consider motion detection as a parameter to optimize its algorithm efficiency.

This version with the UI is using a GC9A01 display module with CST816S capacitive touch screen IC since this can be also conveniently found as a single module with embedded ESP32-S3 chip. Provided with a minimal user interface and a few example activities, this setup leaves a plenty of RAM available (2,22Mb!) making it a suitable ready to use base configuration for developing and testing your creations and explore more advanced applications with HomeGenie Mini.

Ingredients

Create this device now! 🪄

Connect your ESP32 / ESP8266 microcontroller to the USB port of this computer, select the desired firmware version, and click the "Create device" button to upload HomeGenie Mini firmware to the device.

1. Select device type

2. Select firmware flavor

3. Let the magic happen!

Installing firmware directly from this page works only in browsers with Web Serial API enabled.

See the Device setup page for further information about configuring a HomeGenie Mini device.

forum Q & A Discussion Forum

Source code

This firmware pre-compiled binaries and source code are available on GitHub:

folder_open smart-sensor folder_open smart-sensor-display

Modules and API

In addition to the common Device API, the following modules and API are implemented by this device.

mini module

Builtin sensor module.

Domain / Address

HomeAutomation.HomeGenie/mini

Properties

arrow_left  Previous
Next arrow_right 

More topics

Setup

Programming

forum Q & A Discussion Forum
HomeGenie
MINI 1.2 — Documentation