The Weather Station is an extremely simple and highly functional project that allows one to read Temperature and Humidity data for a given area. The Weather Station can be used to purely gauge environmental conditions, or it can also be used to trigger actions, such as turning on a fan, or sending text message alerts.
Round up the parts listed above and assemble them according to the following schematic:
From the DHT11, connect the VDD, Data, and GND pins to the 3.3V, GP0, and GND ports respectively.
To connect the 5V power supply to the Builder Base wire the VCC and GND terminals on the power supply, to the 5V and GND ports on the Builder Base respectively.
Pair the Builder Base
Now we want to pair the Builder Base with our Q-Server. In order to do so, go to the Homescreen of your Q-Server.
Next click on the lift side symbol labeled “Clients”. Switch to the “Unpaired” tab at the top middle of the screen.
You should see your unpaired Builder Base. If not, check if you have plugged in the power supply for the Builder Base. Now move to the three dots below “Actions” and click “Pair”.
Once your Client is paired, click the “Setup” button.
Now you can edit your Client. Give him a Name you want and also a location where you are going to use it. Hit “Save” when you finished.
Build the Firmware
Navigate to the Firmware Builder and select the “+ Create New” button on the upper left hand side of the screen.
Name your firmware “Weather Station” and hit create.
Now, select the “+ Add Hardware” button, add a Temperature device to the firmware. Name the device Temperature, and hit the “Add Hardware” button.
Select the Temperature device in your firmware to expand the configuration options.
For the driver select DHT11 and configure it as shown.
Next, select the “+ Add Hardware” button again, and add a Humidity device to your firmware file.
Select the DHT11 Driver from the driver dropdown menu, and configure it as follows.
Now, save your firmware file and upload it to your client!
Be sure to select the client that the relay circuit is attached to.
Hit upload, and wait for the firmware to finish uploading before mapping your application!
Build the App
To build the application you will need to navigate to your application page and select the “+ Create New” button.
Now, name your application and press the “Create” button. We named ours Weather Station.
You should now be on the app builder canvas. Using the search bar in the upper left hand corner of the canvas, find the Temperature hardware object and drag it onto the canvas.
Select the Temperature object, and navigate over to the properties panel on the right side of the screen. Change the name of the object from “Untitled” to “Temperature”, and then click the “Save Properties” button below.
Next, search for the Humidity hardware object and drag one onto the canvas.
Select the Humidity object and navigate to the properties panel. Change the name of the object to Humidity and save the property changes.
Again, using the search bar find the “Text” interface object and drag two of them onto the canvas.
Now, select one of the Text objects, navigate to the properties panel, rename the object to Temperature, and relabel the object “ Current Temp:”, and save the properties.
Select the other text object, rename it to humidity, relabel it “Current Humidity:”, and save the property changes.
Next, connect the Temperature and Humidity out ports to the In ports on the respective text objects.
Lastly, save your application!
Map the Hardware
Navigate back to your applications page and hit the start button next to your Weather Station application.
A list of the devices contained in your application will expand.
Now, select the Temperature object and map the Temperature driver to it.
Do the same for the Humidity object, but map the Humidity Driver to it.
Run the App!
Hit “Save + Run” and your application will start!
To turn the Outlet on and off you can do so through the Application interface on the dashboard. To navigate to the dashboard select the Dashboard button on the upper right hand side of the screen.
A list of the interfaces for your running apps will be presented.
Select the Weather Station App.
Now you can read the Temperature and Humidity readings on your dashboard!