Posts

Showing posts from March, 2024

Blog 4 - Micro: Bit to MQTT Codebase & IFTTT

Image
  Monday class 4/03/24 Got MQTT working with android Hotspot The class also had trouble looking at data that was being printed to the makecode website because JSON messages would cut off or lose characters. In order to get around this Putty was used to view the serial comms. In order to see this data at a faster rate than the web browser the Serial option of putty has to be selected along with two other variables: The comm port the Micro bit is on. This can be found by going into windows "device manager" and selecting the ports drop-down menu in this instance it is USB Serial Device (COM12).  Speed/baud rate being changed to match the clock of the micro bit, in this case it is 115200. [1] Example setup Once this PuTTY is configured correctly you can start a new serial window and watch as the Microbit serial writes data. Rotation data being serially printed in PuTTY   Monday Class 11/03/24 New features: Made Functions to reduce code quantity. I Reduced the amount of repeat...

Iteration 4 | IoT Apps | Eric Butler

Image
  IoT Apps - Connecting Microbit to Cloud, MQTT & IFTTT MQTT Architecture Diagram For our system, we will be using DFRobot Cloudboard V1, Microbit V2, Mobile Hotspot (Android - More info below), Beebotte MQTT Broker as well as IFTTT App to connect our Microbits to a mobile hotspot, then to a MQTT server, Which will connect to our app with configuration. This allows us to have communication between multiple microbits at one time. Issues Found Having all these devices communicating and connecting to each other as well as servers wasn't without its issues. We had spent multiple classes debugging and recognizing issues, and figuring out what worked and what didn't.   A main issue we ran into was the hotspot not working which is an integral part of our system. This was a frustrating time but it definitely got us into the mindset of not just saying "it doesn't work" and more saying "it doesn't work because..." and solving the issue. After some time of ...

Iteration 4 | Jack | Cloud, MQTT, IFTTT

Image
 Iteration 4 - Cloud, MQTT & IFTTT MQTT Architecture Above is a custom diagram I made of the MQTT architecture / design pattern we'll be using for our project. I'll explain in detail the function of each step. The  DFRobot Cloud Board v1  is the heart of our system.  Compatibility Issues The first week of this iteration was plagued with issues. Frustrating as it was, it was a great learning experience that helped us identify certain issues, what causes them, and of course how to solve them. Having a broad understanding of a plethora of potential problems is vital, allowing for efficient dealing of said problems in a demo scenario. Probably the biggest issue we encountered was related to the WiFi hotspot. Of the 7 of us in the class, 6 have iPhones and only 1 had an Android. After a significant amount of time and frustration, we discovered that the Cloud Board v1 couldn't adequately maintain connection when connected to an iPhone hotspot. We're still not fully sur...