The SmartEverything Home Automation utilizes the different sensors onboard the SmartEverything development board. The temperature sensor acts as the thermostat, the humidity sensor for the dehumidifier, and the ambient light sensor for automatically controlling the light system.How it Works
The program works by checking the pre-defined threshold values for each sensor. It will trigger a corresponding action if the sampled data is lower or higher than the pre-defined threshold data. The gen4 HMI display acts as a monitor and interface to users.
- 4D Arduino Adapter Board
- SmartEverything Fox Board module
- 5-Way Cable
- Relay module (preferably at least 3 outputs)
- External 5V Power Supply or uUSB-PA5 with mini-USB cable
- Open the Arduino IDE, then go to the Tools tab, select the Boards then the Boards Manager.
- On the drop-down menu box select “Arduino” and then choose the “Arduino SAMD Boards”, select the file and install.
- Then go back to the drop-down menu box, select “Partner” and choose the AMEL-Tech Boards, select the file and install.
- Once the installation is complete, connect your SmartEverything development board and it should be detected the PC under the “Control Panel”.
- Go to Sketch and hover over the “Include Library” to select the “Manage Libraries” this will prompt a pop-up window.
- On the pop-up window, select the “Type” drop-down menu bar and select “Partner”.
- Install all the necessary libraries related to the SmartEverything Board so you do not encounter any error or missing libraries.
The SmartEverything Libraries include:
- SmartEverything HTS221 by Seve - Library code for HTS221 Capacitive digital sensor for relative humidity and temperature.
- SmartEverything LPS25H by Seve - Library code for LPS25H MEMS pressure sensor.
- SmartEverything LSM9DSI by Seve - Library code for LSM9DS1 iNemo intertial module.
- SmartEverything NFC NT3H1101 by Mik - Library code for NXP NT3H1101 a NFC_i2C Module.
- SmartEverything SE868-AS by Seve - Library code for the Telit SE868-AS GPS System.
- SmartEverthing SIGFOXLE51-868 by Mik - Library code for the TELEIT LE51-868 a SIGFOX Module.
- SmartEverything VL6180X by Mik - Library code for the Ambient Light and Proximity sensor from ST component.
For more information regarding the SmartEverything Development Board, you can download the user manual using this link.Implementation (Loading the Graphics & Codes)Step 1: Build
Build the circuit as shown in the diagram. Please note that the SmartEverything Board is built as a low-power device. Therefore, it cannot power-up the gen4 HMI display alone. You must need an external power supply and follow the schematic diagram.
- Download the project file here.
- You can download Workshop 4 IDE and the complete code for this project from our website.
- Open the project using Workshop 4.
- You can modify the properties of each widget.
- Click on the Compile button.
Note: This step could be skipped. However, compiling is essential for debugging purposes.Step 4: Comp’n Load
- Connect the display to the PC. Make sure that you are connected to the right port. Red Button indicates that the device is not connected, Blue Button indicates that the device is connected to the right port.
- Now click on the “Comp’nLoad” button.
- Workshop 4 will prompt you to select a drive to copy the image files to a uSD Card. After selecting the correct drive, click OK.
- The module will prompt you to insert the uSD card.
- Properly unmount the uSD Card from the PC and insert it to the uSD Card slot of the display module. The image below must appear on your display after completing the steps above.
- After inserting your uSD card to the gen4 display, the graphics will be immediately loaded.
- Open the project using the Arduino IDE. Make sure you have already downloaded/installed/added the necessary drivers/tools/library for the SmartEverything Fox module by following the “Implementation" using the SmartEverything dev board for the first time.
- Change and configure the settings on the “Tools” Tab.
- Select the correct Communication Port.
- Click on the “Upload” Button to compile, debug and load the code to the SmartEverything Fox module