dektronics / printalyzer-timer

F-Stop enlarging timer and print exposure meter
24 stars 6 forks source link

Rework power supply scheme for the meter probe #65

Closed dkonigsberg closed 2 months ago

dkonigsberg commented 3 months ago

Extensive testing has shown that the root cause of all the issues which have led to #56, #60, and #64 may actually be related to the meter probe itself. This realization was arrived at because these particular USB glitches only seem to occur when testing with the meter probe. They do not seem to occur with any other USB peripherals, including the evaluation board for the controller IC (FT260) used in the meter probe.

First, some basic issues were noticed, which should be addressed:

Bodging around these two issues in bench testing did improve resistance to one of the easier power transient tests (lamp transformer on unfiltered AC supply), but did not help against the more difficult tests (AC motor or EFT generator). Regardless, implementing these changes is a good idea.

Then, upon further inspection, the likely root issue was noted. The meter probe runs the FT260 I/O voltage at 1.8V, based on the example on page 34 of the FT260 datasheet. This was done because the TSL2585 sensor needs 1.8V, and results in everything on the surrounding board running at 1.8V. This includes the sensor, EEPROM, push button pull-up, and various FT260 pin pull-ups. This also likely means that the margins on the power rails and many of the pins are now rather small, and could be a lot more sensitive to glitches.

So the plan is to switch to a new power supply configuration, which is a much closer match to how the breadboarded version of the meter probe works:

This is essentially how the breadboarded version of the meter probe is configured, using the FT260 evaluation board and a dedicated breakout board for the TSL2585. Testing has shown that the breadboarded version is mostly immune to the power glitch. (it only fails on a repeated burst from the EFT generator, not normal pulses, which is more of a lab test than a real world transient, and one that can likely be handled in software.)

dkonigsberg commented 3 months ago

A new version of the meter probe with this change has been constructed, and is performing far better in initial tests. This issue may be closed shortly, pending a little bit more testing.

dkonigsberg commented 2 months ago

Updated (Rev F) meter probe with these changes is performing much more reliably. There really isn't that much more that can be tweaked here, so closing this issue for now.