Show Posts
Pages: 1 [2] 3 4 ... 10
16  Forum 2005-2010 (read only) / Syntax & Programs / Re: it no workie on: March 27, 2009, 01:24:07 pm
.......


it wont even download to board...

17  Forum 2005-2010 (read only) / Syntax & Programs / it no workie on: March 27, 2009, 01:08:30 pm
//hooking up a numeric disp

int a = 2
int b = 3
int c = 4
int d = 5
int e = 6
int f = 7
int mi = 8


void setup(){
    pinMode(a, OUTPUT);
      pinMode(b, OUTPUT);
        pinMode(c, OUTPUT);
          pinMode(d, OUTPUT);
            pinMode(e, OUTPUT);
              pinMode(f, OUTPUT);
                pinMode(mi, OUTPUT);
                
}

void loop()
{
  digitalWrite(e, HIGH);
  digitalWrite(c, HIGH);
  delay(2000);
    digitalWrite(e, HIGH);
    digitalWrite(c, LOW);
      digitalWrite(d, HIGH);
  digitalWrite(mi, HIGH);
    digitalWrite(a, HIGH);
  digitalWrite(b, HIGH);
  delay(2000);
}
18  Forum 2005-2010 (read only) / Syntax & Programs / help on: March 21, 2009, 04:25:23 pm
how do i drive a 9-volt server on a arnduio

--i spelled it wrong cuz i ype quick smiley-razz
19  Forum 2005-2010 (read only) / Syntax & Programs / Re: this wont work, why??? on: March 22, 2009, 12:20:08 pm
bump
20  Forum 2005-2010 (read only) / Syntax & Programs / this wont work, why??? on: March 22, 2009, 12:01:40 pm
Code:
#include <Servo.h>
 
Servo myservo;
int ledPin = 13;                // choose the pin for the LED
int inputPin = 2;               // choose the input pin (for a pushbutton)
int val = 0;                    // variable for reading the pin status
int pos = 0;

void setup()
{
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
     // declare LED as output
  pinMode(inputPin, INPUT);     // declare pushbutton as input
}

void loop(){
  val = digitalRead(inputPin);  // read input value
  if (val == HIGH) {            // check if the input is HIGH
  for(pos = 0; pos < 180; pos += 8)  // goes from 0 degrees to 180 degrees
  {                                  // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }  // turn LED OFF
  } else {
  for(pos = 180; pos>=1; pos-=8)     // goes from 180 degrees to 0 degrees
  {                                
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
  }
}

its a function for my auto dog feeder
21  Forum 2005-2010 (read only) / Syntax & Programs / Re: Help with code for the leddriver on: March 21, 2009, 04:26:27 pm
erm..thats wut its suppost to do
22  Forum 2005-2010 (read only) / Interfacing / Re: dimmer sample sketch on: May 15, 2009, 06:23:09 am
@ everyone:
or just change pin 9 to pin13, it saves more time =D
23  Forum 2005-2010 (read only) / Interfacing / Re: retrieving my facebook notifications? on: April 02, 2009, 11:35:48 am
i wiash i can do this too, plz tell how :|
24  Forum 2005-2010 (read only) / Interfacing / Newbie's Post: How Do I Get My Arduino To .. on: March 27, 2009, 01:35:48 pm
How Do I Get My Arduino To Play A Flash Movie On My Monitor???
25  Forum 2005-2010 (read only) / Development / Re: i would like some help. on: May 13, 2009, 03:27:05 pm
sorry, im kinda stupid =P
26  Forum 2005-2010 (read only) / Development / i would like some help. on: May 13, 2009, 02:20:51 pm
how do i create a library :-?
27  Forum 2005-2010 (read only) / Troubleshooting / Re: I Cant Upload To My Board >:( on: March 23, 2009, 08:21:15 am
kk it works now
28  Forum 2005-2010 (read only) / Troubleshooting / Re: I Cant Upload To My Board >:( on: March 21, 2009, 01:10:54 pm
bump
29  Forum 2005-2010 (read only) / Troubleshooting / I Cant Upload To My Board >:( on: March 21, 2009, 01:07:25 pm
When i upload, it says that com4 is in use, i dont have any usb scanning programs tho :\


 >smiley-sad >smiley-sad >smiley-sad
30  Forum 2005-2010 (read only) / Interfacing / Re: cpu monitor on: April 24, 2009, 12:19:50 pm
AOWL, im sorry, idk the motherboard, but this should help:

OS:Vista
Processor:AMD athlon X2 64
pc brand:emachines

Pages: 1 [2] 3 4 ... 10