Home

Lev’s Status Report for 04/02/2022

This past week I worked on the integrations between the hardware and the software. I first had to update the Electron desktop app to use a different framework so that it could integrate with the bluetooth. I then added bluetooth scanning and connecting to the electron app. There was some difficultly with getting electron to work with Linux and Bluetooth. I subsequently attempted to connect the Arduino to the Electron App. I believe that I got them to connect but the bluetooth module immediately burned out. We now have to attempt to integrate via Serial (usb cable) for the time being and then attempt to get bluetooth to fully work. This next week I plan on finnishing the integrations and working with David on the smart contract integrations. I am mostly on schedule but have to put some extra work in to catch up on Bluetooth integrations.

Austin’s Status Report 4/2/2022

This week I worked on bluetooth transmission. I found a java script that can receive bluetooth signals on windows laptops and was able to send and receive data to/from the arduino board. After proving that the example from the internet worked, I worked on implementing this in our arduino code. Sending data was pretty easy. However, receiving data proved to be quite complex since the data is sent one character at a time. It was very difficult to get the Arduino to process each character into a string. I kept getting an empty string or a string with just one character. Eventually I was able to do get the entire string after searching for a “\n” at the end of the string.

In other news, I did not solder our heart rate sensor very well and it broke on Wednesday. We ordered 2 more. Hopefully, they will arrive before our interim demo.

Lev also told me that our bluetooth module stopped working and we placed an order for 5 more. I will attempt to also secure one from another group.

My plan for this week is to clean up my arduino code and help David and Lev with integration with smart contracts.

David Status Report 03/26/22

This week, I fully wrapped up the react app on the front end and is ready to integrate with the other parts of the project. I created three main components that we will see on the front end. First is the home page which allows us to see how many tokens and sessions we have. This page will also lead us to a login page if we do not have any credentials inputted yet. This page will also allow us to start a pomodoro session. In the log in page, the user is able to input their user id and password and log into their own account. In the session page, the user will be able to monitor their heart rate, movement, and sound, and also the time that has elapsed.

In the coming week, I will be working closely with Lev to integrate the different components together so that we will be ready for the demo.

Austin’s Status Report for 03/26/2022

This week my goals were to get the HR sensor and Bluetooth transmission working.

First, I decided to modify my code from last week to take the magnitude of acceleration in order to determine the overall acceleration and to account for the acceleration due to gravity.

I wrote the code to package the data for bluetooth transmission. Testing the bluetooth transmission was quite difficult. There were many tutorials online that involved using a phone app to receive and send bluetooth data to the arduino. I was not able to find an app on the apple app store that could easily identify the arduino’s bluetooth chip. All the apps listed the chips UUID and since there are hundreds of bluetooth devices in the vicinity at any point on campus it was impossible to determine which UIUD was associated with the Arduino. I found a tutorial this afternoon that used a Windows PC to communicate with the Arduino. I was able to acquire a windows PC tonight but have not had a chance to test it out.

The HR sensor code writing was relatively smooth. Soldering the wires on to the sensor was pretty difficult though since the sensor is so small.

My current goals for this week are to work with my teammates to integrate the arduino with the desktop app. David has not updated me on his progress with the desktop app so this goal is assuming that the desktop app is complete. If the desktop app is incomplete, I will help him to finish the desktop app so it is ready for integration.

Team Status Report 3/26/2022

This past week we each continued working on our respective parts so that we can get to integration as fast as possible. We figoonished up the frontend part which is not linked to the smart contracts. The smart contracts are also ready to be integrated with the frontend. We are mostly on schedule but need to put in a good bit of work integrating the frontend and smart contracts.

Lev’s Status Report for 03/26/2022

This past week I have expanded upon the smart contract testing as well as found a few bugs. For example, there was a bug with data storage on the blockchain that testing caught. I then debugged and fixed it. Moreover, I started outlining how integration will occur. I also attended the ethics sessions as well as grabbed the parts which were delivered. Overall, we are mostly on schedule but need to work hard to get integration in on time.

David’s Status Report for 3/19/22

This week, I worked on the desktop application. First I set up a github repository and added some docs on what the desktop application is going to include, then I looked into building basic functionality including the structure of how the application will communicate with the Arduino and the smart contracts.

I will work closely with Austin for the connection with Arduino and Lev for the smart contract connections.

Furthermore, our heart rate monitor has finally arrived from Ukraine, and we will look into integrating it with the arduino.

Team Status Report 3/19/2022

This past week we continued building out each of our respective components while helping each other debug. Lev made decent progress on the smart contracts, Austin hooked up the Arduino to the sensors and was able to get measurements. David has been getting the desktop app GUI ready. Otherwise, we ordered a few spare parts, due to concerns with using an ECG sensor for the heart rate. We are currently on schedule. For next week, we each hope to finish our respective individual component parts so that we can start integrating them together. I.e. we will connect the smart contract and desktop app and the Arduino with the desktop app.

Lev’s Status Report for 03/19/2022

This week, I worked on the smart contracts. I first set up the repository and added the outline defined in our design doc. I then wrote some basic unit test to help guide the development process.

From there I wrote out the start and stop pomodoro function as well as functions to get the current state.

The repository can be found on Github. Up next is to write more thorough tests and then deploy the contract. I subsequently will work with David to integrate the smart contracts into the desktop app.

Also, I ordered a heart rate sensor and radio reciever for the Arduino on Amazon this week.

Currently, I am on schedule.

Austin’s Status Report for 3/19/2022

This week I worked on the code to pull acceleration data from the arduino and on the ethics assignment.

Interpreting the acceleration data proved to be a bit difficult. All of the code samples I found online for how to use the sensors were incomplete.  The acceleration data was sent to the Arduino’s analog inputs using a scaled voltage. The first code sample I found only read the scaled voltages and did not apply any manipulations to the voltages, so it was confusing when I was getting readings in ~300-400 range. It required a bit of data sheet digging to figure out how exactly the scaled voltage corresponded to an acceleration measurement. After writing the code to map the range of voltage values to force in G’s, I noticed that the G force was a bit off. I expected 1G due to earth’s gravitation field but I was getting ~0.7g. I used a calculator to verify that my mapping equation was correct and that I just needed to recenter the mapping so that the voltage mapped to 1G instead of 0.7g.

I am a bit behind schedule. The ECG sensor and HR sensor didn’t arrive until Friday, so I was not able to start working on the code to pull data off the ECG sensor/HR sensor.

Next week, I will work on writing the code to pull HR data off the HR sensor and work on writing the code for BT transmission to the desktop application.