Hey,
I am using a Teensy 3.5 to drive a motor with encoder. As the encoder is not absolute I am saving the current position to the eeprom every time I completed a movement. If the teensy is powerded up, the eeprom is red and the position is known. But if during a movement the power is shut down, the idea is not working anymore. The teensy is powerded with 5V. And I want to detect a voltage drop, then stop the motion and write to eeprom before the power is down.
How do I detect a voltage drop? And will there then be enough time for writing to the eeprom? Or do I need a cap to give me the required extra time after shut down?
Thanks
I am using a Teensy 3.5 to drive a motor with encoder. As the encoder is not absolute I am saving the current position to the eeprom every time I completed a movement. If the teensy is powerded up, the eeprom is red and the position is known. But if during a movement the power is shut down, the idea is not working anymore. The teensy is powerded with 5V. And I want to detect a voltage drop, then stop the motion and write to eeprom before the power is down.
How do I detect a voltage drop? And will there then be enough time for writing to the eeprom? Or do I need a cap to give me the required extra time after shut down?
Thanks