sensebox / senseBox-bike-Arduino

Repository which holds the Arduino Sketch for the senseBox:bike
MIT License
2 stars 2 forks source link

Visualize upload states #8

Open johnjohndoe opened 2 years ago

johnjohndoe commented 2 years ago

Context

Proposal

goetzvr commented 2 years ago

When the upload is done, the box shuts down. So this is, at least for me, a good marker that the upload is done.

johnjohndoe commented 2 years ago

How do you know that the upload actually happened? How do you know that the box has shut down (light off)?

goetzvr commented 2 years ago

During the workshop they explained: If you leave the box idling on your desk it will search for the configured WiFI. When it is connected it will upload the collected data and then shut down or go to a deep sleep. You have to (hard) turn it off and on to restart the box.

johnjohndoe commented 2 years ago

True. I remember the explanation, too. Thank you for the code pointer.

I however would find it useful if I could recognize just by observing the device if an upload happens. Specially, the first time one becomes somewhat uncertain if it works. The WiFi credentials might have a typo. The only way to find out if the upload worked is to check the website. Thus, I would welcome a visual status feedback of the device a UX improvement.

Thiemann96 commented 2 years ago

I thought about this too but one thing kept me from actually implementing this.

The powerbank which powers the MCU demands a "minimum energy output". When this minimum energy output is not met the powerbank shuts off(Abschaltautomatik)) This way for example the powerbank would not overcharge your phone if it is at 100%. The senseBox only produces this minimum energy output with all sensors on and connected. So in order to give visual feedback that the upload was successful the box and all its sensors would need to be powered.

Now, one could implement a solution which gives visual feedback and then turn the box off after some minutes but not powering anything but the LED would not work here. In the end I decided instead of all the hassle that would come with implementing this, the visual feedback that the box turns off would be more straight forward and easier. I see your point though that some kind of feedback would be nice for the upload states.

Thiemann96 commented 2 years ago

How do you feel about a solution that lets the LED blinks for 5 minutes (according to the different color codes you mentioned) and then shuts itself off ?

johnjohndoe commented 2 years ago

Thank you for the explanation regarding the power bank restrictions.

[...] lets the LED blink [...]

... to visualize that the upload is taking place. I think this would already be an improvement. :heart: