SeedLabs-it / smartknob-firmware

Repository for the Smart Knob Firmware (Currently supporting Dev Kit v0.1)
Other
30 stars 5 forks source link

Proximity sensor / TOF #23

Closed carlhampuswall closed 9 months ago

carlhampuswall commented 9 months ago

Display brightness goes up on detection but if user interacts with knob and avoids the sensor brightness goes down, also goes down quite quickly should stay lit longer.

nicolabortignon commented 9 months ago

Was about to write the same thing. Thank you @carlhampuswall
We need to add 2 smoothing functions

On activation, we want the brightness to go up slower (probably a sine is good enough), and on the 'deactivation' we want to have a delay, and a smooth out.

If the problem still persist we might want to see what's the current threshold of proximity and increase it. Although from a bit of testing the sensor gets quite loose after 30/40 cm.

I'll give it a try later today

carlhampuswall commented 9 months ago

Change screen on time from 1s to 5s or more?

nicolabortignon commented 9 months ago

Yeah, I think that might sense. I'll do another round of work on this.

Basically I want to bring in the light sensor, and change the 'Dimmed backlight' based on the room light. I'll change the delay to dim to 5s, then.

nicolabortignon commented 9 months ago

30 solves this.