Door Sensor with Arduino Nano Every

Make it play "La Cucaracha" when your door closes

Mar 7, 2020

13034 views

8 respects

Components and supplies

1

Buzzer, Piezo

1

Reed Switch, SPST-NO

1

Arduino Nano Every

1

SparkFun Solder-able Breadboard - Mini

1

9V Battery Clip

1

Male/Female Jumper Wires

1

9V battery (generic)

Apps and platforms

1

Arduino IDE

Project description

Code

Door Magnetic Sensor

arduino

Door Magnetic Sensor

arduino

Downloadable files

Door Magnetic Sensor

Open using Fritzing

Door Magnetic Sensor

Door Magnetic Sensor

Open using Fritzing

Door Magnetic Sensor

Door Magnetic Sensor (Screenshot)

This is a screenshot of the Fritzing program.

Door Magnetic Sensor (Screenshot)

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

can i connect 4 door sensor to this ardrino nano

enriquekirkpatrickc

2 years ago

You can, althougn it would imply longer cables and a bit more programming, but if you are determined, go ahead and tell me about it!

Anonymous user

2 years ago

Nice but I'm wondering How long takes drain of the battery ?

enriquekirkpatrickc

2 years ago

Not quick, but you can always use a phone charger or a solar panel if you have one. I didn´t have any of those so...

Anonymous user

2 years ago

Hi there, the schematic bears no resemblance to the photo

enriquekirkpatrickc

2 years ago

In the photo, instead of using the magnetic switch directly, I used a magnetic switch module, but since it was´t avaliable on Fritzing, I just used the normal one :)

Anonymous user

4 years ago

Nice but I'm wondering How long takes drain of the battery ?

enriquekirkpatrickc

2 years ago

Not quick, but you can always use a phone charger or a solar panel if you have one. I didn´t have any of those so...

Anonymous user

4 years ago

can i connect 4 door sensor to this ardrino nano

enriquekirkpatrickc

2 years ago

You can, althougn it would imply longer cables and a bit more programming, but if you are determined, go ahead and tell me about it!

IoT_hobbyist

5 years ago

Thank you for sharing. It is cheap solution. The alternative is using this door sensor: https://arduinogetstarted.com/tutorials/arduino-door-sensor-piezo-buzzer It looks neater.

enriquekirkpatrickc

2 years ago

Yes, but it doesrequire more advanced programming that I haven´t experimented yet (you can do it if you know how).

Anonymous user

2 years ago

nice but can you integrate rfid module with this

Anonymous user

5 years ago

Hi there, the schematic bears no resemblance to the photo

enriquekirkpatrickc

2 years ago

In the photo, instead of using the magnetic switch directly, I used a magnetic switch module, but since it was´t avaliable on Fritzing, I just used the normal one :)