• 3 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 20th, 2023

help-circle
  • Great, good luck with that :)

    Another thing that comes to mind: for audio purposes another technique used in ring modulators for audio effects is to use a mosfet switch to mix the signal with a square wave. This has more byproducts than mixing with a pure sine, but is a lot easier to do. Since you are downconcerting, it should not matter at all if you use a square wave, since the byproducts will all be (higher-order) harmonics of the local oscillator, which you’ll filter out anyway.





  • It’s not completely stupid. One pissible issue: when the light level is around the threshold, slight variations (think: cloud passing by) will cause the relay to switch back and forth quickly. This can be solved with some additional parts (keyword: hysteresis).

    I would recommend using a microcontroller, it makes this problem easy to solve, plus you can have more logic to trigger the lights (eg time based).

    Another thing is turning off: if it’s purely based on light level, you need to make sure the sensor does not “see” any of the LED light, otherwise it thinks the sun is back up






  • You could probably increase the 82K and 10K resistors to be much bigger

    That’s what I thought initially, but this stackoverflow post dissuaded me. The argument there is that the measurement will be wrong, if the input current is not enough to charge the internal cap within the measurement period. But I’ve done some testing now, and measurements done with 820k and 100k agree well with what my voltmeter measures, so I’ll go with this solution!

    a fresh alkaline 9V battery is actually 9.6V or more, not 9V.

    Indeed! 9.6V * 10k/92k = 1.04V is still below 1.1V, so I should be fine in this case :)

    9V battery voltages droop noticeably when under load because of their high internal resistance. Make sure to measure under the same conditions.

    This is a good point!

    My firmware will be pretty monotonic though, basically:

    1. wake up
    2. measure battery
    3. measure some other sensors (the actual task of the device)
    4. turn on a transceiver, send all the measurements (including battery voltage)
    5. turn off transceiver & go to sleep

    So, the load should be always the same at step (2).