Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Re: Help getting Ardweeny to work please on: September 06, 2014, 05:13:51 pm
Progress!!! Thank you so much!

Having installed the drivers my next hurdle seems to involve the 'reset' button I think.  When I try to upload a sketch now it says:
avrdude: stk500_getsync(): not in sync: resp=0x98

I tried holding down the reset button on the ardweeny while the sketch uploads, but then I get:
avrdude: stk500_getsync(): not in sync: resp=0x26

When I search the forums for this error message it seems associated with trying to write a bootloader to the arduino. (  I thought Ardweenys already had the bootloader installed.  What should/can I try next?
2  Using Arduino / Microcontrollers / Help getting Ardweeny to work please on: September 06, 2014, 03:30:07 pm
Please tell me what I'm doing something wrong.

I soldered together an ardweeny a few weeks ago (Ardweeny v1.1a) but I haven't been able to get it to work at all yet.  I'm using a TTL - to - USB Adapter that I got from Solarbotics to connect to the Ardweeny. I'm running the Arduino IDE Version 1.0.5 on an old Mac laptop (I know 1.0.5 is out of date, but it's the last version that still runs on Mac OS 10.6.8 )

Anytime I plug in my Arduino Uno (which works just fine), I get a message from the Mac OS saying "A new network interface has been detected," but that never happens when I plug in the ardweeny to the computer.  A green light does appear on the TTL - to - USB chip, but nothing happens on the computer.

In the Arduino IDE I choose "Arduino Duemilanove w/ ATmega328" as the Board, and " /dev/tty.usbmodem3d11 " for the Serial Port (the same one I use to communicate with my Uno).

Then I open the "Blink" sketch from the examples, and press upload.  The sketch compiles, but when then I get a Mac OS window that says " Serial port /dev/tty.usbmodem3d11 not found. Retry the upload with another serial port? " along with a drop down that lists 4 choices:
  • /dev/tty.Bluetooth-Modem
  • /dev/cu.Bluetooth-Modem
  • /dev/tty.Bluetooth-PDA-Sync
  • /dev/cu.Bluetooth-PDA-Sync

I try the first one and then I get a message in the sketch window that says " Serial port '/dev/tty.Bluetooth-Modem' already in use. Try quiting any programs that may be using it."  but the only other program I'm running is Firefox.

Interestingly, after this the options
  • /dev/tty.usbmodem3d11
  • /dev/cu.usbmodem3d11
disappear completely from the the Serial Port list.

Any ideas how I can get this ardweeny to work? or at least, things I can try? Thank you very much!
3  Using Arduino / Sensors / Re: Help Using Sparkfun Accelerometer MMA7361 on: May 17, 2014, 10:38:55 am
I apologize for my newbie-ness, but since I'm running the accelerometer from the 3.3V output on the Arduino I understood that a logic level converter wouldn't be needed.

I used the AcceleroMMA7361_v0.8b library documentation to find out how to hook up the arduino.  It says the Begin method gets the following parameters
void begin (int sleepPin, int selfTestPin, int zeroGPin, int gSelectPin, int xPin, int
yPin, int zPin)
In the example sketch that came with the library, here are the pins in the begin method:
accelero.begin(13, 12, 11, 10, A0, A1, A2);
which is why I hooked up the Arduino the way I described in my first post.

Also, I did my best to read the datasheet ( but it looks like the PCB Layout in the Basic Connections section are done on the Sparkfun breakout board.

I've been trying to figure this out on my own for hours.  I really appreciate your taking the time to help me!

Here is the sketch I'm running:
#include <AcceleroMMA7361.h>

AcceleroMMA7361 accelero;
int x;
int y;
int z;

void setup()
  accelero.begin(13, 12, 11, 10, A0, A1, A2);
  accelero.setARefVoltage(3.3);                   //sets the AREF voltage to 3.3V
  accelero.setSensitivity(LOW);                   //sets the sensitivity to +/-6G

void loop()
  x = accelero.getXRaw();
  y = accelero.getYRaw();
  z = accelero.getZRaw();
  Serial.print("\nx: ");
  Serial.print("\ty: ");
  Serial.print("\tz: ");
  delay(500);                                     //(make it readable)
4  Using Arduino / Sensors / Help Using Sparkfun Accelerometer MMA7361 on: May 16, 2014, 05:47:08 pm
I hope someone can tell me what I'm doing wrong.  I seem to be getting readings from my accelerometer, but the readings never change no matter how much I move the thing around.

I have the sparkfun accelerometer MMA7361 ( hooked up to my Arduino Uno.
I'm using the AcceleroMMA7361_v0.8b library from here (

When I run the "RawData" sketch included in the library, this is what comes on the serial monitor:

Calibrating MMA7361011..................................................
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583
x: 519   y: 519   z: 583

Here is how I have the accelerometer hooked up to the Arduino:
Accelerometer Pin  Arduino Pin

Any ideas would be greatly appreciated!!!
5  Using Arduino / Storage / How to work SD Library's "CardInfo" Program? on: November 24, 2012, 07:08:57 pm
  I'm trying to learn how to use a seeedstudio SD Card Shield V2.1

I have a Diecimilia ATmega168.

I've tried uploading the included "CardInfo" program to my Arduino many times, but nothing ever shows up on the Serial Monitor.

The program should be able to notify you if the card reader is not hooked up properly, so I tried removing the SD card shield altogether hoping it would at least tell me an error... but even then nothing came through on the Serial Monitor.

I know the Arduino works; I just uploaded and tested the "ASCIITable" program and it works just fine.

I'm at that newbie-desperation phase where I've been trying to figure this out for hours, and just feeling increasingly out of my depth.  Any information will be greatly appreciated!!!
6  Forum 2005-2010 (read only) / Troubleshooting / Re: String .length function not letting sketch compile on: January 02, 2010, 01:01:40 pm
Awesome!!! Thank you very very much Mem! Got it working now!  smiley-grin
7  Forum 2005-2010 (read only) / Troubleshooting / String .length function not letting sketch compile on: January 01, 2010, 07:20:54 pm
Hi Everyone!

I'm hoping this is some simple mistake on my part, I've been bashing my head against Strings for most of the afternoon and can't seem to make any progress.  smiley

Here's a distilled version of my problem:

#include <WString.h>

char str1[] = "123456789A";

void setup()

void loop()
  int i = str1.length();

Whenever I go to compile this I get:
In function 'void loop()':
error: request for member 'length' in 'str1', which is of non-class type 'char [11]'

Searching the forums here, I found 2 changes that needed to be made to the WString library.
See the following pages:
(Sorry, I can't post links yet.) but even for those errors the sketch at least compiled.

Here's my system: Macintosh G5 PowerPC, OS 10.4.11 running Arduino 0017.

All I really want to is to be able to find the length of a String (aka. char array) and then see if 2 strings are equivalent (which also won't work for me).  I suppose I can use For loops for everything, but I guess I'm kind of stubborn sometimes.  smiley-razz

Any ideas/suggestions/comments/criticisms/witty remarks are welcome!!!!! smiley-grin
8  Forum 2005-2010 (read only) / Troubleshooting / Re: avrdude: stk500_getsync(): not in sync: resp=0x00 on: August 02, 2009, 04:48:07 pm
I got that same error code you did.  What worked for me was pressing the reset button on the arduino just before I clicked to upload my code onto it.

If that doesn't work, try doing a forum search for parts of that error message.  I believe I've seen other threads that talk about that too.

Hope this helps!
Cheers!  smiley
9  Forum 2005-2010 (read only) / Troubleshooting / Re: Audio processing on: August 02, 2009, 04:41:24 pm
Thank you!  That third black wire has been driving me crazy.  smiley

As for the transfomer specs, I haven't been able to find any.  It is intended for audio, frequency response: 300Hz to 10kHz, and "low-level impedance matching."  It came from Radio Shack:

It's listed as model "EI-19" there but I can't find any data sheets on it.  This is the closest one I could find:
but I'm not sure it's the same thing.  That one has 6 leads while mine has 5.  Although all the dimensions match except the length, but it's off by just under .1 inches.

Does this help?
Thank You!!!
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Audio processing on: August 02, 2009, 12:14:37 am
Hello!  smiley  I have 2 questions at the end of this.
I was also trying to make a sort of UV meter with my Arduino, but I was trying to do it using an audio amplifier from Radio Shack.  I don't have an Electrical Engineering degree, so if this is an extremely silly idea please go ahead & tell me!

I cut an old stereo headphone cord, untwisted the 3 wires inside and soldered short copper wires to each of them.  Then attached the right channel to the Red Transformer Wire and the stereo grounding wire to the White Transformer Wire (the left channel is just kinda' left hanging smiley-razz )

Then I plugged the Blue Transformer Wire into the +5V on my Arduino Diecimila, and the Green Transformer Wire into my Analog In 0 on my Diecimila.

Here's the code I used based on the Analog Input Tutorial:

int sensorPin = 0;    // select the input pin for the potentiometer
 int ledPin = 13;      // select the pin for the LED
 int sensorValue = 0;  // variable to store the value coming from the sensor

 void setup() {
   // declare the ledPin as an OUTPUT:
   pinMode(ledPin, OUTPUT);

 void loop() {
   // read the value from the sensor:
   sensorValue = analogRead(sensorPin);                    

My Results:  When no music was playing the sensorValue stayed pretty consistently at 1023.

When I plug the headphone cord into my iPod and start playing music, the sensorValue number starts dancing all over the place.  I've seen it go all the way down to 1.

2 Questions:
1) Am I actually measuring the signal strength coming from my iPod headphone jack?

2) What on earth is the Black Wire on the Transformer for?
11  Forum 2005-2010 (read only) / Workshops / Re: A question on where to begin. on: August 02, 2009, 12:13:51 am
Not that I'm that advanced, but the book that helped me really get started in Arduino programming was Making Things Talk by Tom Igoe.

If you're completely new to the world of programming though, I might suggest...

***goes and looks through bookshelves***

Drat, I was going to recommend my Computer Science 1 textbook but I think that was one of the books that got lost our recent move. (We shipped some of our books in a box and when it arrived at our new place it was full of someone else's books.  Not that I'm complaining mind you... now I can finally read Plato's Republic! )

Anywho, I would suggest a good introductory Java book if you really want to focus on Arduinos.  That's because Arduino programming is Java programming.  The Arduino / Processing language is based on the Java computer language.  The C language is a bit different because it's not quite "object oriented" like Java is... but, bottom line I recommend studying Java first.  (It's also a little more forgiving in terms of errors.)

Hope this helps!
Cheers! smiley
Pages: [1]