Giter Site home page Giter Site logo

tscholze / dotnet-iot-homebear-rainbow Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 672 KB

Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT

License: MIT License

C# 100.00%
uwp-app raspberry-pi windows-10-iot pimoroni pimoroni-rainbowhat apa102 bmp280

dotnet-iot-homebear-rainbow's Introduction

HomeBear.Rainbow

Windows 10 IoT Core UWP app that works great with the Pimoroni RainbowHAT. The app is in a final state. No maintenance effort planned.

Prerequirements

How it looks

At the moment, it's just a headless application that is controlled by the input controls of the RainbowHAT.

Device

Features

  • Control the large R, G, B LEDs
  • Listen to 'A', 'B', 'C' capacitive touch buttons
  • Piezo buzzer
  • APA102 to control seven multicolor LEDs
  • HT16K33 14-segment alphanumeric displays
  • BMP280 temperature sensor
  • BMP280 pressure sensor

Keep in mind

  • All features have room for improvements.
  • All values could be wrong. Please report mismatches measurements.

Information

Most of the logic behind is based on the offical Python libraries.

Usage

Use the an instance of the RainbowHAT to controll the HAT, regardless what sub-controller (APA102, BMP280, HT16K33) you want to control. Listen on events to get values back from the HAT.

Call the PerformAction method to execute specified actions on the Pi's HAT.

// Setup event callbacks.
rainbowHAT.CaptiveButtonPressed += CaptiveButtonPressed;
rainbowHAT.TemperatureMeasured += TemperaturMeassured;
rainbowHAT.PressureMeasured += PressureMeasured;

// Perform actions
rainbowHAT.PerformAction(RainbowHATAction.ShowDemo);

Keep an eye on the debug output. If something went wrong, it should be logged to it.

Known issues

  • Due to the narrowness of the temperature sensor the the Pi's CPU, it meassures more heat as actual value should be
  • App gets randomly terminated.

Ideas for the future

  • Connect to Azure IoT Hub
  • Rework as background process
  • XAML UI to control the Rainbow HAT

Publications

Contributing

Feel free to improve the quality of the code. It would be great to learn more from experienced C#, UWP and IoT developers.

Authors

Just me, Tobi.

Thanks to

License

This project is licensed under the MIT License - see the LICENSE file for details. Dependencies or assets maybe licensed differently.

dotnet-iot-homebear-rainbow's People

Contributors

tscholze avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

drwindows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.