Randomly appearing "door" mode and "reset while in motion"
Hi @terjeio I am observing "door" mode and "reset while in motion(while running a program file on table test, no devices attached" since quite a long time on my custom board with Teensy4.1. Initially I thought it can be due to EMI issues. My custom board are having optos for all inputs but I used to use common ground. Now to get rid of above problem, I redesigned my board with full isolation (grounds are also isolated), but I still getting above issues. I use internal pull ups only, no external pull ups given on my board and that works well for all other inputs. Now I started doubting codebase too. (e.g. those pins are actually not pulling up despite pull-ups are enabled by default). Any clues? Or any instructions for me to test specific things or more data to send? Cheers, Ravi
I use internal pull ups only, no external pull ups
The door switch is NO? That would leave the MCU input floating with little load to dissipate EMI into. First would be to try with NC for the switch, then add pullup resistor - or both. My design:
My diagram is as per following. DOORT is 24v door sensor which is high when door is open. Secondary side is controller pins.
Can you rewire to have DOORT high when the door is closed? If not add a resistor from DOOR to 3.3V.
Ok. Got it. How about "reset while in motion"? Actually I use Estop, so there is practically no pin having reset function because it is claimed by Estop. The input wiring diagram is similar to Door input.
How about "reset while in motion"?
Same. I may make the message more generic since it is used for both.