Welcome to the Cypress CYW920819 Embedded World Demo tutorial. In this tutorial we will be showing you how we made our Embedded World Smart House demo. We will be programming our Cypress EVB with a project that reads the sensors on the board and sends the data to the mobile app and to the Cloud. The app can control the lights in the smart house and can turn and off a fan to control the temperature around a set point. The .atmo file for this project can be found on our Forum Tutorials and Demos page
If you aren’t familiar with the CYW920819 kit, you can watch our Introduction video – https://www.youtube.com/watch?v=6ptu1gl_qNA
The EW demo project uses an Arduino to Click shield – https://www.digikey.com/product-detail/en/mikroelektronika/MIKROE-1581/1471-1341-ND/4976464
To give us a relay for the fan – https://www.digikey.com/product-detail/en/mikroelektronika/MIKROE-1370/1471-1080-ND/4495445
and an additional slot for the SHT Click, a Temperature and Humidity click. https://www.digikey.com/product-detail/en/mikroelektronika/MIKROE-2101/1471-1616-ND/6100142
There were convenient VCC and GND pins right by the Click Relay connectors, so I just put some short jumpers from them to the relay terminals and the wires to my fan.
Relay 1 on the Click board is used to interrupt the Voltage supply to the fan.
Opening the relay cuts the power, closing it supplies power for the fan.
In the Embedded plane, a single interval timer reads the onboard temperature sensor and the SHT Click. It then pushes these readings to the debug uart and BLE characteristics.
We also have some BLE Characteristics for controlling the fan and the lights – which is really just the LED on the kit.
In the Application plane, we have an interval timer reading the BLE characteristics and pushing that data to labels in the Mobile app as well as the cloud. We set a condition in the app to turn the fan on when the temperature level is reached and turn it off below that temperature. Those signals get sent via BLE to the kit. We also have a Slider to control the lights – also via BLE. As usual, we have added a background and some images to complete our App.
In the Cloud plane we take all of the readings generated in the App and add them to storage for display in the cloud.
You can now save and compile your project and program your kit. Use the steps in the Intro Video if you need help.
If you have a Terminal program set up, you should see the Temperature and Humidity readings refresh.
You can then open the Atmosphere App and Add a Device to open the Provisioner.
Your EVB Kit should appear and you can choose it and view your data.
Now that the EVB kit is connected to your phone, it will use the phone as a gateway to push data to the cloud.
You can now view the readings from the three different sensors and control the lights. If you add a heat source near the sensors – I use the fan output from my laptop – you will see the fan kick on when the temperature reaches the level set in the condition connector. Once it blows enough cool air over the sensor, it will turn off.
You can use the web interface to view your device and set up Dashboards to display your data.
For more information, please go to our website at www.atmosphereiot.com.
Thanks for walking through this tutorial and we’ll see you at the next show.