The xChip CW02 (ESP-WROOM-32 Wi-Fi and Bluetooth module) allows users to send data from XinaBox’s modular xChips to thecloud, and control device according to the obtained data.
The xChip SL06 uses APDS-9960 Gesture, Proximity, Ambient Light and Color sensor allows user to build smart appliance controlling. In this project we will explore Proximity functionality to detect how close an object is. We have made a short project tutorial on Remote hand Gesture sensing with Ubidots, with future project planned to detect change in Ambient light with Ambient Light sensing.
By the end of this guide, you will able to publish 10-bit proximity values to the Ubidots using XinaBox.
Requirements● 1x CW02 – WiFi and Bluetooth core (ESP-WROOM-32)
● 1x SL06 - Gesture(APDS-9960)
● 1x IP01 - USB Programming Interface (FT232R)
● 1x XC10 - 10-Pack xBUS Connectors
Step-by-Step1.Hardware Setup
2.Setting up the ZerynthStudio
2.Verify andUplink the code
4.Summary
1. Hardware SetupConnect CW02, SL06 and IP01 together using the XC10 xBUS connectors. You may connect it as shown in the diagram below. Please see this guide on how to assemble xChips generally.
Then connect your device and PC through the IP01’s USB.
2. Setting up the Zerynth Studio1. Download and Install Zerynth Studio r.2.2.0.
IMPORTANTNOTE: If you are not familiar with Zerynth Studio, please refer to the link: Downloading and Installing Zerynth Studio.
3. With the Zerynth Installed, Connect, Register and Virtualize your Device
4. Select XinaBox CW02 (ESP32) from the Device dropdown:
Make sure that the device is Connected, Registered and Virtualized.
Verify and uplink the code:
Look for the SL06, when you bring near, the hand/object the ubidots variable is updated with greater value until 8-bit limit (255) is reached, and when you move away from SL06 the value is decreased until 0 is displayed.
In this tutorial, we have learned how to monitor remotely Proximity values anywhere on Ubidots. With XinaBox and Ubidots, you can make Proximity sensing to control/operate any electrical appliance! The tutorial is simple and can take up-to 10-15 minutes.
Comments