top of page

Door Sensor Window Changer

Screenshot 2023-05-15 133508_edited.jpg

Introducing the "Door Sensor Screen Changer" project: Transform your PC with a simple door sensor and Arduino setup. Experience automation like never before! 🚪💻✨ #Automation #Arduino #PCEnhancement

You can watch the following video or read the written tutorial below.

Component Required:-

1. Arduino Uno 
2. IR Sensor
3. Jumper Wires

Step-1:- Gather all the components that I have mentioned above.

Step-2:- Connect all the necessary components through jumper wires According to Circuit    Diagram

Add a subheading.png

Step-3:-Now, let's dive into the Arduino code. First Download the Arduino IDE (Link Given Below)

Step-4:- Paste the Arduino code that I have Given Below in the   Arduino IDE Make Sure that the board is Selected on Arduino Uno and Check The Port of the Arduino

Screenshot 2023-05-15 152834_edited.png

Step-5:- Upload the Code to the Arduino Board

Screenshot 2023-05-15 153509.png

Step-6:- For the PC Code, Download the VS Code (Link Given Below).

Step-7:- Download Python (latest version). Link Give Below

Step-8:- Go to the Extension tab(see the marked arrow)

Screenshot 2023-05-15 154704.png

Step-9:- Then Search For Python and install it.

Screenshot 2023-05-15 155216.png

Here is the Python Code - 

Step-10:- Install Some important Libraries For this project.

Go to the terminal and Type:-

Command:- pip install serial

Command:- pip install pyserial

​

Screenshot 2023-05-15 155727.png
this is terminal

Step-11:- Now check in which port your Arduino is connected(In my case its COM4)

​

Screenshot 2023-05-15 152834_edited.png

Step-12:- So change your Port(According To Your Port) in the Python Code. For Ex, If You are Connected to COM5 so change this code To COM5 

​

Screenshot 2023-05-15 154704.png

You can Also Change the URl 

​

Step-13:- Now it's Almost Done, So Attach the IR Sensor at an angle so that it can detect the moment of the Door. Like this:-

Screenshot 2023-05-15 133508_edited.jpg

Step-14:- Now It's All Done, So Now Connect the Arduino to your PC And run the Python Code. Now See if it is Working Or Not, If it is not working then Contact me:-

Gmail-

Instagram-

It is looking like this

Subscribe My Youtube Channel

LOGO_BLACK_BACKGROUNG.png

SciCraft

bottom of page