Tagged: Xbee Toggle Comment Threads | Keyboard Shortcuts

  • Unknown's avatar

    Bree 5:09 pm on April 29, 2011 Permalink | Reply
    Tags: troubleshooting, Xbee   

    unbricking a xbee 

    Hey guys, I bricked another xbee and found this helpful little bit on Instructables
    1. Take the module out of the interface board.
    2. Connect the interface board to the computer.
    3. Open X-CTU make sure Baud Rate is set to 9600
    4. Go to “Modem Configuration”
    5. Put a check in the “Always update firmware” box
    6. Select proper modem from drop down menu,
    7. Select proper function set and firmware version
    from drop down menus.
    8. Click on the “Write” button. After a few seconds of
    trying to read the modem, you will get an Info box
    that says Action Needed. At this point, CAREFULLY
    insert the module into the interface board.
    9. You may get the info box again a short while after,
    just use the reset button on the interface board.

    Instructibles

     
  • Unknown's avatar

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

    Arduino Setup 

    BUTTON SETUP

    BELL SETUP

     
  • Unknown's avatar

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

    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);
      }
      
    }
    

     

     
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