For this assignment I decided to design an app which applies to the double-sided PCB that I've made for my glasses. The PCB I created connects to a one-sided pcb that I soldered to a bluetooth module.
Following the videos instructions, I went to the MIT app inventor site, logged in using my google account, and I started off with a blank slate on the project page.
╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯
╭─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╮
Afterwards I continued to follow the tutorials instructions on what to add on to the app, although I changed a few things based on my own preferences (like the "color-wheel" and the phone display size since my phone is a bit bigger).
╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯
╭─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╮
When adding a bluetooth function in my app I had to use BluetoothClient instead of Bluetooth LE since the module that I'm using is an HC06
╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯
Coding/Programming my app
╭─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╮
For the programming half I was confused at first since everything was block-based, but after doing some research I found out that the MIT App Inventor site uses a block-based programming language which was developed on Google Blockly. On the side of the page the block options/commands are shown. Since I've never used this programming method before I'm following this helpful article, also since the code setup is already present in the article (the main part of my code which differs from the one set in the article is the bluetooth module). But this article not only shows the process but explains in detail what is happening which is why I found it very helpful.
╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯
╭─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╮
The code Once I finished coding I go back to the project section on the site and save my project app file. After saving my Colorpick app file, I generated a QR-code scan so I could download the app on my phone. In order to scan the QR code I had to first download the MIT app inventor app from the PlayStore on my phone. Once I open the app it gives me the option to scan my QR code.
╰─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╯
╭─━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━─╮
I finished downloading my app I opened the app, clicked on "Device" and connected my glasses to my phone via bluetooth/the app. Once I connected my glasses to my phone with bluetooth I was able to change the color of my glasses directly from my phone!