I've used Stepper driver board that I've made in Output Devices Assignment and the Light Sensor board that I've made in Input Devices Assignment
I also used Bluetooth Module HC-05 to use it in interfacing with the Curtain.
1-The input is 12 v to the stepper driver.
2-the ground on the ISP of the driver board and the light sensor board are connected together with the ground of the bluetooth module.
3-the vcc (5v) on the ISP of the driver board and the light sensor board are connected together with the vcc of the bluetooth module.
4-the Tx of the Bluetooth is connected to the RX of the light sensor board.
5-the Tx of the light sensor board is connected to the
6-the stepper motor is connected to the stepper driver board.
I made this box to put my electronics part into it as it might be put outside the window and to arrange the connections.
it has two places of bolts in the bottom part.
I used double face tape to attach the boards on the wooden plate.
download solidworks files and DXFs of the box
This option was made to make the curtain close if the it's the morning.
And open the curtain if it's the night to make the fresh air go into the room.