somakeit / smib

1 stars 0 forks source link

Light level detection - SMIBHID #7

Open sjefferson99 opened 3 months ago

sjefferson99 commented 3 months ago

A way to remotely check via slack whether someone is in the space if perhaps someone forgot to press the space open button. Could also be used in future features to trigger space open button or prevent auto space closed from firing

Potential approaces: Camera takes picture light sensor checks lights (might not be useful in the daytime?) Motion sensor

sam57719 commented 1 month ago

@sjefferson99 getting conflicting results for whether I should use a resistor or not with the LDR - so I will leave this and have a chat with you on Wednesday if you are in.

FYI the LDRs I have are https://www.amazon.co.uk/dp/B00NXW9WZ6?psc=1&ref=ppx_yo2ov_dt_b_product_details

sjefferson99 commented 1 month ago

@sam57719 So you'll want to have a voltage divider setup with the LDR coming from 3.3v and another resistor coming from ground and the ADC sampling from between them. Without another resistor you would only be varying current which you can't measure directly on the pico.

I've sent you details of the resistor choice on slack.