futurebird
Published © CC BY-SA

Simple door sensor.

Spark core that tracks when and how long the door is open. Data are published to Ubidots.com, a web-based sensor data collection.

BeginnerFull instructions provided2,589
Simple door sensor.

Things used in this project

Hardware components

Spark Core
Particle Spark Core
×1
N.o./n.c. Magnetic Reed Switch
×1
LED (generic)
LED (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1
Generic Resistors
×2

Story

Read more

Schematics

layout

After assembling the wiring load the code into the Particle Core web interface.

The light should come on when the reed switch is open.

fritzing.org schematic

Link to Fritzing

Code

doorStatus

Code for the spark core that checks the state of a reed switch

Credits

futurebird

futurebird

2 projects • 5 followers
I'm a lecturer in mathematics at CUNY. (Bronx Community College)

Comments