ksivamuthu / chirp-flutter-dev-colors

Chirp + Flutter SDK - Flutter app sends HEX code through audio,. Python program that receives audio decodes the HEX value data and call the Philips HUE Bridge API to set the color of the light
MIT License
2 stars 1 forks source link
chirp flutter iot

Chirp Flutter Dev Colors

Codemagic build status

Chirp Flutter Dev Colors - This repository contains Flutter application and python utility. It includes the demo of Chirp SDK on Flutter and how to transmit the data through audio to set the color of the light bulb.

Overview

I recently started exploring ChirpSDK - SDK for transmitting data through audio when I explore one of the non-internet or less costly hardware options for IoT solutions to transmit the data.

Chirp enables your apps to send and receive information using sound. A "chirp" encodes an array of bytes as an audio signal, which can be transmitted by any device with a speaker and received by any device with a microphone and Chirp SDK. It is designed to be robust over distances of several metres, and in noisy, everyday environments.

As the transmission takes place entirely via audio signals, no internet connection or prior pairing is required, and any device within hearing range can receive the data.

To keep it simple and as having fun, this project is developed in my twitch streams.

How this solution works?

The idea of the project is we are going to send the data from mobile to another device through audio.

I've built this Flutter application that has list of dev brand main colors. For e.g

* Angular Red
* React Blue
* Vue Green
* Chirp Yellow

When you taps one of the list item, the app is sending the HEX value of the color through the audio. Then the python application running in my machine receives the audio through microphone, decodes the HEX value. Then its calling Philips HUE Bridge API to set the color of the light.

If you tap "Angular Red", then it sets the light bulb color to red through audio signal.

Prerequisites

** You can use other bulbs or models. You might need to update the code to call the API.

How to run?

Configure your Chirp Applications.

To configure your chirp app, navigate to the applications page and select a protocol. Copy and paste the key, secret and config string into your app.

Configure your Wireless Hue Light Bulb

Please follow the instruction in meethue developers page

Chirp Flutter Project

Python program to listen audio

Demo

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

License

Distributed under the MIT License. See LICENSE for more information.