81

The SM-1 Project Part 5 & 6: Assembling and testing the #ikea #robot lamp #arduino

So, we finally have a working prototype of the lamp.

We have installed a base, a led lamp, 2 servos, a motion sensor, a noise sensor, and 3 axys accelerometer and an audio accesory capable of recording and playback of 4 different sounds (thanks to seeedstudio.com).

The working logic of the lamp is the following:

If Noise is detected:

  • Turn on lamp
  • Play audio#3 (i´m trying to sleep here!)
  • Make a sweep left – right – left movement witht he lamp servo (as a negative head movement).
  • Rest servos on 90 degreees
  • Turn off lamp

If motion is detected:

  • Turn on lamp
  • Move to the left side (base servo and lamp servo).
  • Play audio#2 (are you sarah connor?)
  • Move to the right side (both servos also)
  • Play audio#2 (are you sarah connor?)
  • Return to  rest position (90 degrees on servos)
  • Turn off lamp

If a change of hight is detected (with the 3 axys):

  • Turn Lamp on
  • Move to left
  • Play sound#4 (Get me down!)
  • Back to rest position (90 degrees)
  • Turn lamp off

I have many changes to make, a base lamp (i had one, but i burned all the leds on it as a mistake), also add an LCD 16×2 display, separate the power source for the servos, and many other ideas, but as a first versino of the lamp, i think it´s getting there.

Now it´s time to clean the code that is a mess!!!

@mrlndr

Related Posts

  • It´s alive!!!!! and it´s a SM-1 baby boy!!!! We have finally done it. The first working prototype. Born from the mix of the SM-1 Project Part 1 and SM-1 Project Part 2 posts. Thanks to this, we have the first working prototype of the SM-1 Project. Check this video to see it in action: http://www.youtube.com/watch?v=MpeGHvoA_gk  
    Tags: the, sm, of, to, and, seeeduino, servo, skynet, tutorial, led
  • The SM-1 Project Part 2: Installing the servo on the lamp: I have to be honest: this is my first time working with servos, but not the first time i modify this IKEA Lamp (check this mod for Iphone i made and which i use to record this video). Watch the servo working on the lamp:…
    Tags: the, to, servo, lamp, skynet, tutorial, ikea, diy, arduino
  • So, we have all our parts ready to make our SM-1 project (aka The Annoying IKEA lamp)... and what do we do now? Let´s play around with the Seeeduino board and the Grove Toy Kit sensors. Here is the video of the resulting components working together: (or The Rise of Skynet?) http://www.youtube.com/watch?v=w-XpnuF0v6g The different components…
    Tags: the, to, servo, and, skynet, sm, tutorial, audio, ikea, arduino

81 Comments

  1. Pingback: oyun oyna

Comments are closed.