Skip to content

Notes and code from hack the house - #1

Open
kirahowe wants to merge 2 commits into
maison-notman-house:masterfrom
kirahowe:master
Open

Notes and code from hack the house#1
kirahowe wants to merge 2 commits into
maison-notman-house:masterfrom
kirahowe:master

Conversation

@kirahowe

Copy link
Copy Markdown

This is the firmware for the motion sensor/magnet sensor/led setup from hack the house Nov 11-13 and some notes about setting it up and where we found resources.

Next steps for this are:

  • making it work with the thermocouple temperature sensor that came with the maker kit (we were not able to get meaningful readings from it)
  • fix the delay(5000) call. We want to sound the buzzer after the magnet sensor has been apart for more than 5 seconds, but the problem with delay is that it freezes all other execution while it finishes.. so if someone pulls the magnet sensor apart for 5 seconds, the buzzer goes off, then they put the sensor back together, the buzzer will still ring for at least 5 seconds. The language has a millis() function that returns the number of seconds since the device booted that I was trying to use to manage the timing instead of delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant