Skip to main content

Blynk Weather Station with XinaBox

Build your very own weather station and get weather updates directly to your mobile device! Astonishingly quick & easy build with ☒CHIPS.

Parts list

Qty Product Part number
1 Wi-Fi Core (ESP8266) 174-3701
1 XinaBox SW01, Advanced Weather Sensor Module for BME280 174-3744
1 XinaBox SL01, UVA / UVB Light Sensor Module for TSL4531, VEML6075 174-3738
1 XinaBox OD01, OLED Display 128x64 OLED Display Module with SSD1306 174-3718
1 XinaBox, USB Programming Interface Module for FT232R, IP01 174-3703
1 AVX SMT OPEN ENDED CARD EDGE 10W 174-4977

Introduction

This project was built using XinaBox xCHIPS and Arduino IDE. This 5-minute project allows you to receive weather data on your mobile device using an app called Blynk which also displays data on the OLED screen of the xCHIPS OD01. This useful project allows you to monitor the weather wherever you choose and get remote updates directly to your phone via the app. I decided to use xCHIPS because they are so user-friendly and eliminate the need for soldering or serious circuit design. I could also easily program the xCHIPS using Arduino IDE.

Step 1: Downloading the Libraries

  • Go to Github.xinabox
  • Download xCore ZIP
  • Install xCore into the Arduino IDE: Go to "Sketch", then "Include Library", then "Add .ZIP Library". As shown below:

screen_shot_2018-01-30_at_9_15_39_am_7pmlZRVXtD1_d5907851ba5d8c7f186f74a67a2708b7d5202486.jpg

  • Download xSW01 ZIP
  • Add the library in the same way as you did above for the xCore.
  • Repeat for the xSL01 and xOD01
  • You will also need to install the Blynk library so you can use the app. You can get it here
  • Before you can start programming you will need to ensure you're using the correct board. In this project, I make use of the XinaBox CW01 which is under ESP8266 Modules in the boards manager. You can download the board library here.

Step 2: Programming

  • Connect the IP01, CW01, SW01, SL01 and OD01 using xBUS Connectors. Make sure the xCHIPS' names are orientated correctly.

image_uLsK5a6MHR1_23abb461622ee6ccd3199462232df82949e12e9e.jpg

  • Now insert the IP01 and connected xCHIPS into an available USB port.
  • Download the code from the "Attachments" heading and open with your Arduino IDE. Put in your authorisation token, WiFi name and password as indicated.
  • Alternatively, you can create your own code using the relevant principles to achieve the same objective.
  • Compile the code ensuring there are no errors.

Step 3: Blynk Setup

  • Install the Blynk app free from your app store; now it's time for the Project Setup.
  • Before clicking "Log In" after entering your email address and password ensure your "Server Settings" are set to "BLYNK".

image_LqiEZ5B1t51_62cf2262a621355dbbe3c207396d44c59ecab751.jpg

  • Log in.
  • Create New Project.
  • Choose device "ESP8266"

image_MTCqG14Euz_4b0cc6178aeaf5ed883848534033873c831864d4.jpg

  • Assign a project name
  • Next, you should receive an "Auth Token" notification and also an email containing the "Auth Token".

image_s081SQEGCx_f41b50a479684237a4546abc03a988e84ce58856.jpg

  • Go to the "Widget Box"

image_FZ1MimoYvR_099ee2bc1b3365d3d1f53c0015363ee44b220422.jpg

  • Add 4 "Buttons" and 4 "Value Displays"
  • Next you need to assign the respective "Buttons" and "Value Displays" with their Virtual Pins as specified in the "CODE". To keep it simple, I used even numbers for the "Buttons" and corresponding odd numbers for the "Value Displays"
  • You can adjust this setup to suit your needs as you amend your code.

image_zWw0rTTdiE_d89df5cc202e037ab259604e76b5441baa7077e6.jpg

Step 4: Uploading the code

  • After successfully compiling in Step 2 (E.g. no errors found) you can upload the code to your ☒CHIPS. Make sure your switches are facing "B" and "DCE" respectively before you upload.
  • Once uploaded successfully, open the Blynk app on your device.
  • Open your project from Step 3.

image_uOQ7iV88ua_a40c0198f2cbdb4fbb43e5c6f4ba50ebefb8f5c7.jpg

  • Press "play", then play with the respective "Buttons" to display data in your app and on the OLED screen.
  • Your Blynk weather station is now ready to GO!

Downloads

Aspiring space scientist and engineer. Intern at XinaBox. Crazy about making electronics simple.