An open API service indexing awesome lists of open source software.

https://github.com/nating/any-craic

An IoT application to determine whether a room is occupied. 🔆🌐
https://github.com/nating/any-craic

Last synced: 5 months ago
JSON representation

An IoT application to determine whether a room is occupied. 🔆🌐

Awesome Lists containing this project

README

          

# Any Craic?

An IoT application to determine whether a room is occupied, by using an LDR to determine whether the lights are on or not.

## Overview

This is a project to stop me from trekking to a room to chill out with people when there is in fact nobody in that room. When there is someone in the room, the lights are turned on. The light in the room can therefore be used as an indication of occupancy. By hooking up an LDR to a Raspberry Pi running a webserver, I can always tell whether there is someone in the room by connecting to the Pi.

Sometimes, there are meetings in this room. When there are meetings, the people occupying the room do not want to be disturbed. A button can be used in order for the people occupying the room to indicate that they do not want to be disturbed, as well as LEDs to indicate the current *"status"* of the device to those in the room.

## Components

TODO: image of components

* Raspberry Pi 3
* 5x Male to Female wires
* Green LED]
* Red LED
* Breadboard
* Micro USB
* SB Power Adaptor

## Circuit Diagram

TODO: Add circuit diagram

## Casing

### Useful Links

* [Put Raspberry Pi on WiFi network](https://desertbot.io/blog/headless-raspberry-pi-3-bplus-ssh-wifi-setup)
* [Add multiple WiFi Networks to a Raspberry Pi](https://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks)
* [Connect to WiFi Networks with usernames](https://ubuntuforums.org/showthread.php?t=249654)
* [How to Spoof a MAC Address](https://blog.macsales.com/43777-tech-101-spoofing-a-mac-address-in-macos-high-sierra)
* [Using an LDR on a Raspberry Pi](https://pimylifeup.com/raspberry-pi-light-sensor/)
* [Using LEDs on a Raspberry Pi](https://www.instructables.com/id/Controlling-Multiple-LEDs-With-Python-and-Your-Ras/)
* [Using a button with a Raspberry Pi](http://razzpisampler.oreilly.com/ch07.html)
* [Raspberry Pi 2 & 3 Pin Map](https://docs.microsoft.com/en-us/windows/iot-core/media/pinmappingsrpi/rp2_pinout.png)
* [Creating a Raspberry Pi Case out of thicc cardboard](https://www.instructables.com/id/Design-Modelling-your-own-Raspberry-Pi-case-out-/)
* [Creating a Raspberry Pi Case out of thin cardboard](https://www.reddit.com/r/raspberry_pi/comments/2cqd69/raspberry_pi_b_case_made_from_paper/)
* [Installing Flask](https://pypi.org/project/Flask/)
* [Run a script at start up on Raspberry Pi](https://www.stuffaboutcode.com/2012/06/raspberry-pi-run-program-at-start-up.html)