Ran into some issues when attempting to parse the data send over involving MANUAL mode. The issue was resolved by running beginning and end markers on the data being sent over. The data received by the Arduino starts with C: and ends with "," followed by end of signal. Another issue encountered was string of MANUAL mode was not being sent completely, only partially. This was rectified by sending individual timers in succession with "," after each one. The timers were sent as: C:hh:mm:angle, individually. In the Arduino code, the data was parsed into a Struct with start/end time hours/ minutes, followed by angle of blinds [23]. Each timer was processed individually and added to the Struct with the capacity of 10 different timers [24]. Anything above can result in memory overflow and cause the MCU to malfunction. After several tests of timers set to 1 minute increments for each blind level, the Arduino code was tested in order to verify the functionality of the code. The MANUAL mode prioritizes start time of each timer according to current time. If there is a timer that did not reach end time, but the next timer was set. The new timer has priority to setting angle of the blinds.
Week 5: Update
Updated: Jun 18, 2024
Comments