Show Posts
Pages: 1 ... 4 5 [6] 7
76  Forum 2005-2010 (read only) / Interfacing / Re: Quick Xbee question (Lilypad Xbee) on: September 12, 2010, 12:17:32 am
After many frustrations and way too much time reading about the troubles of unbricking an xbee, this is what worked for me:

Note: I used my USB Explorer breakout board for the Xbee.

1. Take the Xbee out of the interface board.
2. Connect the interface board to the computer.
3. In XCTU 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.

You may have to do it several times before it takes.
I had to do it about 3 times on mine.

There is also this video that was recommended by a developer at DIGI.  You'll see it's essentially the same process.

77  Forum 2005-2010 (read only) / Interfacing / Re: Quick Xbee question (Lilypad Xbee) on: August 31, 2010, 10:05:47 am
thanks guys, I'll try to unbrick it after consulting good ol' google.
bummer to wake up to this news! :/

I'll post what worked.


78  Forum 2005-2010 (read only) / Interfacing / Re: Quick Xbee question on: August 31, 2010, 02:37:29 am
Here is my error in XTCU:

Getting modem type.... Ok.
Programming modem.... Lost communication with modem.
Writing parameters....Failed.
79  Forum 2005-2010 (read only) / Interfacing / Quick Xbee question (Lilypad Xbee) on: August 31, 2010, 02:32:12 am
So I'm new to the Xbee, and I was configuring it using XTCU but I made a mistake when setting the parameters.  SO....I tried to reconfigure it and I'm getting "failed" messages.  Once it's configured, is that it?  never again to be adjusted?  Tell me it ain't so.

:/
80  Forum 2005-2010 (read only) / Interfacing / Re: XBee Explorer Serial Help on: September 07, 2010, 03:46:08 pm
Sounds like its the FTDI driver that is missing.  I had the same problem initially -- my computer wasnt recognizing the Explorer, but once I installed the FTDI driver it was fine.
81  Forum 2005-2010 (read only) / Interfacing / Re: Wii Nunchuck and Arduino -- newb problem on: October 28, 2009, 09:11:23 am
sure thing... it's from the TinkerIt! website tutorial.  I installed the necessary libraries already.




/*
 * WiiChuck -- Send serial data with a Wii Nunchuck
 *
 * This code is based on the original code by Chad Philips (www.windmeadow.com),
 * WiiChuck code from Todd E. Kurt (todbot.com) and has been tweaked by Karsten
 * Schmidt (http://postspectacular.com/).
 *
 * The WiiChuck adaptor uses analog pins 2-5 as shown below:
 * PWR - -- gnd -- black -- Gnd
 * PWR + -- +5V -- red   -- 5V
 * I2C d -- SDA -- green -- Analog In 4
 * I2C c -- SCK -- blue  -- Analog In 5
 *
 */

#include "Wire.h"
#include "WiiChuck_funcs.h"

uint8_t outbuf[6];            // array to store arduino output
int cnt = 0;

#define WiiChuck_ARDUINO_POWERED 1

void setup()
{
    Serial.begin(19200);
    
    if( WiiChuck_ARDUINO_POWERED ) {
        WiiChuck_beginWithPower();
    } else {
        WiiChuck_begin();
    }

    nunchuck_init(); // send the initilization handshake
}

void loop() {
  Wire.requestFrom (0x52, 6);      // request data from nunchuck
  while (Wire.available ()) {
    outbuf[cnt] = nunchuk_decode_byte (Wire.receive ());      // receive byte as an integer
    cnt++;
  }

  // If we recieved the 6 bytes, then go print them
  if (cnt >= 5) {
    print ();
  }

  cnt = 0;
  send_zero (); // send the request for next bytes
  delay (100);
}

// Print the input data we have recieved
// accel data is 10 bits long
// so we read 8 bits, then we have to add
// on the last 2 bits.  That is why I
// multiply them by 2 * 2
void print () {
  int joy_x_axis = outbuf[0];
  int joy_y_axis = outbuf[1];
  int accel_x_axis = outbuf[2] <<2;
  int accel_y_axis = outbuf[3] <<2;
  int accel_z_axis = outbuf[4] <<2;

  int z_button = 0;
  int c_button = 0;

  // byte outbuf[5] contains bits for z and c buttons
  // it also contains the least significant bits for the accelerometer data
  // so we have to check each bit of byte outbuf[5]
  if (outbuf[5] & 0x01) {
    z_button = 1;
  }
  if (outbuf[5] & 0x02) {
    c_button = 1;
  }

  if (outbuf[5] & 0x04) {
    accel_x_axis += 2;
  }
  if (outbuf[5] & 0x08) {
    accel_x_axis ++;
  }
  if (outbuf[5] & 0x10) {
    accel_y_axis += 2;
  }
  if (outbuf[5] & 0x20) {
    accel_y_axis ++;
  }
  if (outbuf[5] & 0x40) {
    accel_z_axis += 2;
  }
  if (outbuf[5] & 0x80) {
    accel_z_axis ++;
  }

  Serial.print (joy_x_axis, DEC);
  Serial.print (",");

  Serial.print (joy_y_axis, DEC);
  Serial.print (",");

  Serial.print (accel_x_axis, DEC);
  Serial.print (",");

  Serial.print (accel_y_axis, DEC);
  Serial.print (",");

  Serial.print (accel_z_axis, DEC);
  Serial.print (",");

  Serial.print (z_button, DEC);
  Serial.print (",");

  Serial.print (c_button, DEC);

  Serial.print ("*");
}

void nunchuck_init () {
  Wire.beginTransmission (0x52);// transmit to device 0x52
  Wire.send (0x40);            // sends memory address
  Wire.send (0x00);            // sends sent a zero.  
  Wire.endTransmission ();      // stop transmitting
}

void send_zero () {
  Wire.beginTransmission (0x52);// transmit to device 0x52
  Wire.send (0x00);            // sends one byte
  Wire.endTransmission ();      // stop transmitting
}

// Encode data to format that most wiimote drivers except
// only needed if you use one of the regular wiimote drivers
char nunchuk_decode_byte (char x) {
  x = (x ^ 0x17) + 0x17;
  return x;
}
82  Forum 2005-2010 (read only) / Interfacing / Wii Nunchuck and Arduino -- newb problem on: October 28, 2009, 08:32:12 am
This is the second time I've connected my wii nunchuch to my Arduino Duemilanove.  The first time it worked perfect -- seriously just plug and play. Now, though, I am getting an error regarding the power.  

In Arduino it says this:
 In function 'void WiiChuck_beginWithPower()':
 At global scope:

I cant figure out what the problem is (well, my guess is that there is no power).  I have tried 3.3v and 5v connections and the error appears on both.

What am I overlooking?  
83  Forum 2005-2010 (read only) / Exhibition / Antarctica: Light installation w/Arduino + PD on: September 08, 2009, 04:43:10 pm
My very first arduino project:


I had 6 ultra-bright LEDs frozen in blocks of ice. The activity level of the lights was reflective of the activity level in the audio, which was a real-time feed from below the ice in Antarctica.  This was from a research base in Antarctica that had placed two hydrophones below the ice shelf and broadcast online this kind of "antarctic white noise" with intermittent animal calls and splashes from animals diving in the water, plus digital artifacts from transmission, etc.  I brought this feed into Pure Data to interpret the audio levels and then output light controls via PDuino interface to the Arduino.
84  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 15, 2009, 04:46:09 am
no worries, i have a friend coming from Toronto (where I live -- I'm currently studying abroad) and they are bringing some components for me.  There we are able to buy Arduino products in shops.

Thanks for the help!
85  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 14, 2009, 05:19:49 pm
I wanted to find a store that I could buy it at, rather than order online.
86  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 09, 2009, 08:23:54 am
PS. no points for humour smiley-wink
87  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 09, 2009, 08:23:12 am
ah, okay.
now I understand.
I mean, I had to google "southwood" to understand its relation to Nokia, buuut...yeh.  
88  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 09, 2009, 08:11:20 am
AWOL:  I'm new in this city, and to Finland itself.  I'm not familiar with this export.
89  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 08, 2009, 04:29:46 pm
what's southwood?
90  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Electronics stores in London, UK on: September 08, 2009, 03:49:14 pm
thanks, mungbean!
I'm going to contact them smiley
Pages: 1 ... 4 5 [6] 7