Show Posts
Pages: 1 [2] 3 4
16  Topics / Robotics / Re: servo code help on: February 10, 2012, 06:07:22 pm
I am new and learning, getting better thanks to all the good people on forums
17  Topics / Robotics / servo code help on: February 10, 2012, 05:31:09 pm
I keep getting a rservonew:38: error: expected `;' before '}' token   and don't know why here is code.
I want 2 input voltage  == each other if so move servo
Code:
/*
 
 
 4 inputs with with (and &&) and 2 outputs
 servo

 */
 #include <Servo.h>
 
 Servo mright; 
 Servo mleft;
 int pos = 90;  // servo start posion
 
 
 int rpin = A5;      // 2red come in from rovio 
 int gpin = A4;   // 5green 
 int valrpin = 0;          // variable to read the value from the analog pin
 int valgpin = 0;
 
void setup() {
   
  mright.attach(11);
  mleft.attach(10);
  pinMode(A5, INPUT);
  pinMode(A4, INPUT);
   
}

void loop(){
  // read rovio input
  valrpin = analogRead(rpin);
  valgpin = analogRead(gpin);
  if (valrpin == valgpin){
  valrpin = map(val, 0, 306, 408, 714, 1023, 90, 110, 120, 130, 140);   // forward
  valgpin = map(val, 0, 306, 408, 714, 1023, 90, 110, 120, 130, 140);
  mright.write(valrpin);
  mleft.write(valgpin);
  delay(15)
}
}
18  Using Arduino / Project Guidance / Re: Internet Controlled Car on: December 01, 2011, 01:32:33 pm
I am building one now,3g/4g robot /car.To make it easer i started with a wowwee rovio that can be controlled over internet with computer or smartphone(that part of program is done for you).The motors are week and it has a lot of safety set into it,so i am building a platform using rovio,4 harbor freight drill motors($13 on sale),servos (to control motors instead of H-bridge)foscam ip cam,verizon 4g/3g Mobile Hotspot,2 12v batters(from kids car)and arduino.so far so good hope to have pictures and plans on build soon
 
19  Topics / Robotics / Re: servo help on: November 21, 2011, 08:31:14 pm
i can't get the servo and input pin setup,how would i do it? every thing i tried did not work
20  Topics / Robotics / servo help on: November 21, 2011, 03:09:07 pm
Hi,I need to move 4 servo with a uno

example
-servo 1 on pin ? goes from pos 0 to 24 when input pin 3 goes high and servio 1 goes back to pos 0 when pin 3 goes low

-servo 2,3,4  output will all have there own input high/low pin
 
any help would be great
thanks
21  Using Arduino / Networking, Protocols, and Devices / Re: best GPRS/GSM Shield on: September 27, 2011, 02:12:16 pm
I am building a car alarm that will text me if the door is opened and I can send text to turn alarm off or on. I am using arduino uno but not sure what cellular shield I should use. I was looking at using t mobile sim card
I hope this explain it better
22  Using Arduino / Networking, Protocols, and Devices / Re: best GPRS/GSM Shield on: September 27, 2011, 01:52:35 pm
What shield do you think that is cheep and will do the job
23  Using Arduino / Networking, Protocols, and Devices / Re: best GPRS/GSM Shield on: September 27, 2011, 01:30:54 pm
The best to use and cheaper is better, t-mobile will be the cellular carrier
24  Using Arduino / Networking, Protocols, and Devices / best GPRS/GSM Shield on: September 27, 2011, 12:35:46 pm
I am building a car alarm that can send/receive text but not sure what shield to get. Am going to use (I think so far)T-MOBILE it looks  like the  cheapest in pennsylvania
25  Topics / Home Automation and Networked Objects / Re: webbased Jquery Scheduler for home automation, sprinkler, and remote access on: September 24, 2011, 04:42:58 pm
very nice job an very interested
26  Using Arduino / Project Guidance / Re: How should I get the Arduino to notify Via email or something? on: September 23, 2011, 11:35:26 pm
what mail are you using? i tried gmail and gmx mail(gmx workes on my security cam)but can't get any to work.
27  Topics / Home Automation and Networked Objects / Re: text message on: September 23, 2011, 08:53:43 pm
thanks that worked on email now trying to get it working with vtext.com but can't find smtpsp@vtext.com  ip
28  Topics / Home Automation and Networked Objects / Re: text message on: September 23, 2011, 06:47:46 pm
I have an ethernet shield and can control from my phone but am stuck on the text.I thought it would be easer the email
29  Topics / Home Automation and Networked Objects / Re: X10 extended code on: September 23, 2011, 06:00:35 pm
did you look at this http://www.domoticaforum.eu/
30  Topics / Home Automation and Networked Objects / Re: text message on: September 23, 2011, 05:38:28 pm
SMS gateway is (your number@vtext.com).
Pages: 1 [2] 3 4