Motion Module
![main1.jpg](/proxy/?url=https://content.instructables.com/FMH/UL80/GV0KKPSV/FMHUL80GV0KKPSV.jpg&filename=main1.jpg)
The motion module is the most complex photocoupled device used in Simple Bots. It basically is a light switch coupled with a motion sensing nightlight. When someone in its general area moves, this triggers the sensor, turns on the light, and causes the bot to move. This is a simple way to start adding more complex behaviors to your bots and have them respond to their environment.
Go Get Stuff
![1A.jpg](/proxy/?url=https://content.instructables.com/FPT/T2M9/GV525IY2/FPTT2M9GV525IY2.jpg&filename=1A.jpg)
You will need:
- Motion sensitive nightlight (battery operated)
- Simple Light Switch
- Electrical tape
- Motion sensitive nightlight (battery operated)
- Simple Light Switch
- Electrical tape
Drill
![2A.jpg](/proxy/?url=https://content.instructables.com/F63/ZQ29/GV4W3648/F63ZQ29GV4W3648.jpg&filename=2A.jpg)
![2B.jpg](/proxy/?url=https://content.instructables.com/FTZ/QM9Y/GV525IY7/FTZQM9YGV525IY7.jpg&filename=2B.jpg)
Drill a 1/4" hole in the protective lens directly above one of the night light's LEDs.
Insert and Glue
![3A.jpg](/proxy/?url=https://content.instructables.com/FI8/4GJ7/GV0KKPSO/FI84GJ7GV0KKPSO.jpg&filename=3A.jpg)
![3B.jpg](/proxy/?url=https://content.instructables.com/F1P/1V9Y/GV7CY2YQ/F1P1V9YGV7CY2YQ.jpg&filename=3B.jpg)
Place the light switch face down into the hole such that the lens of the switch aligns with the lens of the LED.
Hot glue it in place.
Hot glue it in place.
Cover
![4A.jpg](/proxy/?url=https://content.instructables.com/F40/VIFH/GV0KKPSQ/F40VIFHGV0KKPSQ.jpg&filename=4A.jpg)
![4B.jpg](/proxy/?url=https://content.instructables.com/FUH/J4QM/GV525IYR/FUHJ4QMGV525IYR.jpg&filename=4B.jpg)
![4C.jpg](/proxy/?url=https://content.instructables.com/FJ0/D8FZ/GV2OKTS1/FJ0D8FZGV2OKTS1.jpg&filename=4C.jpg)
![4D.jpg](/proxy/?url=https://content.instructables.com/FBS/O1C5/GV525IYU/FBSO1C5GV525IYU.jpg&filename=4D.jpg)
Cover the entirety of the night light's lens with black electrical tape, to black out any ambient light from the room.
Remove the Cover
![5A.jpg](/proxy/?url=https://content.instructables.com/F0V/ER28/GV4W365C/F0VER28GV4W365C.jpg&filename=5A.jpg)
![5B.jpg](/proxy/?url=https://content.instructables.com/F07/YM1K/GV2OKTS3/F07YM1KGV2OKTS3.jpg&filename=5B.jpg)
![5C.jpg](/proxy/?url=https://content.instructables.com/F8K/IF46/GV4W365G/F8KIF46GV4W365G.jpg&filename=5C.jpg)
There should be a fresnel lens covering the PIR (motion) sensor. This should appear to be a plastic honeycomb material.
Remove this lens, to expose the PIR sensor.
Remove this lens, to expose the PIR sensor.
Hack the Sensor
![6A.jpg](/proxy/?url=https://content.instructables.com/FZW/CLM6/GV525IZ2/FZWCLM6GV525IZ2.jpg&filename=6A.jpg)
![6B.jpg](/proxy/?url=https://content.instructables.com/FTH/UJ8E/GV5JF450/FTHUJ8EGV5JF450.jpg&filename=6B.jpg)
The sensor should appear to be a round metal tube with a shiny square in the middle.
What you really want to modify is the light sensor which is located next to the motion sensor. The light sensor should look like a flat disc with interwoven teeth on it or a clear LED (like our own simple light switch).
The light sensor is what allows the motion sensor to know that it is nighttime and should activate. We want the night light to always think it is nighttime. In order to do that, we need to cover the light sensor with electrical tape.
What you really want to modify is the light sensor which is located next to the motion sensor. The light sensor should look like a flat disc with interwoven teeth on it or a clear LED (like our own simple light switch).
The light sensor is what allows the motion sensor to know that it is nighttime and should activate. We want the night light to always think it is nighttime. In order to do that, we need to cover the light sensor with electrical tape.
Reassemble
![7A.jpg](/proxy/?url=https://content.instructables.com/FSV/JGDK/GV525IZ3/FSVJGDKGV525IZ3.jpg&filename=7A.jpg)
![7B.jpg](/proxy/?url=https://content.instructables.com/FEO/0KIP/GV4W365P/FEO0KIPGV4W365P.jpg&filename=7B.jpg)
Put the fresnel lens back on and it should now be good to go.
Remember that the longer lead from the simple light switch should go towards the positive side of the circuit and the shorter lead should go towards ground.
Remember that the longer lead from the simple light switch should go towards the positive side of the circuit and the shorter lead should go towards ground.