Giter Site home page Giter Site logo

thijsiez / techival-iot-examples Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

Code samples for the Capgemini Techival IoT workshop using a WEMOS S2 Mini, LOLIN RGB LED Shield, and DFRobot Capacitive Soil Moisture Sensor

C++ 100.00%
esp32-arduino esp32-s2 examples lolin rgb-led soil-moisture-sensor wemos

techival-iot-examples's Introduction

Capgemini Techival IoT Workshop Examples

This repository contains some code examples showcasing a few light effects for the LOLIN RGB LED Shield based on measurements from the Capacitive Soil Moisture Sensor.
Since the sensor is capacitive, it'll detect/measure more than just wet soil. You should be able to use your finger on the sensor to test the code instead of needing a glass of water :)

  • SimpleFade changes color from red to blue on all LEDs
  • SimpleCircle fills the outer LED circle with green
  • RgbLoop cycles through colors and changes the brightness

Arduino IDE Settings

To upload code to the WEMOS S2 Mini, the Arduino IDE should be set to the following settings under the Tools menu.

  • Board: "LOLIN S2 Mini"
    • Can be found under ESP32 Arduino
  • Port: "COMx (LOLIN S2 Mini)"
    • Where COMx is probably the only available option
    • If your S2 Mini doesn't show up in the list or issues arise when uploading code to the board, hold down the 0 button, press the RST button, then release the 0 button

Tips & Tricks

Calibration

Opening the Arduino IDE's Serial Monitor will show you the unitless measured values coming straight from the sensor in all these examples. You can use these values to specify the range from dry to wet. These are defined in the examples as DRY_VAL and WET_VAL, respectively.
The default values worked for me when I was writing these examples, but depending on the sensor you're using, they might not be optimal, so change them according to the Serial Monitor output.

techival-iot-examples's People

Contributors

thijsiez avatar

Watchers

 avatar

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.