Intel Bunny Smart Doll : Guest & Intruder Notification

by Orion Maker in Circuits > Gadgets

6108 Views, 87 Favorites, 0 Comments

Intel Bunny Smart Doll : Guest & Intruder Notification

intel bunny cover resize.jpg
Screen Shot 2558-11-04 at 11.45.25 AM.png
Intel Bunny Smart Doll (Intel Edison)

Hi evert everyone, this is my first Instructable on this website! For this project, I turned a normal Intel Bunny doll into a smart doll using an Intel Edison.

This Intel Bunny Smart Doll can detect people and react to them and if someone is an intruder, it will tweet to warn you!

This project is quite easy for people who are just starting to learn about Intel Edison and Javascript programming because I just started to learn it too. lol

If you're ready. Let's Start!!!

Materials

IMG_1180.jpg

I got all materials from a local makerspace but I think the easiest way for most people is to order everything from Ebay.

  1. Intel Bunny Doll (You can use any doll you want but you have to adapt it)
  2. Intel Edison and Arduino Breakout Board
  3. PIR motion sensor
  4. MAX7219 dot matrix module
  5. Dupont wire M-F 30 cm
  6. Dupont wire M-F 20 cm
  7. Heat shrink tubing
  8. Enclosure 10.4*14.9*5.7 cm^3 (Again you can use your own enclosure)
  9. M3 screws (I'm not sure for this one, I tried to use them but eventually used screws from another Intel Edison kit instead)

Prepare Edison and Your Computer

Screen Shot 2558-11-02 at 6.35.16 PM.png
Screen Shot 2558-11-02 at 6.34.39 PM.png

This is the basic setting up before you can use Intel Edison. You can find a very helpful guide on the Intel website. It quite easy to follow their instructions. I think it better than mu instruction if I were to write it. lol

You can find more information about setting Edison's name, password (it's necessary for SSH), and WiFi on the Sparkfun website.

SSH to Intel Edison

SSH First time.png
SSH Second time.png
SSH problem.png

This step will help you upload and control your Intel Edison without a USB cable. And again you can do it by following the instructions on the Sparkfun website.

Sometimes I found an error when I tried to connect SSH. The solution is in the picture.

I use SSH through terminal for running the program and config for Edison. And I used Cyberduck to upload the program to Edison.

Install Libraries for Running the Program

Screen Shot 2558-11-02 at 6.40.20 PM.png
Screen Shot 2558-11-02 at 6.40.31 PM.png
Screen Shot 2558-11-02 at 6.41.02 PM.png
  1. Connect to your Intel Edison by typing "ssh root@xxx.xxx.x.xxx" in Terminal (Replace x with your Intel Edison IP) Enter and follow the steps on screen. More detail in SSH step.
  2. Install Johny Five. type "npm install john-five" For more detail about Johny Five, please visit their website.
  3. Install Twit by typing "npm install twit" And to see more information about Twit, see here.
  4. Install Johny Five plug-in for Intel Edison Arduino Breakout Board by typing "npm install johny-five edison-io" and about this one, see here.
  5. Now!!! Your Edison's ready for running Intel Bunny program.

Problems and Solutions

  • In step 3, An error that I found was "npm ERR! fetch failed: https://registry.npmjs.org/..." somethings like this. For this problem type "npm config set registry http://registry.npmjs.org/" and reinstall Twit. More detail about this, see here.
  • In step 4, I found an error about gyp but I don't know what exactly it was. You can fix it by typing "npm install -g node-gyp" and reinstall the plug-in again. For more information about this, see here.

Prepare Doll Components

IMG_1148.jpg
IMG_1151.jpg
IMG_1150.jpg
IMG_1152.jpg
IMG_1142.jpg
IMG_1149.jpg
IMG_1143.jpg
IMG_1124.jpg
IMG_1125.jpg
IMG_1126.jpg
IMG_1127.jpg
IMG_1128.jpg
  1. Connect long Dupont wire to PIR motion sensor. PIR motion sensor has two adjustable parameters, delay time adjust and sensitivity adjust. Delay time is how long the sensor sends a signal after it's triggered and sensitivity is how sensitive the sensor is. I set the delay time to minimum and sensitivity near minimum but you can adjust both parameters as you'd like.
  2. Solder two dot matrix together and connect the long Dupont wire at the end of the dot matrix module (See more details in pictures. In this step I just show how to position it and did not solder it because when I did this step I did not take a photo so this is just a mockup of how it will look).
  3. Make a Y - connector for two V pins (from PIR & dot matrix module) because on the Arduino Breakout Board there is only one 5 V pin. (See more on how to make it in the pictures).

Note : If you're not sure if everything is OK you can check it by running a program before assembling everything in the doll. Also, please label the wires.

Prepare Intel Bunny

IMG_1146.jpg
IMG_1145.jpg
IMG_1147.jpg
IMG_1153.jpg
IMG_1155.jpg
IMG_1157.jpg
  1. Open its back (Poor doll but surgery will make you smarter.) If you use another doll you have to find your own way to put the components in it.
  2. Remove an appropriate amount of stuffing in the doll to place the dot matrix module into position as shown in the picture.
  3. Wire to back of doll and put stuffing back into the doll.
  4. Connect short Dupont wire to the wire that is coming out from doll's back.
  5. Close the hole that you opened. For me, I used a binder clip because I have plans to improve it in near future. You can sew it or make a zip here for easy maintenance

Note : Please label the wires.

Make Edison Case

IMG_1130.jpg
IMG_1133.jpg
IMG_1134.jpg
IMG_1135.jpg
IMG_1139.jpg
IMG_1140.jpg
IMG_1137.jpg
IMG_1138.jpg
IMG_1141.jpg

I used enclosure 10.3*14.9*5.7 cm^3. You can use the same as me or another you want.

  1. Drill 1/8" hole for holding the Intel Edison in the box.
  2. Drill 1/4" hole for wiring.
  3. Drill 3/8" hole for power supply jack.
  4. Put Intel Edison into the box and attach it.

More detail in pictures.

Matching Body & Brain Together

IMG_1156.jpg
IMG_1158.jpg
IMG_1160.jpg
IMG_1161.jpg
IMG_1162.jpg
IMG_1163.jpg
IMG_1164.jpg
IMG_1166.jpg
IMG_1168.jpg
IMG_1167.jpg

It's time for connect your Intel Edison to your Intel Bunny. Let's Go!!!

  1. Wire every wire from the doll and PIR motion sensor through the hole on the case.
  2. Connect The Y - connector to 5V pin.
  3. Connect the pin from the PIR motion sensor to the Arduino Breakout Board.
  4. Connect the pin from the dot matrix module (pin from the doll) to the Arduino Breakout Board.
  5. Close the case and fasten screws securely.
  6. Place the PIR motion sensor where you want it.

More details in pictures.

Setting Intel Bunny Program

Screen Shot 2558-11-02 at 3.56.18 PM.png
Consumer key.png
Access token.png
Screen Shot 2558-11-02 at 4.09.25 PM.png
Screen Shot 2558-11-02 at 3.16.12 PM.png
Screen Shot 2558-11-02 at 6.12.56 PM.png
Screen Shot 2558-11-02 at 6.10.30 PM.png
Screen Shot 2558-11-02 at 3.17.10 PM.png

There are many variables that you can change but just a few of them that you have to set on your own.

  1. Open "intelBunny.js" using Text Editor. I suggest ATOM. It is a nice text editor for programming and it's Free!!!
  2. Enter your Twitter consumer key and token. If you didn't have one, click and select "Create New App".
  3. Set your timezone and time that you want to put your smart doll into "intruder mode" (Burglar alarm).
  4. Edit your text that you want your Intel Bunny to tweet to you.
  5. You can set your own connection pin as you want. (Optional)

Downloads

Upload Program to Intel Edison and Let's Rock!!!

IMG_1179.jpg
Cyberduck1.png
Cyberduck2.png
Screen Shot 2558-10-21 at 8.50.33 PM.png
Screen Shot 2558-11-02 at 7.10.27 PM.png
IMG_1360.jpg
  1. Connect your doll to a power supply.
  2. Connect your Intel Edison by SSH with Cyberduck and Terminal.
  3. Upload "intelBunny.js" with Cyberduck.
  4. In terminal type "node intelBunny" for running the program.
  5. You may adjust the PIR motion sensor parameters. (Optional)
  6. Done!!!!!

Addition

  • Sometimes when you power up your Intel Edison again. Edison will connect to your network with a different IP but you can guess what it is because it usually changes only a little -- for example: your old IP might be xxx.xxx.x.102 and you new one may be 100 - 104.
  • If you want to stop the program press "control + c" twice.
  • If you want to shutdown you Intel Edison type "shutdown now" and press enter.

Final

IMG_1357.jpg
  • Thank you to my friends who helped teach me about basic javascript and helped me edit my first Instructable.
  • Thank you in advance, to everyone who shares important information about this project to help improve it.
  • Thank you for visiting.

If you like this cute Intel Bunny Smart Doll, please vote for me.

; )