Show Posts
Pages: [1] 2 3 4
1  General Category / General Discussion / New Arduino Community on: September 20, 2014, 01:50:28 am
Hi everyone!

I have been working on developing a website that finally meets all of the needs of Arduino programmers. The website I have created is www.arduinocamp.ucoz.com. The website has a forum to discuss and solve programming questions and problems. The website also will have a page where tutorials will be published so ANYONE can learn how to program an Arduino. I invite all of you to the site! I would appreciate any and all constructive criticism. Again, the site is www.arduinocamp.ucoz.com.
2  Using Arduino / Programming Questions / Self Modifying Code on: June 18, 2013, 10:50:57 pm
Would it be possible to program an arduino to modify its own code, after its been uploaded?
3  Using Arduino / Programming Questions / Re: 3 Servo With 6 Button Control on: February 23, 2013, 12:02:30 am
Correction (still doens't work though):

Code:
#include <Servo.h>
 
Servo myservo2;
Servo myservo5;
Servo myservo9;

#define leftPin 1
#define rightPin 0
#define lefttPin 4
#define righttPin 3
#define leftttPin 7
#define rightttPin 6
4  Using Arduino / Programming Questions / Re: 3 Servo With 6 Button Control on: February 22, 2013, 11:58:38 pm
Why do all of my servos move at the same time when i press a button?!?

Code:
#include <Servo.h>
 
Servo myservo2;
Servo myservo5;
Servo myservo9;

#define leftPin 0
#define rightPin 1
#define lefttPin 4
#define righttPin 3
#define leftttPin 7
#define rightttPin 6

int pos = 90;
int delayPeriod = 9;  // increasing this slows down the servo movement

void setup()
{
  myservo2.attach(2);  // attaches the servo on pin 2 to the servo object
  myservo2.write(pos); // center the servo
  pinMode(leftPin, HIGH);   // turn on pullup resistors
  pinMode(rightPin, HIGH);
  myservo5.attach(5);  // attaches the servo on pin 5  to the servo object
  myservo5.write(pos); // center the servo
  pinMode(lefttPin, HIGH);   // turn on pullup resistors
  pinMode(righttPin, HIGH);
  myservo9.attach(9);  // attaches the servo on pin 9 to the servo object
  myservo9.write(pos); // center the servo
  pinMode(leftttPin, HIGH);   // turn on pullup resistors
  pinMode(rightttPin, HIGH);
}
void loop()
{
  if(digitalRead(leftPin) == LOW) 
  {                             
   // in steps of 1 degree
   if( pos > 0)
      --pos;
    myservo2.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);                     
  }
  if(digitalRead(rightPin) == LOW) 
  {                             
   if( pos < 180)
       ++pos;
    myservo2.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);       
  }if(digitalRead(lefttPin) == LOW) 
  {                             
   // in steps of 1 degree
   if( pos > 0)
      --pos;
    myservo5.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);                     
  }
  if(digitalRead(righttPin) == LOW) 
  {                             
   if( pos < 180)
       ++pos;
    myservo5.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);       
  }if(digitalRead(leftttPin) == LOW) 
  {                             
   // in steps of 1 degree
   if( pos > 0)
      --pos;
    myservo9.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);                     
  }
  if(digitalRead(rightttPin) == LOW) 
  {                             
   if( pos < 180)
       ++pos;
    myservo9.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);       
  }
}/code]
5  Using Arduino / Programming Questions / Re: 3 Servo With 6 Button Control on: February 22, 2013, 11:37:29 pm
This code works with one servo and 2 buttons. Can someone edit it so I can use 3 servos and 6 buttons. I don't know how to do that!
6  Using Arduino / Programming Questions / 3 Servo With 6 Button Control on: February 22, 2013, 11:06:15 pm
I have code to have two buttons control a single servo. I need to do this using 3 servos and 6 buttons! Please help! Can someone edit this and make it so i I can do this for 3 servos?!?! Please help!

Code:
#include <Servo.h>
 
Servo myservo;

#define leftPin 1
#define rightPin 2

int pos = 90;
int delayPeriod = 9;  // increasing this slows down the servo movement

 
 
void setup()
{
  myservo.attach(2);  // attaches the servo on pin 9 to the servo object
  myservo.write(pos); // center the servo
  pinMode(leftPin, HIGH);   // turn on pullup resistors
  pinMode(rightPin, HIGH);
}
 
 
void loop()
{
  if(digitalRead(leftPin) == LOW) 
  {                             
   // in steps of 1 degree
   if( pos > 0)
      --pos;
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);                     
  }
  if(digitalRead(rightPin) == LOW) 
  {                             
   if( pos < 180)
       ++pos;
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(delayPeriod);       
  }
}
7  Using Arduino / Programming Questions / Re: Urgent! Bluetooth help! on: February 18, 2013, 03:49:46 pm
Yeah, thats my alternative plan.
8  Using Arduino / Programming Questions / Re: Urgent! Bluetooth help! on: February 18, 2013, 03:16:59 pm
I search the internet but can't find a wireless device that does the job. Can you guys offer and links?
9  Using Arduino / Programming Questions / Urgent! Bluetooth help! on: February 18, 2013, 02:02:06 am
My friend has a grandmother who is currently in bad shape. He asked me for some help and I plan on doing so. He needs a device that he can give to both his grandmother and grandfather so they can communicate to each other. His grandfather can't hear her shouts. I want to make two devices which use bluetooth to communicate to one another and that are simple to operate. This is all it needs to do. On one arduino will be a single button, when pressed will send a signal to the other arduino which will immediatly flash leds and vibrate. Can someone please make the code to make this work. I can read simple code, but when it comes to programming bluetooth I have no idea what I'm doing. Please help! Thank you so much for understanding!
10  Using Arduino / Project Guidance / Re: Siri on Arduino Uno on: December 08, 2012, 03:42:40 pm
I think I got what I was looking for. Does anyone have some good links to some Arduino speech projects? Thanks everyone!
11  Using Arduino / Project Guidance / Re: Siri on Arduino Uno on: December 08, 2012, 03:37:03 pm
I'll make a database that will translate data into a question that it will then find the correct answer to. That answer will be sent back to the arduino to be transmitted out a speaker.
12  Using Arduino / Project Guidance / Re: Siri on Arduino Uno on: December 08, 2012, 03:29:18 pm
How about I get it to pick up what the person says and send that data directly to the database. The database will translate the data into words and then send back the requested info.
13  Using Arduino / Project Guidance / Re: Siri on Arduino Uno on: December 08, 2012, 03:11:31 pm
suggestions?
14  Using Arduino / Project Guidance / Re: Siri on Arduino Uno on: December 08, 2012, 03:07:00 pm
Well, the arduino will pick up what the person said, then translate that into text and then entering the text into a database of which will have premade responses. The database will be external and to connect to it a wifi sheild would be required.
15  Using Arduino / Project Guidance / Siri on Arduino Uno on: December 08, 2012, 02:23:18 pm
I want to start a project where I make my own kind of siri that I can ask questions to and get a response from. The Arduino would be connected to a wifi shield to get the results and I would use a speaker to relay the info it found. Any suggestions on where I should start. Links are VERY much appreciated! Thanks.
Pages: [1] 2 3 4