This is a english edition of RaspberryPiとサーボモーターで家のドアをiPhoneから開ける
I needed a system which unlock the door from remote.
This is a instruction.
First, The regulator convert 6V to 5V and supply it to raspberry by USB. And 6V supplied to servomotor directly. signal line is connected servo motor to GPIO on raspberryPi. Also, RaspberryPi is online by LAN.
It is simple. just controlling the PWM.
But, I wanted to control it from my browser on iPhone. So, I made CWeb( Web framework for C lang ). By using it, It receives HTTP requests and decide to unlock and lock it. So, To unlock it, I just need a Browser. All source codes are on a github account. Easy to deploy. Just enter RaspbeeryPi and git pull. I have no static global IP, So I prepared dynamic DNS.
I 3d printed parts. Of course just fit.