Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Arduino Nano 3.0 chip hot, continuity between ground and +5V and cant upload on: June 01, 2012, 03:57:13 am
Hi All,

I'm working with a nano 3.0.

I had a project working on a breadboard and the build a permanent version on some perf board.

I'm powering the arduino with 12V.

When I plugged the nano into the new board and powered it up nothing happen. I tried to upload new code but I got the "avrdude: stk500_recv(): programmer is not responding" error.

I then noticed that the ATmega chip was really hot.

Upon further investigation I discovered that there now continuity between the +5V pin and ground pin (I assume it was not there before).

So it appears my new board is miss-wired and it fried the nano, however, I can't seem to find any mistakes on the board.

Could someone please suggest what might have caused this problem given the short and the heat, so I can try to find the problem on the board.

Cheers.

 
2  Using Arduino / Sensors / Re: DS3234 batter back up not working on: December 12, 2011, 01:45:31 pm
So I've using the sparkfun breakout board (http://www.sparkfun.com/products/10160) So I've got the battery in the preinstalled battery conector.

The rest is hooked up like this:

Breakout -> arduino
gnd –> gnd
vcc –> 3v on Arduino Board
sqw –> arduino gnd
clk –> arduino pin13
miso –> arduino pin12
mosi –> arduino pin11
ss –> arduino pin A0

I think sqw is used as an interrupt. I believe I had to have it wired to ground to get the chip working correctly. I followed advice in the comments for getting the wiring.


3  Using Arduino / Sensors / DS3234 batter back up not working on: December 11, 2011, 05:26:57 am
Hey All —
I got my DS3234 working, (using the SparkFun breakout board http://www.sparkfun.com/products/10160) in that I can set the time and read the time, however, the battery back up does not appear to be working.

I’ve got it hooked up to an arduino uno and when I remove the unos power and let the chip sit for, say, 24 hours the time is no longer correct.

I’ve got a CR1225 battery that reads 2.9 V

Here is how I’ve got it wired:

gnd –> gnd vcc –> 3v sqw –> gnd clk –> pin13 miso –> pin12 mosi –> pin11 ss –> A0

Any thoughts?

Thanks in advance!
4  Using Arduino / Audio / Re: Library not found even though it's there with Sparkfun mp3 shield on: November 02, 2011, 01:57:02 pm
Thanks Mike,

I'll remember that trick.  It's compiling now.  Off to find the next problem.

Much Thanks
5  Using Arduino / Audio / Re: Library not found even though it's there with Sparkfun mp3 shield on: November 02, 2011, 04:06:20 am
Thanks for the reply. I renamed the directory, restarted the IDE and got the same exact error.

What's you second best idea?

Thanks!
6  Using Arduino / Audio / Library not found even though it's there with Sparkfun mp3 shield on: November 02, 2011, 03:18:39 am
Hi All --

I'm a bit stumped here.  I got one of these http://www.sparkfun.com/products/10628 MP3 Player Shield from sparkfun. Reading the comments in the example code and the forum there, I download the sdfatlibs that are needed to talk to the sd card.

They are installed in /libraries/sdfatlib, I've restarted the IDE, but when I compile I get the error below.  That error says it cant find SdFat.h and SdFatUtil.h but these are both in the sdfatlib directory.

Even if I copy these two files into the same directory as the sketch I get the same error.

No matter how I try I cant get pst this error.

Any thoughts?
Thanks!

My error ->



MP3_Player_Example.cpp:52:19: error: SdFat.h: No such file or directory
MP3_Player_Example.cpp:53:24: error: SdFatUtil.h: No such file or directory
MP3_Player_Example:55: error: 'Sd2Card' does not name a type
MP3_Player_Example:56: error: 'SdVolume' does not name a type
MP3_Player_Example:57: error: 'SdFile' does not name a type
MP3_Player_Example:58: error: 'SdFile' does not name a type
MP3_Player_Example.cpp: In function 'void setup()':
MP3_Player_Example:113: error: 'card' was not declared in this scope
MP3_Player_Example:113: error: 'SPI_FULL_SPEED' was not declared in this scope
MP3_Player_Example:114: error: 'volume' was not declared in this scope
MP3_Player_Example:114: error: 'card' was not declared in this scope
MP3_Player_Example:115: error: 'root' was not declared in this scope
MP3_Player_Example:115: error: 'volume' was not declared in this scope
MP3_Player_Example.cpp: In function 'void playMP3(char*)':
MP3_Player_Example:187: error: 'track' was not declared in this scope
MP3_Player_Example:187: error: 'root' was not declared in this scope
MP3_Player_Example:187: error: 'O_READ' was not declared in this scope
MP3_Player_Example:210: error: 'track' was not declared in this scope
MP3_Player_Example:243: error: 'track' was not declared in this scope
MP3_Player_Example:264: error: 'track' was not declared in this scope
7  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: October 27, 2011, 03:00:28 am
Hello everyone --

I'm really glad to find this thread so active.  I'm currently working on a project that involved tracking the orientation and position of an object.

I've got an ADXL345 accelerometer, ITG-3200 gyro and an HMC5883L magnetometer. 

I've gotten Fabio Varesano's awesome code working which is giving me great position information.

But I'm hoping someone on this thread can point me to some code that I can use to get a good measurement of velocity so I can calculate position.

Thanks in advance.

 
8  Using Arduino / Motors, Mechanics, and Power / Charging batteries in series in an Arduino Fio on: January 30, 2011, 03:06:16 pm
Hi --

I've got an Arduino Fio that I'd like to use with two identical LiPo batteries wired in series. Can anyone see any problems with trying to charge the two batteries at once via the USB power on the board?
9  Forum 2005-2010 (read only) / Interfacing / Serial communication problem on: January 09, 2011, 10:49:07 pm
Hello Everyone --

I'm trying to use processing to send position data to the two servos (left and right), attached digital pins 9 and 10 (via) the motor shield to via serial.

In Processing I'm writing an int value to the serial port, followed by a char indicator.

In Arduino I'm reading the serial input and adding it to the end of a buffer array, I'm then reading the last value, looking for the indicator, and parsing the previous value based on it.  I then shift the buffer.

When parsing I take the incoming char value, cast it as an int and assign it to a var.  That var then gets written to the servo.

So in processing I send 90L90R and set the left and right servo to 90

The problem I'm having is that some sets of number work, like 90L90R but others do not.

Any advice would be very helpful.  Thank you in advance.

Oh and thank's for solving so may problems I've had in the past without me even having to post.  This is such a great community!  Ya'all rock.

Hardware:
Arduion Uno
MacBookPro
2 continuos rotation servos
Adafruit Motor sheild

Here is my code:

Processing:
Code:
import processing.serial.*;

Serial myPort;
int netural=90;
int rval=netural;
int lval=netural;

void setup() {
  size(200,200);
  background(225,0,255);
  myPort = new Serial(this, Serial.list()[0], 9600);
}

void draw() {

  if (keyPressed) {
    if(key==CODED) {
      if(keyCode == UP) {
        lval=180;
        rval=0;
      }
      if(keyCode == DOWN) {
        lval=0;
        rval=180;
      }
      if(keyCode == RIGHT) {
        lval=0;
        rval=90;
      }
      if(keyCode == LEFT) {
        lval=90;
        rval=180;
      }
    }
  }
  myPort.write(rval);
  myPort.write('R');
  myPort.write(lval);
  myPort.write('L');

  println(lval + " " + rval);
}

Arduino:
Code:
#include <Servo.h>
Servo right;
Servo left;

int in_r=90;
int in_l=90;

char buff[]= "0000000000";

void setup()
{
  left.attach(9);  
  right.attach(10);

  Serial.begin(9600);
  left.write(in_l);
  right.write(in_r);
}

void loop() {

  left.write(in_l);
  right.write(in_r);

  while (Serial.available()>0) {
    for (int i=0; i<10; i++) {
      buff[i]=buff[i+1];
    }
    buff[10]=Serial.read();
    if (buff[10]=='R') {
      in_r=int(buff[9]);
    }
    if (buff[10]=='L') {
      in_l=int(buff[9]);
    }
  }
  delay(10);
}


Pages: [1]