schematic amended, and I’ve worked out how to fit the extra diodes/resistors (I think) by using the other side of the board
Can someone suggest a wattage or part number for the 18v zenner?
Cabling is domestic 1 sq.mm. twin and earth. Changing that is too big a job
I’m fitting sockets for chips
I hope 1n4001 are OK, I’ve got loads, but Scottky aren’t that expensive (1N5817, 1A 20V) if they would be better. FWD volt drop 0.45V, which isn’t a lot better than 1n4001
At the far end of a track section there is another 1k resistor across the track, so if unoccupied there is nominally 2.5V at the Arduino input, if there is a train there will be 0V, and if there is a broken connection there is 5V. With the added 100 ohm resistor these values become 2.62V, 0.45V, 5V, so I’ll just adjust the ranges to suit. The usual reason for broken connection is that the track maintenance crew forget to put the jumpers back between rail ends when they’ve been messing about
Not had any problems with leakage across sleepers, which are plastic. The aluminium rails quickly develop a coat of oxide, and rain water isn’t that conductive anyway.
Thanks to everyone who has contributed
