Adaptive Environment (Dorm Automation)

Introduction: Adaptive Environment (Dorm Automation)

About: A Creative Technologies Major who is enrolled at Berry College.

This project is the start of my delve into automation. I chose the Raspberry Pi as the "brains" of this operation because the GPIO has so many different applications and the on-board WIFI/Bluetooth. My Intro to prototyping class challenged me to create a prototype that is human centered and in that I needed to be able to center the automation part of my project around an individual. This is when I had the idea of having a dorm room that can be personalized to a particular roommate. Overall, this project uses the Raspberry Pi and an RFID scanner to identify the individual and do a series of actions (turn on and off lights in this project) to personalize the room.

Step 1: The Tools and Supplies

The Tools

  • Things to run the Raspberry Pi (
  • Soldering Kit (
  • Rainbow Cable (
  • Crimping Kit (
  • Female Jumper Cables (
  • Command Stripes (

  • 3D Printer (Optional)

The Supplies

  • Raspberry Pi with Case and Appropriate Power Supply (
  • Wireless Card Reader (
  • Micro SD Card (
  • Wireless Switches (

  • 433MHz Transmitter and Receiver (

Step 2: Hardware

I started with the Clever Card Kit book and then watched the video above in order to connect the Pi to the RF Transmitter and Receiver.

Step 3: Wiring the Pi

The wires in this project can become a bit of a mess so I took this step to make it a bit more organized.

Step 4: The Code

Parts of this code come from the different resources within the instructable. It basically defines what device(s) goes with what person and then it goes into a loop of checking to see which card is being scanned (which person is interacting).

You should start by going through the start up part of the Clever Card Kit book and then drag and drop these files into the folder supplied by the book.

The two parts that would be changed from user to user would be the "ID ==" and the "os.system" lines. The first is where the ids of RF cards go [you can read the id using the clever_card_kit directory (folder)]. The second part needs to be given the codes that where explained in the "RF 433" video shown in the hardware step.

Note: The codes are blurred out in the images for privacy reasons.

Step 5: Running It!

I follow the procedure shown above in order to use the code without a display but find a place where it is easily accessible and use command stripes to attach it. The lights should turn on/off with the scan of a card. I look forward to expanding this project with more devices.

When testing, users loved how easy it was to use the scanner and said it reacted almost immediately. The only time where users differed in opinion was when it came to using a key card and some preferred the dongle (on keys or in wallet). So, before you go to order parts make sure to figure out what your users would use before ordering RF cards.

Be the First to Share


    • Big and Small Contest

      Big and Small Contest
    • For the Home Contest

      For the Home Contest
    • Make It Bridge

      Make It Bridge