Hi Readers,
I am working on a project where a door gets opened and closed by two actuator assemblies, one on each side. This actuator assembly has a brushed motor with encoders and the shaft that extends (for opening) and retracts (for closing). The microcontroller that controls these door actuators need to see the door being closed and latched at the time the microcontroller wakes up. Otherwise, the microcontroller doesn't execute any door command. So I am looking for a solution where the controller is able to detect any position of the door (besides closed and latched) when microcontroller wakes up from sleep.
Solution 1
Q1. To register the last know state of the door and the door angle before NBCM goes to sleep. If so, in which memory of microcontroller this last known state will be stored?
Q2.How much memory will be required to store one of 4 possible states (Fully Open, Fully Closed & Latched, Fully Closed but not latched, Open) of the door? along with door angle which is the range of 0-90 degree.
Solution 2
What would be other way that allows the controller to know any door state without having the controller store the door state in the memory before going to sleep?
I am working on a project where a door gets opened and closed by two actuator assemblies, one on each side. This actuator assembly has a brushed motor with encoders and the shaft that extends (for opening) and retracts (for closing). The microcontroller that controls these door actuators need to see the door being closed and latched at the time the microcontroller wakes up. Otherwise, the microcontroller doesn't execute any door command. So I am looking for a solution where the controller is able to detect any position of the door (besides closed and latched) when microcontroller wakes up from sleep.
Solution 1
Q1. To register the last know state of the door and the door angle before NBCM goes to sleep. If so, in which memory of microcontroller this last known state will be stored?
Q2.How much memory will be required to store one of 4 possible states (Fully Open, Fully Closed & Latched, Fully Closed but not latched, Open) of the door? along with door angle which is the range of 0-90 degree.
Solution 2
What would be other way that allows the controller to know any door state without having the controller store the door state in the memory before going to sleep?
Last edited: