Show Posts
Pages: 1 2 [3]
31  Forum 2005-2010 (read only) / Interfacing / Re: Xbee Series 1 and Arduino Mega on: March 07, 2010, 08:09:36 pm
There are size constraints on the board, so I need to mount the xbee shield next to the arduino mega.  Also, I am connecting the GPS module and LED screen to the VCC and ground pins on the mega board and these pins are covered up by the shield.
32  Forum 2005-2010 (read only) / Interfacing / Xbee Series 1 and Arduino Mega on: March 07, 2010, 05:18:53 pm
I am trying to send packets from one arduino to another using the XBP24-AWI-001 modules and the libelium Xbee shields.  I need to send an array of latitude and longitude coordinates as packets.

I looked over the Arduino Xbee library and examples at http://code.google.com/p/xbee-arduino but I still need some direction.  

Also, how should the pins of the shield be connected if I don't want to use the Software Serial and have it on a breadboard and using the hardware serial pins?  What is the main benefit of using the shield?  Thanks.
33  Forum 2005-2010 (read only) / Troubleshooting / Re: Bypass Voltage Regulator on: March 11, 2010, 03:22:06 am
Nice, thorough explanation.  That makes complete sense.  Thanks everyone!
34  Forum 2005-2010 (read only) / Troubleshooting / Re: Bypass Voltage Regulator on: March 10, 2010, 03:21:26 pm
The point of seperating the USB power wires is to prevent supplying too much voltage when you are uploading code from both the usb power and the external +5vdc?

Does this bypass the regulator by using the auto-voltage switching circuit?
35  Forum 2005-2010 (read only) / Troubleshooting / Bypass Voltage Regulator on: March 10, 2010, 02:10:34 pm
I am using the Arduino Mega with the ATMEGA1280.  All of the peripherals using the hardware serial pins run off the supplied 5.5V on the Arduino board.

I was wondering where the voltage regulator was on the board and if it was possible to bypass the power hungry regulator and input a regulated 5.5V.

Thanks!
36  Forum 2005-2010 (read only) / Interfacing / Re: HMC6352 Compass Baud Rate on: April 21, 2010, 12:27:37 pm
Another problem I did run into was that whenever I hold the screen near the compass, the current from the screen messes up the heading given by the compass.  Has anybody found a solution to shielding the compass from interference?
37  Forum 2005-2010 (read only) / Interfacing / Re: HMC6352 Compass Baud Rate on: April 21, 2010, 12:23:39 pm
Ok, I found out that since I don't need to print the sda and scl data to the serial console, I just don't declare a baud rate to print the compass data to the console.  I continue to use 9600 for the LED screen I am using and they work fine together.
38  Forum 2005-2010 (read only) / Interfacing / Re: HMC6352 Compass Baud Rate on: April 20, 2010, 11:52:39 pm
That is correct.
39  Forum 2005-2010 (read only) / Interfacing / Re: HMC6352 Compass Baud Rate on: April 20, 2010, 10:42:12 pm
I changed:
Serial.begin(9600);

to:
Serial.begin(28800);
40  Forum 2005-2010 (read only) / Interfacing / HMC6352 Compass Baud Rate on: April 20, 2010, 09:31:15 pm
I am using the HMC6352 Compass module and it is successfully printing out the correct heading degree with a baud rate of 9600 using the following code taken from the forums:

Code:
#include <Wire.h>
int HMC6352Address = 0x42;
// This is calculated in the setup() function
int slaveAddress;
boolean ledState = false;
byte headingData[2];
float headingValue;
int i;
void setup()
{
// Shift the device's documented slave address (0x42) 1 bit right
// This compensates for how the TWI library only wants the
// 7 most significant bits (with the high bit padded with 0)
slaveAddress = HMC6352Address >> 1;   // This results in 0x21 as the address to pass to TWI
Serial.begin(9600);
//pinMode(ledPin, OUTPUT);      // Set the LED pin as output
Wire.begin();
}
void loop()
{
  // Flash the LED on pin 13 just to show that something is happening
  // Also serves as an indication that we're not "stuck" waiting for TWI data
  // Send a "A" command to the HMC6352
  // This requests the current heading data
  Wire.beginTransmission(slaveAddress);
  Wire.send("A");              // The "Get Data" command
  Wire.endTransmission();
  delay(10);                   // The HMC6352 needs at least a 70us (microsecond) delay
  // after this command.  Using 10ms just makes it safe
  // Read the 2 heading bytes, MSB first
  // The resulting 16bit word is the compass heading in 10th's of a degree
  // For example: a heading of 1345 would be 134.5 degrees
  Wire.requestFrom(slaveAddress, 2);        // Request the 2 byte heading (MSB comes first)
  i = 0;
  while(Wire.available() && i < 2)
  {
    headingData[i] = Wire.receive();
    i++;
  }
  headingValue = headingData[0]*256 + headingData[1];  // Put the MSB and LSB together
  //int_deg = int(headingValue/10);
  //frac_deg =
  Serial.print("Current heading: ");
  Serial.print(headingValue/10);
  Serial.println(" degrees");
  delay(500);
}


When I change the baud rate to 28800, garbage is printed in the Serial monitor on that channel.

Does this module require a baud rate of 9600?  Thanks.
41  Forum 2005-2010 (read only) / Interfacing / Sparkfun Button Pad and PCB on: March 29, 2010, 01:10:17 pm
I ordered the 4 button pad with the pcb here:
http://www.sparkfun.com/commerce/produc ... ts_id=9277

I am trying to use these buttons with an Arduino Mega. I am in need of a starting reference point in wiring up the pcb to the Arduino. If there is a tutorial out there, that would be nice. Thanks.
Pages: 1 2 [3]