Show Posts
Pages: 1 2 [3] 4 5 ... 7
31  Using Arduino / Microcontrollers / Uploading to a standalone through an arduino on: April 26, 2011, 07:26:50 pm
I've got a standalone hooked up, and hooked it up according to this link:
or this picture:

and I was wondering why I keep getting this message:
Problem uploading to board.
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
I have no chip in the duemilanove, I've got the right one selected from the menu, along with the right port. I've tried uploading with the internal as well as an external timer. (see link)
Any ideas? I'm stumped.  smiley-confuse
32  Topics / Interactive Art / Re: High Speed photography with Arduino on: April 14, 2011, 04:05:15 pm
wow, that's kind of eerie! I just did the exact same thing about a month ago, with milk and a pair of scissors to get the camera to focus on the right spot.  smiley-razz Very cool!
33  Using Arduino / Motors, Mechanics, and Power / Re: Best overall servo? on: February 11, 2011, 09:40:37 pm
wow, very nice collection of goodies smiley-grin Thanks! Just keeping it within a paycheck may be hard  smiley-eek
34  Using Arduino / Motors, Mechanics, and Power / Re: Best overall servo? on: February 11, 2011, 09:28:10 pm
Well, for a few more specifics, metal gear would be nice, I'm sick of plastic.  smiley-roll Hey, if it's got to be from China, at least make it a good product from China.  smiley-razz
35  Using Arduino / Motors, Mechanics, and Power / Best overall servo? on: February 11, 2011, 09:09:29 pm
I've only ever used cheap, chinese 9g servos and was very disappointed by them.  smiley-cry Are there any certain servos that you've found to be a great quality for the money, for me to try out for my first (decent) servo? Thanks!
36  Community / Exhibition / Gallery / Re: Arduino music box flip-n-shake/tap on: January 31, 2011, 02:50:25 pm
Very cool! Looks like I have yet another thing I want to try out  smiley-roll
37  Community / Exhibition / Gallery / Homemade Wooden Arduino Tray on: January 31, 2011, 02:44:40 pm
I've been inspired to make an arduino tray similar to the plastic on on instructables...
... but I didn't have any plastic available, and I also wanted it to hold the battery and breadboard so...

Here's the arduino tray I just finished today.

I started out with a wide board of pine, and made two rectangles of 8" x 7 5/8".
I measured my large breadboard and arduino/battery pack combo to get ideas for space sizes.
I ended up with a larger rectangle of 6 1/2" x 2 1/4" for my breadboard, 4" x 3 1/2" for the arduino and battery pack, and a 3" x 1 1/4" space for extra parts, which I cut out freehand with the scrollsaw (probably would have been straighter with a bandsaw).
I routered the edges all the way around, and the internal edges of the parts compartment with a 1/4 roundover w/bearing, and stained with a medium stain, which I am really happy with. I predrilled and countersunk the holes and screwed it together, covering the screwheads with four protective pads to keep it from scratching countertops. A few 3/8" risers under the breadboard bring it up to slightly above level with the top. I'm very happy with the overall look and use of it! Hope this inspires someone else to create something similar!
38  Forum 2005-2010 (read only) / Syntax & Programs / Re: Servo code question on: October 28, 2010, 03:14:55 pm
it's a tower pro SG90 9g servo, plastic gears, I can't seem to find a datasheet right now, but they run on 3-7.2V
39  Forum 2005-2010 (read only) / Syntax & Programs / Re: Servo code question on: October 28, 2010, 02:21:16 pm
yes, it is uselessly small. smiley-razz it is a 9g tiny little thing. is that too big to run on arduino?
40  Forum 2005-2010 (read only) / Syntax & Programs / Re: Servo code question on: October 28, 2010, 02:00:11 pm
power's from the arduino, and that's all good smiley-wink I think I fixed part of it by editing delays, I'm going to try removing the for() loop to see if that fixes it. Thanks
41  Forum 2005-2010 (read only) / Syntax & Programs / Servo code question on: October 28, 2010, 01:24:39 pm
I've been working on making an arduino-based "most useless machine ever". It's not the best way you can do it, but it is helping me to learn some servo coding and stuff. Here's my current code:
#include <Servo.h>               //include servo library
Servo myservo;                   //create servo object
int pos = 10;                     //variable for servo position
int start =10;
const int togglePin = 2;         //toggle switch pin 2
const int ledPin =  13;          //diagnostic LED pin 13

int toggleState = 0;             //variable for reading toggle switch state

void setup()
  pinMode(ledPin, OUTPUT);       //labels LED pin as output
  pinMode(togglePin, INPUT);     //labels toggle pin as input
  myservo.attach(9);             //attaches servo to pin 9

void loop()
  toggleState = digitalRead(togglePin);
  if (toggleState == HIGH)
  digitalWrite(ledPin, HIGH);
  for(pos = 10; pos <=80; pos+= 5)
    myservo.write(start);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  digitalWrite(ledPin, LOW);
can anyone spot any extra crud in there? I need to adjust the position numbers for my particular box size and servo configuration, but even still it's acting slow and jittery. Anything in the code that would make this happen?
42  Forum 2005-2010 (read only) / Syntax & Programs / Re: Help with simple combination of codes. on: August 14, 2010, 08:34:20 am
haha, haven't got a clue about the pin 4 thing... there's nothing attached there.  smiley-razz    The problem with that simple switch of codes is that I want it to loop around and around until the system's reset, not just play it once and turn off when the reading's more than 750. I'm not sure how and where to put it into a loop.  :o I'll mess around with getting the thing to go off in the first place, then try to get the rest working.  smiley-wink Thanks for the help.
43  Forum 2005-2010 (read only) / Syntax & Programs / Help with simple combination of codes. on: August 13, 2010, 08:13:58 pm
Fellow Arduinoists,
I've got an Arduino Duemilanove and arduino 0018 installed. I'm just looking for someone to help and possibly explain how to combine these two codes. The first one is as follows and is used for a laser tripwire with a photoresistor.
void setup() {
pinMode(4, OUTPUT);
pinMode(13, OUTPUT);

void loop(){
digitalWrite(4, HIGH);
if(analogRead(0) < 750){
digitalWrite(13, HIGH);
} else{
digitalWrite(13, LOW);

This next one is for a "melody" that I'd like to combine to later change the melody to a more alarm-like sound.

 Plays a melody
 * 8-ohm speaker on digital pin 8
 created 21 Jan 2010
 by Tom Igoe
 #include "pitches.h"

// notes in the melody:
int melody[] = {

// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
  4, 8, 8, 4,4,4,4,4 };

void setup() {
  // iterate over the notes of the melody:
  for (int thisNote = 0; thisNote < 8; thisNote++) {

    // to calculate the note duration, take one second
    // divided by the note type.
    //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc.
    int noteDuration = 1000/noteDurations[thisNote];
    tone(8, melody[thisNote],noteDuration);

    // to distinguish the notes, set a minimum time between them.
    // the note's duration + 30% seems to work well:
    int pauseBetweenNotes = noteDuration * 1.30;

void loop() {
  // no need to repeat the melody.

What I'd like it to do is to start sounding the melody when the wire is tripped (reads < 750) and keep sounding it until the reset button is pressed (requiring a looping melody). I'm not too advanced on the whole coding thing so any help would be appreciated, and maybe some tips on how to do it on my own next time.  smiley-wink

44  Forum 2005-2010 (read only) / Bugs & Suggestions / A bug I spotted on: September 27, 2010, 06:19:02 pm
Just wanted to shoot this out there, not sure where to post it smiley-wink I spotted when you save a file with a non-valid name:

"The sketch name had to be modified. Sketch names can only consist
of ASCII characters and numbers (but cannot start with a number).
They should also be less less than 64 characters long."

45  Forum 2005-2010 (read only) / Interfacing / Re: Presence detection on: January 14, 2011, 04:01:00 pm
Nope, only for IR smiley-wink
Pages: 1 2 [3] 4 5 ... 7