Show Posts
Pages: [1] 2 3
1  Using Arduino / Programming Questions / Re: Trying to control servo with push button on: November 20, 2012, 05:51:06 pm
Works perfectly! Thanks!
2  Using Arduino / Programming Questions / Re: Trying to control servo with push button on: November 20, 2012, 05:03:57 pm
The push button is on a breadboard, with a wire from 5v to the first push button pin, then a wire from the other pin to the 4 pin
3  Using Arduino / Programming Questions / Re: Trying to control servo with push button on: November 20, 2012, 04:39:52 pm
Are you saying make the button var a float?
4  Using Arduino / Programming Questions / Trying to control servo with push button on: November 20, 2012, 04:19:55 pm
First of all, I do not have all that much programming experience. I want to control a servo with a button, so that I press the button and it moves the servo in a certain way, but this code will not work for me. I press the button and the servo will go back and forth 4-5 times.

Code:
#include <Servo.h>
Servo door;
int button;   
void setup() {
pinMode(4, INPUT);
 
door.attach(9);
door.write(0);
}

void loop() {
 button = digitalRead(4); 
if (button == HIGH) {
delay(10);
     button = digitalRead(4); 
    if (button == HIGH) {
     door.write(180);
     delay(1000);
   door.write(0);
     delay(1000);
    }
}
}

Thanks,
Jack
5  Development / Other Software Development / Installer on: March 14, 2012, 06:16:18 pm
Hello. I have created a simple installer for the arduino IDE. I could not find another one on the forum and the one on the playground is outdated. The file is here:http://www.mediafire.com/?uv2t1syh2pdkj82 . Tell me what you think, or if there is another one I missed. For anyone that's wondering, I used this software: http://www.clickteam.com/website/usa/install-creator.html

Jack
6  Using Arduino / Sensors / Re: Analog input problems on: July 18, 2011, 12:25:48 am
Thanks to Magician for the answer and to tkbyd for the explanation. It worked!

Jack
7  Using Arduino / Sensors / Re: Analog input problems on: July 16, 2011, 09:57:49 am
Code:
void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  delay(100);
}
8  Using Arduino / Sensors / Analog input problems on: July 16, 2011, 09:36:39 am
I am having problems reading sensor values using the analog input pins. When reading values from a potentiometer the value easily goes up and down based on how I turn it. But when reading values from a flex sensor or photocell it stays around 1000. Is it a problem with the sensors? Or the board?

Jack
9  Using Arduino / Project Guidance / Re: Arduinio Bot Project on: June 27, 2011, 08:01:33 pm
OK. So the new plan:.
Same as before but with a caster instead of front wheels, and two 4 rechargeable aa packs for power.
Any thing else you see as needing improvement?
10  Using Arduino / Project Guidance / Re: Arduinio Bot Project on: June 27, 2011, 12:53:52 pm
OK, Then I guess I'll going with AA's for the Arduino.
11  Using Arduino / Project Guidance / Re: Arduinio Bot Project on: June 26, 2011, 09:24:40 pm
Would 5 Rechargeable AA's Work well?
12  Using Arduino / Project Guidance / Re: Arduinio Bot Project on: June 26, 2011, 09:06:05 pm
But wont 4 double A's provide 6 volts?
13  Using Arduino / Project Guidance / Re: Arduinio Bot Project on: June 26, 2011, 08:36:11 pm
So 4 AA batteries is enough to power both motors? Would this be a good front wheel solution? http://www.sparkfun.com/products/320
14  Using Arduino / Project Guidance / Arduinio Bot Project on: June 26, 2011, 03:01:36 pm
First of all thanks to every one on the forums for being so helpful. I am planing on building a robot that is autonomous and can avoid objects. I Am also going to use a wireless ps2 controller for remote control. I am going to upgrade to bluetooth or build an arduino XBee controller once I find some more cash  Here is the list of parts:
2 large continuous rotation servos, http://www.sparkfun.com/products/9347
2 4xAA Battery holder for the servos, http://www.sparkfun.com/products/550
1 9V battery holder to power arduino uno, http://www.sparkfun.com/products/10512
Hook up wire,http://www.sparkfun.com/products/8026
2 Rocker Switches for servo power supply, http://www.sparkfun.com/products/8837
2 Super bright LED's as head lights,http://www.sparkfun.com/products/531
Key switch for main power, http://www.sparkfun.com/products/10445
2 Omron Snap Action Switches for front and back bumpers, http://www.sparkfun.com/products/98
Infrared Proximity sensor, http://www.sparkfun.com/products/8733
Status LED, I have it
Photocell, I have it
Buzzer, I have it
Later Advancements
I have am going to add Bluetooth capability once I have more money:
Bluetooth Module, http://www.sparkfun.com/products/10269

Now for the design:
The continuous rotation servos will in the middle of a plastic base with gears mounted running to the back of the base were wheels will be mounted. There will also be wheels in the front. I will mount the snap switches to the front and back, with a bumper attached to each. Above the front bumper will be 2 head lights, which will have varying brightness based on the readings from a photocell mounted on the top. The switches will be mounted on the top as well. The Proximity sensor will be a few inches above the headlights.

Any suggestions or potential problems before I order the supply?

Thanks,
Jack
15  Using Arduino / Networking, Protocols, and Devices / Re: Remote Controlled Robot on: June 19, 2011, 06:30:18 pm
Would it work fine?
Pages: [1] 2 3