ArdyNT
Full Member level 2
- Joined
- Nov 6, 2012
- Messages
- 126
- Helped
- 7
- Reputation
- 14
- Reaction score
- 7
- Trophy points
- 1,298
- Activity points
- 2,304
I can dim/brightening AC lamps by implementing the concept of phase firing angle. Zero crossing circuit is used to give external interrupt into the uC so that triac firing can be done accurately. Now, I want to integrate it with some motor stepper to open/close the blinds.
In this case, blinds(stepper motor) will have higher priority than the lamps. For example, if the light intensity is decreasing below the predetermined set-point, first, the motor will turn to open the blinds. If it is not enough yet, then the lamps will ON brighter and brighter till the set-point is reached. If only by opening the blinds is enough, then the lamps don't need to be ON. The principle is something like this.
For now I can also control the steps of the motor. The problem is I just don't know how to combine both of them into one to work synchronously. I have the code but first I want some suggestions of what I should do to mix them.
Any helps will be very appreciated.
Thank you.
In this case, blinds(stepper motor) will have higher priority than the lamps. For example, if the light intensity is decreasing below the predetermined set-point, first, the motor will turn to open the blinds. If it is not enough yet, then the lamps will ON brighter and brighter till the set-point is reached. If only by opening the blinds is enough, then the lamps don't need to be ON. The principle is something like this.
For now I can also control the steps of the motor. The problem is I just don't know how to combine both of them into one to work synchronously. I have the code but first I want some suggestions of what I should do to mix them.
Any helps will be very appreciated.
Thank you.