Inspiration

Being blinded by the bathroom lights late at night and a guarantee of another T-shirt.

Also, this fine product: https://www.youtube.com/watch?v=DJklHwoYgBQ

What it does

Detects motion, turns on a laser and logs the time in a database.

How we built it

Python, CockroachDB, a Raspberry Pi 0, an ESP8266 breakout chip, a PIR sensor, a bit of hubris, and most importantly, a laser.

Challenges we ran into

Cockroach DB does not seem to be supported on ARM32 (it least not without compiling from source which would take hours), it looked like we could get it to work with cloud hosting of the database, but none of the mentors had any experience with it. We ended up reading documentation and having to switch to distributed devices so we could host the database on a PC. Unfortunately this cost us time we'd planned to use to make a visualization dashboard for the data collected, but we learned quite a bit.

Accomplishments that we're proud of

Rapidly pivoting to support microcontrollers and MQTT rather than abandoning CockroachDB and going back to SQLite which we're used to.

What we learned

How to set up a connection to a "remote" SQL database. Configuration for CockroachDB.

What's next for ToiLaser

Getting bought by Google.

Slack link that idk where else to put

swamphacks-vii.slack.com/team/U01LL0NF30C

Built With

Share this project:

Updates