During this week, the issues encountered with the output of the battery indicator system were carried forward and resolved through a troubleshooting process. The process involved carefully examining the code, reviewing the connections, and conducting various tests to pinpoint the source of the problem. After several iterations of troubleshooting, the issue was finally identified. It turned out that there was a minor wiring inconsistency that was causing intermittent interruptions in the communication between the OLED display and the microcontroller. I swiftly corrected the wiring and retested the system. This time, the OLED show consistently displayed the correct battery readings, providing accurate information to the user.
Buoyed by the successful resolution of the previous issue, I continue enhancing the mini-cleaning robot by incorporating an IoT feature using Blynk. The addition of Blynk would enable the robot to connect to the internet, provide real-time updates on the battery status, and notify the user when the battery was running low. I installed the Blynk mobile application and created an account to begin the setup process. Next, the Blynk library was added to the Arduino IDE, allowing seamless microcontroller integration. I did a new project by configuring the Blynk app with the library. The project was then linked to the mini-cleaning robot by generating an authentication token, which was used to establish a connection between the microcontroller and the Blynk server.
Once the setup was complete, I began programming the microcontroller to communicate with the Blynk server. This involved defining virtual pins within the code that would be used to send and receive data between the robot and the Blynk app. I implemented a condition within the code to check the battery level regularly to enable the battery notification feature. If the battery voltage fell below a predetermined threshold, the microcontroller would send a signal to the Blynk server, triggering a notification to the user's mobile device. Excited to see the IoT feature, I uploaded the code to the microcontroller and launched the Blynk app. The moment of truth had arrived. As the mini cleaning robot powered on, I monitored the Blynk app, eagerly awaiting updates.
Sure enough, as the battery level dropped to the predefined threshold, a notification promptly appeared on the Blynk app, alerting the user that the battery was running low. The information provided a timely reminder to recharge the robot, ensuring its continued operation and preventing interruptions during cleaning sessions. With the successful integration of Blynk and the implementation of battery notifications, the mini-cleaning robot has evolved into an innovative and user-friendly device. Users could now stay informed about the battery status in real-time and receive timely alerts when the battery needed attention. After going through the system development, The project was ready to make a positive impact, empowering users with reliable information about the battery's status and ensuring the efficient operation of the robot.
No comments:
Post a Comment