With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
Hi Jason,If I understand your question correctly, what you probably need to do is use a pullup / pulldown resistor when connecting the door sensor. For example, if the door switch is connected to GND then you'd tie a 10k resistor between the IO port and +3.3v. Then when the door switch is open the resistor will pullup the voltage to 3.3 and when it's closed the switch will pull it to GND. If you don't use the resistor then the connection will float when the switch is open and will cause unpredictable results.If the switch is connected to +3.3v then you'd just do the opposite of the previous example!I hope that helps, let me know if you need any more info.
Great stuff. Thanks for the feedback :)
Garden Fireplace with Bench
Use Sublime Text 2 to Replace Arduino IDE
Giant 555 Footstool
Arduino Laser Engraver
ARDUINO By Myself Mini-CNC (Plotter)
Great tutorial,I love the fact a lot of the components are from old devices.. well explained too!Good work :)
Mini CNC machine Arduino Based & Adafruit Driver Motor L293D v1 & 2*Mini Stepper CD/DVD player #1
4 Axis Robot Arm DIY
Create a glass out of a wine bottle and how to engrave Jeep Logo.
easy glass bottle cutter made up of common parts [UPDATED... again]
DIY Pallet Sofa
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.