After a long two weeks of writing the code for Medicrate, it’s finally finished! Over the past few days I have been adding the last remaining variables and functions that are needing to make all of the different features in the product work. I have also been spending a lot of time implementing different additional features into the product, like redundancy’s that make sure that a medication dosage isn’t missed and additional timeouts buzzers that ensures that the user has consumed their medication.
This whole process has taught me a lot about coding in C++ and it’s helped me learn about a lot of different functions that are used to control the program. It has also taught me the importance of creating a detailed plan and strategy for writing large programs. The program I’ve written takes up over 4,000 lines of code and seems to be working pretty well after some final debugging. Although there may be different functions or options I can add to the product in the future, for the time being it is complete.
My next step will be disassembling the working testbench and implementing all of the electronic components into the redesigned control unit. If you want to find out more about this and the rest of my design process, then check out my other blog posts.