Updates from February, 2011 Toggle Comment Threads | Keyboard Shortcuts

  • Alvaro Soto 9:41 pm on February 28, 2011 Permalink | Reply
    Tags:   

    Arduino Setup 

    BUTTON SETUP

    BELL SETUP

     
  • Alvaro Soto 12:36 am on February 26, 2011 Permalink | Reply
    Tags:   

    Arduino Code for a better Ring bell 

    We will go through this process in class just make sure your breakout board is ready to go!

    CODE FOR THE BUTTON (Ring the Bell)

    /*
    doorbell basic BUTTON!!
    by Rob Faludi faluudi.com
    */
    
    #define VERSION "1.00a0"
    
    int BUTTON = 2;
    
    void setup(){
      pinMode(BUTTON, INPUT);
      Serial.begin(9600);
    }
    
    void loop(){
      //send a capital D over the serial port if the button is pressed
      if (digitalRead(BUTTON) == HIGH){
         Serial.print('D');
         delay(10); //prevents overwhelming the serial port 
      }
    }
    

    CODE FOR THE BELL (Ring my bell)

    
    *
    doorbell basic DINGY!!
    by Rob Faludi faluudi.com
    */
    
    #define VERSION "1.00a0"
    
    int BELL = 4;
    
    void setup(){
      pinMode(BELL, OUTPUT);
      Serial.begin(9600);
    }
    
    void loop(){
      //look for a capital D over the serial port and ring the bell if found
      if (Serial.available() > 0){
        if (Serial.read() == 'D') {
            //ring bell briefly
            digitalWrite(BELL, HIGH);
            delay(10);
            digitalWrite(BELL, LOW);  
          }
        }
    }
    
    

    CODE TO CONFIRM FEEDBACK (BELLS)

    
    /*
    doorbell feedback dingy!!
    by Rob Faludi faluudi.com
    */
    
    #define VERSION "1.00a0"
    
    int BELL = 4;
    
    void setup(){
      pinMode(BELL, OUTPUT);
      Serial.begin(9600);
    }
    
    void loop(){
      //look for a capital D over the serial port and ring the bell if found
      if (Serial.available() > 0){
        if (Serial.read() == 'D') {
            //send feedback that the message was received
            Serial.print('K');
            //ring bell briefly
            digitalWrite(BELL, HIGH);
            delay(10);
            digitalWrite(BELL, LOW);  
          }
        }
    }
    

    CODE TO CONFIRM FEEDBACK (BUTTONS)

    
    /*
    doorbell feedback BUTTON!!
    by Rob Faludi faluudi.com
    */
    
    #define VERSION "1.00a0"
    
    int BUTTON = 2;
    int LED    = 11;
    
    void setup(){
      pinMode (BUTTON, INPUT);
      pinMode (LED, OUTPUT);
      Serial.begin(9600);
    }
    
    void loop(){
      //send a capital D over the serial port if the button is pressed
      if (digitalRead(BUTTON) == HIGH){
         Serial.print('D');
         delay(10); //prevents overwhelming the serial port 
      }
      
      // if a capital K is received back, light the feedback LED
      if (Serial.available() > 0){
        if (Serial.read() == 'K'){
          digitalWrite(LED, HIGH);
        } 
      }
      
      // when the button is released, turn off the
      if ( digitalRead(BUTTON) == LOW){
        digitalWrite(LED, LOW);
      }
      
    }
    

     

     
  • Behnaz Babazadeh 11:23 pm on February 24, 2011 Permalink | Reply  

    XBEE WIRELESS 

    SETTING UP A WIRELESS NETWORK WITH TWO XBEES

    X-CTU

    http://www.digi.com/support/kbase/kbaseresultdetl.jsp?kb=125

    COOLTERM

    http://download.cnet.com/CoolTerm/3000-2383_4-10915190.html

    1) DOWNLOAD X-CTU ON A WINDOWS OPERATING SYSTEM

    2) MAKE SURE THAT YOUR DEVICE MANAGER RECOGNIZES YOUR USB AS A COM DRIVER

    3) OPEN X-CTU AND MAKE SURE THAT THE COM DRIVER IS VISIBLE IN THE COM PORT WINDOW

    4) SELECT MODEM CONFIGURATION

    5) IDENTIFY WHICH X-BEE WILL ACT AS A ROUTER AT AND WHICH WILL BE A COORDINATOR AT (WRITE DOWN THE LAST LINE OF NUMBERS FROM THE BACK OF EACH XBEE )

    6) NOW IN MODEM CONFIGURATION, SELECT THE APPROPRIATE SETTINGS AND CLICK ON WRITE BUTTON

    • COORDINATOR AT (XB24-ZB  |  ZIGBEE COORDINATOR AT | HIGHEST VERSION NUMBER)
    • ROUTER AT (XB24-ZB | ZIGBEE ROUTER AT | HIGHEST VERSION NUMBER)

    7) NOW MOVE INTO TERMINAL PROGRAM SUCH AS COOLTERM, IF YOUR IN WINDOWS AND USING X-CTU, YOU CAN STAY IN THERE JUST CLICK ON THE TERMINAL TAB.

    8 ) OPTIONS -> LOCAL ECHO (TOO BE ABLE TO SEE WHAT YOUR DOING)

    9) PRESS +++ … DO NOT CLICK ENTER OR DELETE AFTER, SHOULD RESPOND WITH AN OK

    10) TYPE ATID + CLICK ENTER (RESPONDS WITH 0)

    11) TYPE ATID####   (#### – IS A PAN ID OF YOUR OWN NETWORK, RANDOM (0 – FFFF)) + CLICK ENTER

    12) TYPE ATDH 0013A200 +CLICK ENTER

    13) ATDL ########(THE LAST ROW OF NUMBERS ON THE OPPOSITE XBEE)

    BEHNAZ – BABA

    LEE  – E110

    VICTOR – a36a

    ALVARO – 1911

    LEIF – 928

    THOM – 3737

    CHRIS – DDB

    SCOTT -F2D2

    MINHO -1980

    HILAL – 1297

    OYLUM – 0308

    BREE – 3233

    ANDY – AA42

    YURY – ABBA

    14) IF YOU HAVE RECEIVED AN OK AFTER EVERY ENTR, ENTER ATWR (SAVE) + ENTER

    Here is what your session will look like:

    +++OK

    atid#### OK

    atdh 0013a300 OK

    atdl(opposite xbee) OK

    atwr OK

    15) IF YOU ARE HAVING TROUBLE, YOU CAN TROUBLE SHOOT BY REFERENCING BUILDING WIRELESS SENSOR NETWORKS CHAPTERS 1+2

    GOOD LUCK!

     
  • Chris Piuggi 11:24 pm on February 20, 2011 Permalink | Reply  

    Salty Sandwich 

    Salty Sandwich is an old mate, whose lived in the refrigerator for too long. He’s become old and crappy, and doesn’t really want you to visit, however he does want you to return the items you take.  Upon entering the fridge users and greeted with a dissatisfactory hello, if there return is short, salty sandwich, is happy you are returning something, if it has been a long time, he does not want to see you.

     

    Below are some snapshots of process.

     
  • Chris Piuggi 11:09 pm on February 20, 2011 Permalink | Reply  

    Toy Fair 

    Overal quite an experience, crazy place and so much to see.

    Really loved the fish, I mean it was just amazing seeing how realistic it was in the air. Brilliant.

     

     

     

     

     

     

     

    Another great, which I’m sure drove Yury nuts was the AR drones, my inner child was all about these things and I could see myself with one of these. Great implementation of the camera and ipad/ipod/iphone. Really interesting.

     

     

     

     

     

    Finally i really loved this crazy kit from some random japanese company. It contains a hydro and solar cells, which you can use to power small dc motors. I would love some of these sets.

     

     

     

     

     

     

    There was lots of other really great stuff there, but most people wouldn’t let me take any photos. Oh well, still quite enjoyable.

     

     

     

     
  • Alvaro Soto 7:46 am on February 18, 2011 Permalink | Reply  

    Love Coach 

    LoveCoach is a Relationship simulator targeted for young adults and above . It mimics the balance one must have when meeting somebody and after a relationship starts. “too much of something is never good”. It reacts to a light a sensor as light is is what nurtures the relationship, and reacts with sound and messages displayed on an LCD screen.

    A video and final photos will be posted soon…

    for more  about the process of making the enclosure go to my blog

    You can download the Code here

     
  • hilalkoyuncu 1:51 am on February 18, 2011 Permalink | Reply  

    larry-in the closet… 

    This is Larry, he lives in the closet but he wants to “come out”. He has 8 different states of emotion which would be triggered if certain(14 !!) scenarios are active.

    Larry has dementia, his memory  resets it self every 12 hours.

    He cannot stand to be out for so long because he is socially awkward. The user has to give him a balanced attention to keep him content.

    If he doesn’t get enough attention he cuts his wrists and blames the user for it.

     (More ...)
     
    • makingtoys 3:27 am on February 18, 2011 Permalink | Reply

      code goes into “read more” section of your post. please edit the post to that format.

  • hilalkoyuncu 1:28 am on February 18, 2011 Permalink | Reply  

    Toy fair 

    Even though they weren’t interactive the giant microbes were interesting to me because of my educational background. In the future I would like  to create electronically interactive biological forms.This was very inspirational to me.

    I liked geolovepalz, I think it was  smart in a was to engage kids in physical activities.

    I liked mugo because, it was simple and efficient, its a usb stick where u can store data and it also is a mp3 player. Its tiny and visually appealing.

     

     

     

     

     
  • Oylum 1:22 am on February 18, 2011 Permalink | Reply  

    Toy Fair Impressions 

    Toy fair was amazing, I wish I could have spent all day there! It was so colorful and lively, I got lost among all those tiny plushy creatures.

    I have 3 top toys or maybe I can say categories:

    1. Laughing plush animals

    They are laughing and rolling over crazily when they see someone. They really cheer you up, you just wanna laugh with them.

    2. Owl Night lamp – Smart night lamps
    I saw 2 types of smart night lamps for children, which are designed to teach time through color output. Actually, I was so glad to see them because I had a project last semester with the same concept (even better – huh!). Anyway, I really like smart toys that have specific purposes.

    3. Science kits – Solar robots or toys that teaches science

    I am really interested in toys for educational purposes. These solar robot kind of toys are powered by wind or solar power and they are made of Lego. It has the power to teach physics to kids as well as mechanics, math even aesthetics.

     

     
  • scottpeterman 11:03 pm on February 17, 2011 Permalink | Reply  

    Magic Mirror 

    Magic Mirror can offer validation (if you need to feel good) or motivation (if you need your butt kicked). It can tell if you are close or far away and will offer comments accordingly. Also, it knows if the lights are on or off. If they are on and you are not nearby, it will alert you to turn the lights off! It uses a bitmap image based on the Magic Mirror from Disney’s Snow White, which was created on the PC using Adobe Illustrator and Bitmap Converter and then stored as an array of hex values which are converted using the ST765 LCD library.


    (More …)

     
    • makingtoys 3:40 am on February 18, 2011 Permalink | Reply

      great concept. Great sound effects. If you 1)use a max of two words per screen & 2) make the text “face expressions” this project will transform.

      The text prompts would really be best as voice prompts. [In my view.] An iconic and graphic face with those cool sounds you have now, will make an R2D2 type experience. The user will be communicating with a mirror-bot, that has it’s quirky personality. At once and over time, the user learns to love and understand this cute little entity.

  • lpercifield 10:18 pm on February 17, 2011 Permalink | Reply  

    Mirror Buddy 

    Mirror buddy sits on the mirror in your bathroom and provides you with either motivation or appreciation depending on what you would like to hear. He detects how far you are away and make comments appropriately.

    Code HERE

     
  • lpercifield 10:13 pm on February 17, 2011 Permalink | Reply  

    Toy Fair 

    So I found the toy fair to be totally overwhelming. I might have been the cold… There were a lot of really creative ideas and a lot of things that were not so creative.

    Favorite things:

    AR-Drone

    “Swimming” fish balloons

    Science kit with fuel cell powered car

     
  • Oylum 10:00 pm on February 17, 2011 Permalink | Reply  

    Cigarette Box 

    The idea was to make a cigarette box for a person who wants to quit smoking. It contains the cigars in it so it detects each time you open the box to get a cigarette. Ideally, it would output how many times the box is opened, when it’s last opened (how many minutes passed since), a sad character if you open it too often, a happy character if you open it seldom. And it would play different sounds for different steps. One sound for 5th time, another more harsh one for 10th, harsher for 15 and a dying sound for 20.

    However, the code that I am using to output the the number of counter messes up all other sound codes. It happens so randomly that I couldn’t fix. Also, the smiley faces appear like blinking, I can’t clear the LCD screen after each shape because I need the counter and message to stay there.

    Now how it works: There’s a light sensor inside that detects if the box is opened or not. The LCD screen outputs the number of times the box is opened with a touchy message. It beeps each time you open the box, it beeps like an alert when you hit 5, 10, 15 times. There’s a smiley face in the beginning that welcomes, it turns into a sad face whenever you open the box and it turns into a laugh face when you do not open the box for a while. Right now, it’s 20 sec.

    Soldering the LCD and getting it work

    Outputting my own message on the screen

    Getting the message but not getting the graphic in the same screen

    Puff!!

    No! It’s not acceptable!

    Final look with flawed code

    At least I have the text and smiley in the same screen. Even if it’s ghost like sometimes.

    I was going to output a different message and sound each time the box is opened but couldn’t make it happen because the code that I’m using to output the integer into char is messing up the rest of my code 😦

    Here is the code.

     
  • Yury Gitman 9:41 pm on February 17, 2011 Permalink | Reply  

    Student Lectures/Workshops 

    2/24
    Team 1–> Chapters 1& 2
    Setting-up. Hello World

    2/28
    Team 2–> Chapter 3
    Building a Better Doorbell

    3/3
    Team 3–> Chapter 4
    Romantic Light Sensor

    3/7
    Team 4–> Chapter 5
    Sensor Networking, intermediate

    3/10
    Team 5–> Chapter 6
    Advanced Networking

    3/14 & 3/17
    Spring Break

    3/21
    Chapter 7 – Assignment

     
  • thisisvictorkim 9:26 pm on February 17, 2011 Permalink | Reply  

    “Sal” The Salty Sandwich 

    Salty Sandwich is what you would call a “Debbie Downer”.  Never satisfied and mostly complaining, Salt Sandwich (I named mine Sal), lives in the back of your fridge and acknowledges your visits to your fridge as well as if he hasn’t seen you in a while and if the fridge has been open for too long with indifferent and whiney beeps and boops.  Sal has no “purpose” other than to be that item in the fridge that no one really wants to acknowledge.

    (More …)

     
  • Thom Hines 8:26 pm on February 17, 2011 Permalink | Reply  

    Chauncy Bigglesworth, the Aristocratic Dog Food Dispenser 

    Playing off the idea of Lee’s Nom Nom trash bin, I wanted to make a creature that was similar in functionality, but when it came to character and personality, acted as a foil. Originally, I conceived of a recycling bin that, as opposed to a nom nom, wasn’t single-mindedly focused and primitive in his expressions, but rather was conscientious and thoughtful. It seemed especially appropriate considering the difference in the motives between throwing away something and recycling it.

    But this didn’t really jibe with me personally, and I also had the problem of my recycling setup at home wasn’t really conducive for making a stand-alone character that would convey it’s own individuality in an interesting way. So, this led me to look for other things that could act as a talking bin.

    Fortunately, after a bit of looking around, I realized that my dog’s food is kept in a contraption like Lee’s trash can, and the idea of a talking dog food dispenser amused me greatly. Not only does it do the opposite of a trash bin (it provides instead of consumes), I also really liked that it could potentially talk to my dog, who seemed to be the most interested in the beeps and boops that my arduino can make. Lastly, using an upper-class British character as a model for my creatures words (I was thinking of Stephen Fry), seemed much funnier and silly and ironic on a dog food dispenser than on a recycling bin, which came across as haughty and judgmental.

    Building and coding Chauncy was fairly straight-forward. My LCD screen came together pretty much right away, but unfortunately the anode wire of the LED backlight came out just after I taped the parts into their final position. This made it so that the light no longer came on when a new message was flash, but the plus side is that it probably saved my battery a good deal of juice.

    Here’s what the electronic components looked like:

    Chauncy's insides

    And here’s a sample of the early version working:

    In order to have Chauncy’s head on the outside, but the light sensor in the can, I had to use some wire wrapping wire to extend the photoresistor. With the low light in my kitchen, I had to attach it to the side but near where the ceiling light shined brightest.

    light sensor in a can

    And here’s the finished product!

    Chauncy message 2

    If you would like to see the arduino code, feel free to download it here.

     
  • Behnaz Babazadeh 8:04 pm on February 17, 2011 Permalink | Reply  

    Toy Fair 2011 

     

    Unfortunately, I was so distracted by all of the goods that I didn’t get to capture a few other cool toys, but I am sure they will make it on to the blog with everyone else’s posts.

    As you can imagine, I was excited to see a led ring 🙂 Although it was not as a great as the one I made last semester, it was still fun to see that the commercial industry is doing it.

    The kuzebot was neat, plush robots that are attached to a cause.

     
  • Behnaz Babazadeh 7:50 pm on February 17, 2011 Permalink | Reply  

    Week 3 Questions 

    Explain (in a nutshell) your code structure, logic, important, parts?

    The darkness loving owl prototype had the code structured in a case/switch structure allowing for us to manipulate the if/else statements to react based on the last situation. Was a little complicating for me to understand but I think we got a successful action.

    What did you do that you feel is new, non-obvious, and useful?

    I don’t think we did anything interestingly new per say, but the code can be useful in the future when working on something that reacts based on the last function or state that it was in.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel