Introduction: Ghosty, a Smart Nightlight

Picture of Ghosty, a Smart Nightlight

To sleep, it's nice for a room to be really dark--no glowing leds and nightlights, but a little light would be useful for nocturnal bathroom breaks. Ghosty supplies some light only when you need it.

Ghosty will detect day and night using a photocell inside the 3d printed structure. An ultrasonic transducer is always watching for someone to pass by. If it's dark and you pass by, the ghost will illuminate. Ghosty will stay illuminated until 10 seconds after your next appearance (he wants you to make it back to bed), then he shuts off so you can sleep.

My wife, Annelle, molded the ghost using polymer clay. I scanned it and created necessary holes using a MakerBot scanner and TinkerCad.

Step 1: Parts and Schematic

Picture of Parts and Schematic

These parts will need to be arranged as shown in the schematic diagram.

1 × Arduino Uno

1 × 9 volt dc power supply for Arduino

1 × White led

1 × Photoresistor https://www.amazon.com/goeasybuy-Sensitive-Resist...

1 × Parallax Ping Ultrasonic Range Sensor

1 × 100 ohm resistor

1 × 30 K ohm resistor

1 × Velcro Brand White Tak Putty (or any other stick and release putty https://www.amazon.com/goeasybuy-Sensitive-Resist...

Step 2:

Picture of

This is the clay version of Ghosty and these 3d printable files are the outcome of Ghosty's scan.

Step 3:

Picture of

I wired these according to the schematic--using shrink wrap tubing to keep all conductive surfaces hidden.

Step 4:

Picture of

I place the Ping transducer in the head (friction fit) and duct taped the photocell and led assemblies inside the head.

Step 5:

Picture of

The wires from the head were connected to the Arduino.

Step 6:

Picture of

The 9 volt power supply cord was routed through the hole in the back.

Step 7:

Picture of

The 9 volt supply is connected to the Arduino.

Step 8:

Picture of

The sketch included operates Ghosty. The bottom plug (and the head) can be attached using the putty listed in the supplies. The head could be glued on for a more permanent solution.

Step 9:

Picture of

Of course the software could be modified so that Ghosty stays on only when someone is standing in front of his eyes. A smoke detector type buzzer could be attached to the led light pin also--it just depends on what you want Ghosty to do.

Comments

Build_it_Bob (author)2016-10-17

Hi Mike, nice work as always; thanks for sharing.

Build_it_Bob

Thanks, always good to hear from you! I created a bigger version of this as a Halloween 3d printed table . .

https://community.makezine.com/share/mike-rigsby/g...

Anirudh Ralhan (author)2016-10-10

Nice!! But I think it can be made more simpler by omitting the arduino, ultrasonic range sensor and photocell and replacing them with a transistor and LDR (light dependent resistor). Saves you from the hassle of programming.

About This Instructable

1,170views

11favorites

License:

Bio: I am an author and a maker. My current project is Santa's Shop. I'm working on a science fiction type book--more later. @EngineerRigsby
More by MikeTheMaker:Happy Gear TableHappy FaceJittery Servo Repair
Add instructable to: