LeClubSandwichStudio / LaCOOLBoard

Arduino library & sample sketches for La COOL Board, the open-source, open-hardware environmental monitoring and control device
http://www.lacool.co
MIT License
3 stars 5 forks source link

La COOL Board

Build Status

What is La COOL Board?

La COOL Board is a connected environmental monitoring and control board. It can be used to build custom weather stations, self-watering plants, hydroponic control systems, pH probes, and many other things. It's also extensible and compatible with numerous external sensors and actuators.

Key features and benefits

How to make it?

Have a look at our Eagle files - but you can also buy it from us! Don't hesitate to contact or check out our website

What is this repository for?

It contains a set of Arduino libraries, wrappers and sketches that simplify the access to and usage of the sensors and other hardware features provided by La COOL Board.

How does it operates?

The default operating mode of La COOL Board is sleep mode, which uses the deep-sleep low-energy consumption mode of the ESP8266 (80µA). It is on by default and should be enabled whenever your board:

If you need a higher sample rate, you may want to deactivate it.

When in sleep mode, your COOL Board will run the following loop:

  1. read sensors values
  2. activate actuators
  3. log data (either locally or over the network)
  4. check for updates
  5. go to sleep for logInterval seconds

How can I contribute?

For minor fixes of code and documentation, please go ahead and submit a pull request.

Larger changes (rewriting parts of existing code from scratch, adding new functions to the core, adding new libraries) should generally be discussed by opening an issue first.

Feature branches with lots of small commits (especially titled "oops", "fix typo", "forgot to add file", etc.) should be squashed before opening a pull request. At the same time, please refrain from putting multiple unrelated changes into a single pull request.

How can I reach you guys?

If you encounter a problem, have some genius, crazy idea or just want to have a chat with us, please open an issue, a pull request or send us an email at team@lacool.co - we'd absolutely love to hear from you !

How do I get set up?

First steps

  1. Install Platform IO core

  2. Break out the sensor board and insert its pins into the main board header

  3. Connect the COOL Board to your computer and ensure you that your switch is in the LOAD position

  4. On a terminal, enter

    git clone https://github.com/LaCoolCo/LaCOOLBoard.git`
    cd LaCoolBoard`
    patch/patch.sh`
  5. Go to [www.lecool.menu], create an account and choose Join us

  6. Contact La COOL Co via mail (team@lacool.co) to ask for your certificate and private keys. We'll provide you with two files : privateKey.bin and certificate.bin

    • Save privateKey.bin in examples/WeatherStation/data/privateKey.bin
    • Save cerificate.bin in examples/weatherStation/data/certificate.bin
  7. In your terminal, type

    pio run -e prod -t uploadfs`
  8. Hit the RESET switch, then type

    pio run -e prod -t upload`
  9. Put the side switch back in RUN position & press the RESET button

  10. After a few seconds, you COOL Board LED should glow purple to signal that the onboard Wifi access point has started. You'll now need to:

    1. connect your computer (or phone/tablet) to the Wifi network named CoolBoard-XXXXXXXXXXXX
    2. open http://192.168.4.1 in your browser.
    3. click configure Wifi
    4. Select the Wifi network you want your board to connect to and enter its password

Configuration files

The COOL Board embedded software makes heavy use of the SPIFFS for storing its configuration and data files. Here is a description of the configuration files and keys.

coolBoardConfig.json

coolBoardLedConfig.json

coolBoardSensorsConfig.json

externalSensorsConfig.json

irene3000Config.json

jetPackConfig.json and coolBoardActorConfig.json

Note that coolBoardActorConfig.json contains only one actor.

mqttConfig.json

rtcConfig.json

wifiConfig.json