I built this project using XinaBox xCHIPS, a generic 12V DC Fan, some generic screw down terminals, an Amazon Echo Dot, the XinaBox ZeroTouch app for iOS and the Arduino IDE. It is an hour project, that allows you to control a fan with your voice via the Alexa and via the Alexa app on your phone. I chose to use the xCHIPS because they eliminate the need for soldering and serious circuit design.
Step 1: Downloading the Libraries- Go to XinaBox on GitHub.
- Download the arduino-CORE ZIP.
- Install it into Arduino IDE by going to "Sketch," "Include Library," and then "Add.ZIP Library." As shown below:
- Download the Arduino-ZeroTouch ZIP.
- Add the library the same way as you did for xCore.
- Repeat for the Arduino-OC03.
- Before you can programme you need to ensure you're using the correct board. In this project I make use of the XinaBox CW01. You can download the board library here.
- Connect the IP01 and CW01 using an xBUS Connector. Make sure the xCHIPS' names are orientated correctly.
- Next you want to use some wire strippers to strip part pf the wires of the fan and power supply to that they can be screwed appropriately into the OC03 and terminal in a circular loop as seen below:
Method 1
- Insert your IP01 and CW01 into an available US port in your computer.
- Donwnload the zip file on the right of the screen. Open the.ino file in with Arduino in the folder.
- Make the changes to the file in Arduino as shown below:
- Compile to ensure there are no errors.
- Upload to the CW01.
- If you are an iOS user you can upload the xZeroTouch in the AppStore shown below. With this app you can Select the WiFi SSID and password without needing to reprogram the core if the network changes.
- Watch the GIF below to see how it works.
Method 2
- As a second option instead of uploading the code with Arduino you can download the xFlasher tool.
- After downloading the tool you can upload the Binary file from the zip folder you downloaded from the downloads section on the right. Below is a video of what uploading and provisioning the binary file could look like. The variable sof WiFi, switch name, etc is provided for in the provisioning.
- Install the Amazon Alexa app from your App Store.
- Create a Sinric account by following the steps found here.
- Follow the steps to add the Sinric skill to your Alexa app.
- Connect your OC03 to your CW01 as shown below:
- Ask Alexa to discover devices after you've made sure your CW01 is connected to the internet.
- She should find the device FAN if you haven't changed the name in the code.
- Now you can control the fan as shown in the video below:
13 projects • 8 followers
A student exploring the world of coding and IoT from a beginners' perspective
Comments
Please log in or sign up to comment.