Room Occupancy Counter

3,457

26

6

Introduction: Room Occupancy Counter

About: I am Paolo Reyes engineering leader in FRC and FTC team WinT 3794.

I am Paolo Reyes a Mexican that loves to create and make things. That is why I Made this Room Occupancy Counter.

Due to COVID-19 circumstances, I decided to develop this project to limit virus spread, by controlling the number of people that can be in a room at the same time.

So how does this works? I am using two ultrasonic sensors that provide real distance information to the next wall, door or object, and when someone crosses between that space, the sensors will detect it, and according to the order in the sensors readings, it will count as a person entering or leaving the room.

Supplies

  • Ultrasonic sensor (x2)

UltrasonicSensor

  • DHT11 Temperature and humidity sensor (x1)

DHT_11

  • Active Buzzer (x1)

ActiveBuzzer

  • LCD 16x2 (x1)

LDC16x2

  • Green LED (x1)

GreenLED

  • Red LED (x1)

RedLED

  • 10k potenciometer PT10-2(x1)

PT10-2_Potenciometer

  • Push button (x3)

PushButton

  • Arduino Uno (x1)

ArduinoUno

  • ON/OFF Switch (x1)

ON/ OFF_Switch

  • AC/DC Adapter (x1)

AC/DC_Adapter

Step 1: Remove DHT 11 and Arduino Connectors

Remove DHT 11 connectors and arduino uno female input .

Step 2: Making the Case

Print the case with a 3D-printer if you want a case. Otherwise you can test the device without a case on a breadboard or you can make a cardboard box... Just keep in mind that there has to be a hole for every component, I suggest to make one for the arduino as well to change or upload the sketch.

Step 3: Wiring and Soldering

Wire all components according to the circuit plan.

If you want to make the PCB-prototype version, then arrange the components like in the diagram and use wires to connect the components.

Step 4: Upload Sketch to the Arduino

Feel free to modify and play with the code.

Step 5: Use the Device

You can now put some glue or tape to add it on the wall and. LET THE DEVICE START WORKING!

1 Person Made This Project!

Recommendations

  • First Time Author Contest

    First Time Author Contest
  • Maps Challenge

    Maps Challenge
  • Fruit and Veggies Speed Challenge

    Fruit and Veggies Speed Challenge

6 Comments

0
Honaj
Honaj

6 months ago

Hi,

When I run the program I am getting this error:

12:29:00.110 -> wdt reset
12:29:00.110 -> load 0x4010f000, len 3584, room 16
12:29:00.110 -> tail 0
12:29:00.110 -> chksum 0xb0
12:29:00.110 -> csum 0xb0
12:29:00.110 -> v2843a5ac
12:29:00.110 -> ~ld



Do you know how to solve it?

Also do you know if I can run this on an ESP8266?

0
rimbangm27
rimbangm27

Question 11 months ago

Why , you need 2 ultrasonic sensor ?

0
Paolo Reyes
Paolo Reyes

Reply 9 months ago

To see if a person enters or leaves the room depending on which sensor detects first

0
rimbangm27
rimbangm27

Reply 9 months ago

okay , thank you

0
IgnacioR4
IgnacioR4

Answer 10 months ago

Hi RimbangM1, i think that maybe the author uses two sensors because if you use only one, you only know that a person has move, but you don´t know if that person walks in the room or out.