Closed se-bastiaan closed 2 months ago
Maybe it helps ... gurkenflieger wrote the Arduino code for the original project and also faced the issue of not working voltage dividers. He then sent some initial reset commands to the potentiometers and voila, everything worked fine. I made a measurement series about accuracy of the threshold with the fix and it was quite good:
For the gain I also successfully measured a complete series after the fix. CH1 is before the comparator U6 and CH2 is after the comparator. Here just a few gain values ... If you need more, let me know.
thanks! maybe i should try some repeated resets when I have time
it's certainly weird, before i reflashed Saturday morning everything worked fine for two weeks or so. Now I don't see anything coming in at all
Seems like the problem is the reading, same happens with the original firmware. And I've got the events working so 🤷
Not entirely sure yet what is going on here but the resistance for the two MCP4017 chips should not be the same. Turning around the two writing operations does result in the latest value written however.