I'm creating a car for train layout that will read and transmit the track voltage via WebBLE. The main challenge is making the voltage reading precise and sensitive enough that it can be used to detect dirty track segments. There are number of reasons to rule out hall effect sensors that we don't need to go into here. For other reasons, a 1:1 transformer has been ruled out for isolation. My circuit design skills are primitive so I turned to ChatGPT as a way to start thinking about it. To my surprise, after several iterations, it did come up with a schematic. The approach it used was to shift the signal instead of rectifying it. The circuit also uses a more accurate A/D than the one on the esp32. The voltage range of interest is 0 to 16 volts A/C. Despite the typos, I can follow most of the schematic. Here are the two most confusing parts (for me at least). 1. I think the role of the D2 and D3 (Schockty) are supposed to be clamp circuit -- are these correctly wired? 2. Since there's no isolation, ground must be carefully considered. Here my confusion is regarding Track_Ref/Digital_Gnd -- is this just where Track Return and Gnd are connected together? You will find other misspelled and confusing things in this diagram but I think I'm okay with these.



