Parts Parts Parts!
This weekend we received all of our parts needed to make our final prototype. We have our pcb, all of our components, and our ftdi programmer.
We will be soldering up our board all of Tuesday, loading our current code on it end of day if all goes as planned.
All of the hardware is fully controllable over bluetooth and we our happy with our state machine to control the mode of the device. We are still fine tuning our spin detection. What we have currently works, though it can always be better.
We have our communication flow as written below.
- User presses button within the app which makes a request to the device for a single data set.
- The data set is a string of integer separated by spaces and sent over serial by calling serial.println(dataSet).
- When the spinBit receives a request it will send the next available data set
- The app will receive and process the data set and send a response that indicates the data set was received.
- When the spinBit gets the response from the app it will delete the next available data set.
- If a request is made of the spin bit and there are no available data sets, instead of sending a data set it will send a message indicating there are no more data sets to be sent.
- The app will receive this message and display a message to the user.
We also have some simple visualizations built into our phone application to show the user their spin data in an interesting way.