Iteration 4

 Iteration 4 of HRV project

 


Above is a diagram of the current infrastructure of the microbit HRV project.

  • A DFRobot Cloud Board is used in tandem with the main microbit to serve as the main master of the system. The Cloud Board gives the microbit extra functionality, letting it connect to the internet, enable MQTT IFTTT etc. Currently only a v1 board is being used for the project as we believe the MQTT functionality present in a v1 was removed in any v2 board.
  • A mobile phone is used as a hotspot for connecting the cloud board to the internet. During the development phase we found out that an Android hotspot works best while windows laptop hotspots and iphone hotspots work far too inconsistently to be used properly.
  • The project contains two piece of microbit code, one for the master cloud board and another for every microbit connecting to it sending information. The slaves communicate with the master using a radio group, thus not requiring any internet, while the master takes in the data of the slaves and sends it off to an MQTT broker. For most of the semester we spent the time working on the communication architecture, sending a roll value of the microbits to the master board, hoping that once everything functions correctly we can add HRV functionality to the slave microbits, letting the project go full circle.
  • One of the main things we aimed to achieve during development was to set up an MQTT broker which would work with our equipment. The code for the master microbit contains all the tokens and secret API strings for MQTT to be enabled, and it is during this process of development that we found out that v2 boards seem to not have proper MQTT compatibility.
  • The final piece of architecture present in the project is the MQTT client app, which was set up, connected to the MQTT broker allowing us to view and send data to said MQTT broker in real time, with the established infrastructure allowing the slave microbits to access specific data being sent to them via the MQTT app, and then displaying the data on their screen.

The main work made during this iteration was getting an MQTT broker working along with starting work on IFTTT code, below is hello world code made to check IFTTT compatibility with the DFRobot cloud board.


Comments

Popular posts from this blog

Iteration 2 | Jack | HRV Micro:bit Research

Iteration 5.2 | Lock In | Jack

Week 1: HRV Review