Infinite Looping Sleep Sheep Hack

I made a simple alteration to the Sleep Sheep to make it loop forever instead of the 23 or 45 mins (this was a big problem at our house since our 1.5 yr old would wake up after the sheep stopped and demand we put it back on...several times a night). This hack did 2 things:

1) switch the battery input to a 3V regulated AC adapter source to do away with changing the batteries all the time

2) pick up on one of the buttons/switches (you can only choose one sound) and wire it to an Arduino LilyPad board to loop pressing the chosen switch every 40 mins to keep the thing going forever.

The wiring is simple (don't have a diagram). You need to open the SleepSheep module and rewire the DC input to connect it to an AC adapter and then add two wires to the little switch module for the sound you wish to repeat. You then also have to wire in 2 wires parallel to the DC input to power the Arduino as well (warning: the LilyPad only takes 2.7-5.5V DC input and will fry if you go outside those limits!!). See info sheet here:


See image for the wiring: DC input wires connect to the LilyPad (+ and - labeled on the board). Positive end of the switch connects to pin 11 on the LilyPad and the negative end connects to a ground (I picked up on the bootloader ground pin which is pin 6 I believe - you can check with a voltmeter that you get a beep across it and the negative DC input).

The code for the Arduino is as follows:

void setup() {

pinMode(11, OUTPUT);


void loop() {

pinMode(11, OUTPUT);

digitalWrite(11, LOW);


pinMode(11, INPUT);



That's it!! Enjoy :)

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Be the First to Share


    • CNC Contest

      CNC Contest
    • Teacher Contest

      Teacher Contest
    • Maps Challenge

      Maps Challenge

    3 Discussions


    2 years ago

    Great work, you inspired me. I just did something similar for a Cloud B Nighty Night Owl with a ATtiny85:

    1 reply

    Reply 2 years ago

    Thanks! I have actually since revamped this and now use Adafruit's 3.3V Trinket (, glued directly to the back of the Sleep Sheep with a cutout for the micro-USB port, where it gets powered by a cell phone charger. It's way less clutter and much neater than the previous solution, though the basic wiring and code remain pretty much the same. One of these days I'll get around to posting it up here. I have a few ATtinys at home, just waiting to get used, so I might just take a look at your setup :)


    3 years ago

    Very clever! Gotta do whatever it takes to keep the kiddos sleeping :)