Rewired the room sensor to a Nano and removed the test button that would store values when pressed. Afterwards, the Bluetooth modules needed to be tested to ensure code was functioning properly after removing the button segments and making other adjustments.
Tested the integrity of data being transmitted via Bluetooth over varying distances ranging from 0-6ft away. This lead to the realization, regardless of distance, that every 10 or so transmitted values were either being sent as 0 or a lower value than what is being measured. The way this is being resolved is by sending the value over twice within quick succession and using the appropriate value for blinds adjustment. ]
The code needs to be tweaked as a separate, smaller issue is occurring now, where the first 3-4 transmissions from the room sensor are being sent as 0, and its not until a while later that the actual room value is being sent. This issue is separate from the one above because its caused by the systems delay timer. The value seems to be being measured and stored and that value is being sent when the delay is up, instead of it taking the measurement when the delay is up and just sending that value.
Hozzászólások