The xChip CW02 uses ESP-WROOM-32 for Wi-Fi and Bluetooth functionality,that allows users to send data from XinaBox’s modular xChips to the cloud, 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 Gesture functionality, with future projects planned to demonstrate how the SL06 can also be used to recognise and sort objects by colour, or sense how close your hand, or another object is to the sensor. Like all xChips, the SL06 is interfaced through I2C.
By the end of this guide, you will able to publish simple numerical representation of Gestures (UP-DOWN) to Ubidots.Requirements
- 1x CW02 – WiFi and Bluetooth core (ESP-WROOM-32)
- 1x IP01 - USB Programming Interface (FT232R)
- 1x SL06 - Gesture (APDS-9960)
- 1x XC10 - 10-Pack xBUS Connectors
- Ubidots account
- Zerynth Studio
- Hardware Setup
- Setting up the Zerynth Studio
- The Code
- Verify and Uplink the code
Connect 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 Studio
- Download Install Zerynth Studio r.2.1.2.
Note: If you are not familiar with Zerynth Studio, please refer to the link: Downloading and Installing Zerynth Studio.
- With the Zerynth Installed, Connect, Register and Virtualize your Device
- 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 swipe your hand towards the SL06’s North or South, ‘up’ or ‘down’ is printed on the console screen and dots are printed until the status is updated on Ubidots with its numerical representation i.e. "1" represents "up" and "0" represents "down".
In this tutorial, we have learned how to monitor remotely the basic and simple Gestures anywhere on Ubidots. With XinaBox and Ubidots, you can make complex Gesture sensing to control/operate any electrical appliance! The tutorial is simple and can take up-to 10-15 minutes.