To fabricate the gate i used Tinkercad software to build, test and simulate the electric circuit
Arduino IDE Software to upload the text code on the UNO board
Cardboard - Laser Cutted Cardboard Home - Tongue Stick - Glue Gun - Stationary tools
Electric Components (Arduino Uno - Servo Motor - IR Sensor - Breadboard - Jumpers - Adaptor 5V)
Firstly I used tinkercad to draw the circuit and simulate the result using the blocks coding included into the software and which provide converting blocks code to text one which could be used into Arduino IDE software directly
I used PIR sensor instead of IR sensor due to that I didn't found IR into tinkercad .. then connected it to the ground, 5v and signal ports same as servo motor all of that on a breadboard then connected them with the arduino uno
Then opened the coding board and used forever loop with if condition doing that " if the ir sensor pin is high (there is a signal) rotate servo motor on pin 3 to 90 degrees and if the ir sensor is low (there is no signal) turn the angle back to 0 degree ..
I tried the circuit & found that is works well so moved to the text code and took a copy of it
Then opened Arduino IDE software and started by selecting the arduino board type to e arduino uno and select the port number which was COM14 then paste the code from tinkercad into IDE
I checked the code validation using verify button then uploaded the code on the uno board
Using the electronics kit I used small breadboard, IR sensor, Servo motor, Arduino uno and jumbers to connect the circuit and trying the final code .. Finally I designned the home and the home gate and fixed the motor and servo in them places and used the house as an encloserr for uno & breadboard