Show Posts
Pages: 1 [2] 3 4
16  Using Arduino / Programming Questions / Re: Servo.h missing on: October 11, 2013, 06:59:43 am
I am using a PCduino
The PCduino has nothing to do with Arduino, so I doubt this is the proper forum to ask for help.

James, true but the library error is as unique to the Arduino. Why do you say the PCduino has nothing to do with the Arduino?

Lance
17  Using Arduino / Programming Questions / Servo.h missing on: October 10, 2013, 07:26:54 pm
I am using a PCduino to run a sketch that is known to work on a standalone Arduino, seeing as I have received zero replies on their forum I figured I would see what the Arduino community could assist with.

I received the PCduino as a free instructables price but so far it seems kinda dumb.

When I upload the following code directly on the PCduino it says servo.h is missing. I did download SoftwareServo.h and included it and it did nothing (like I thought)

Any ideas on working with this thing?


Code:
//======================================
//Circle Math
//======================================
#include <math.h>

#define pi    3.14159265358979323846
#define twopi (2*pi)
float circleradius = 50; //50 each side - make no more any of your max limit values
float stepnumber = 360;
float stepangle;
//======================================


#include <Servo.h> //include servo library for servo control

Servo horServo; //servo for left/right movement
Servo vertServo; //servo for up/down movement

byte randomhor; //define random horizontal position variable
byte randomvert; //define random vertical position variable
int randomdelay; //define random delay variable

#define HLEFTLIMIT 20 //define left limit on horizontal (left/right) servo
#define HRIGHTLIMIT 80 //define right limit on horizontal (left/right) servo

#define VTOPLIMIT 0//define top limit on vertical (up/down) servo
#define VBOTLIMIT 110 //define bottom limit on horizontal (up/down) servo


void setup()
{
  horServo.attach(8); //horizontal servo on pin 8
  vertServo.attach(9); //vertical servo on pin 9
  randomSeed(analogRead(0)); //Create some random values using an unconnected analog pin


  //=====================================================
  //Roll Eyes :D
  //=====================================================
  stepangle = twopi/stepnumber;
  for(int i = 0; i<stepnumber; i++){
    float angle = i*stepangle;
    float x = sin(angle)*circleradius;
    float y = cos(angle)*circleradius;

    x = map(x, 1-circleradius, circleradius, 0, 2*circleradius);
    y = map(y, 1-circleradius, circleradius, 0, 2*circleradius);

    horServo.write(x); //write to the horizontal servo
    vertServo.write(y); //write to the horizontal servo

    delay(10);
  }
  //=====================================================
}


void loop()
{
  randomhor = random(HLEFTLIMIT, HRIGHTLIMIT); //set limits
  randomvert = random(VTOPLIMIT, VBOTLIMIT); //set limits
  randomdelay = random(1000, 4000); //moves every 1 to 4 seconds

  horServo.write(randomhor); //write to the horizontal servo
  vertServo.write(randomvert); //write to the vertical servo
  delay(randomdelay); //delay a random amount of time (within values set above)





18  Using Arduino / Interfacing w/ Software on the Computer / Re: Facial Tracking... Infamous black screen on: September 25, 2013, 08:44:35 pm
I have gotten the haarcascade issue fixed but now am left with the black screen issue.


Tested on processing 2 64 and 32 bit and same result. I tried the v1.5 and it had library issues so wrote that off.

Screenshot included....

Here is the code:

Processing:

Code:
import processing.video.*;
import hypermedia.video.*; //import the necessary libraries
import java.awt.Rectangle;
import processing.serial.*;
import cc.arduino.*;


Capture myCapture;
OpenCV opencv;   //create the library object

// contrast/brightness values
int contrast_value    = 0;
int brightness_value  = 0;

// The arduino object:
Arduino arduino;   


/*********************************************************

  setup

*********************************************************/
void setup() {

   
 
    size( 320, 240 ); //set window size
   
    //windows fix addition   
    myCapture = myCapture = new Capture(this, width, height, 30);

    opencv = new OpenCV( this ); //setup openCV
   
    //windows fix addition
    opencv.allocate(width, height);
   
    //opencv.capture( width, height );   // open video stream
   
    //the arduino serial setup
    arduino = new Arduino(this, Arduino.list()[0], 57600);
   
    //list of available detection types: http://ubaa.net/shared/processing/opencv/opencv_cascade.html
    opencv.cascade( OpenCV.CASCADE_FRONTALFACE_ALT );
    //opencv.cascade( OpenCV.CASCADE_PROFILEFACE);
    //opencv.cascade( OpenCV.CASCADE_FULLBODY);

    // print usage
    println( "Drag mouse on X-axis inside this sketch window to change contrast" );
    println( "Drag mouse on Y-axis inside this sketch window to change brightness" );

}

/*********************************************************

  draw

*********************************************************/
void draw() {

    //windows fix addition
    myCapture.read();
    opencv.copy(myCapture);
   
    opencv.read(); //read a new camera frame
    opencv.convert( GRAY ); //convert frame to gray scale
    opencv.contrast( contrast_value ); //apply contrast filter
    opencv.brightness( brightness_value ); //apply brightness filter

    // detect faces and put them in an array
    Rectangle[] faces = opencv.detect( 1.2, 2, OpenCV.HAAR_DO_CANNY_PRUNING, 40, 40 );

    // display gray image
    image( opencv.image(), 0, 0 );

    // draw face detection rectangles
    noFill();
    stroke(255,0,0);
   
    if(faces.length > 0)
    {
      //the RC servo only follows the first face found.
      int mappedValue = (int) map(faces[0].x,0,width, 0, 255); //map from screen width to 255
      arduino.analogWrite(3, mappedValue); //send data to the arduino
    }
   
    for( int i=0; i<faces.length; i++ ) {
        rect( faces[i].x, faces[i].y, faces[i].width, faces[i].height );             
    }
}



/*********************************************************

  mouseDragged
 
  change brightness and contrast values

*********************************************************/
void mouseDragged() {
    contrast_value   = (int) map( mouseX, 0, width, -128, 128 );
    brightness_value = (int) map( mouseY, 0, width, -128, 128 );
}

/*********************************************************

  stop

*********************************************************/
public void stop() {
    opencv.stop(); //shutdown opencv on exit
    super.stop();
}


And the Arduino code is just the firmata:

Code:
#include <Servo.h>
#include <Firmata.h>

Servo servos[MAX_SERVOS];

void analogWriteCallback(byte pin, int value)
{
    if (IS_PIN_SERVO(pin)) {
        servos[PIN_TO_SERVO(pin)].write(value);
    }
}

void setup()
{
    byte pin;

    Firmata.setFirmwareVersion(0, 2);
    Firmata.attach(ANALOG_MESSAGE, analogWriteCallback);

    for (pin=0; pin < TOTAL_PINS; pin++) {
        if (IS_PIN_SERVO(pin)) {
    servos[PIN_TO_SERVO(pin)].attach(PIN_TO_DIGITAL(pin));
        }
    }
   
    Firmata.begin(57600);
}

void loop()
{
    while(Firmata.available())
        Firmata.processInput();
}

Any ideas?
19  Using Arduino / Interfacing w/ Software on the Computer / Facial Tracking... Infamous black screen on: September 25, 2013, 08:42:31 pm
Heres what I am attemptiing to do. Take my eyes and get them to pan and track to someones face when they walk up or by.
 
These will be used in a halloween prop and while I think I am on the right track I wanted to reach out to the group to garner thoughts and opionins as to the process and if there is a better way by all means I am open.

Currently my plan is to use Windows 7 64bit OS: Webcam input to Processing + OpenCV talking to Arduino.
 
      Later I will attempt to:
Implement a IR Webcam
Transmit via WiFi or Ethernet
Expand to Audio too.
Last night I spent some time installing everything and ran into a problem (which I have read about) where I get a black screen from my webcam and a haarcascade file location issue. This is where I am stuck right now.
 
Thanks in advance!
20  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 18, 2013, 07:46:31 pm
Here you guys go!

The video didn't come out the best but the hint is there.

http://youtu.be/-ls5GGaD9IM

Picture of the plexi https://docs.google.com/file/d/0Bx_sFejXsULPczZRYzRyMUd1bTg/edit?usp=sharing

Picture of the LED holder https://docs.google.com/file/d/0Bx_sFejXsULPMW5YMXdtWW9tLWs/edit?usp=sharing

Picture of the board https://docs.google.com/file/d/0Bx_sFejXsULPMWljTTdEU2wyRHc/edit?usp=sharing
21  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 16, 2013, 04:32:44 pm
I will when I get home. I finished the project thanks to you guys in the nick of time!

Lance
22  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 10:04:51 pm
Thanks for the help first of all! I know it can be a pain sometimes but I have corrected the coded/wiring and am pretty happy how this came out. This way it goes through the letters then turns it all on one letter at a time holds for a second then takes each letter down one at a time and then rinse and repeats.

Any other tips for this?

Code:
int ledI = 13;
int ledL = 12;
int ledO = 11;
int ledV = 10;
int ledE = 9;
int ledY = 8;
int ledo = 7;
int ledU = 6;

void setup() {               
 
  pinMode(ledI, OUTPUT); 
  pinMode(ledL, OUTPUT);
  pinMode(ledO, OUTPUT);
  pinMode(ledV, OUTPUT);
  pinMode(ledE, OUTPUT);
  pinMode(ledY, OUTPUT);
  pinMode(ledo, OUTPUT);
  pinMode(ledU, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  delay(1000);
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledI, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledL, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledO, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledV, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledE, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledY, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledo, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledo, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledo, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledI, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledL, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledO, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledV, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledE, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledY, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledo, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
  digitalWrite(ledU, LOW);   // turn the LED on (HIGH is the voltage level)
  delay(500);
 
}
23  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 09:45:17 pm
Ok I see what I did... put each resistor on the same line as the led so essentially muting the resistor. This correct?  smiley-eek-blue
24  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 09:28:33 pm
The LED's are working just fine what did I do?!  smiley-money
25  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 09:14:54 pm
I put one LED to one pin.

https://docs.google.com/file/d/0Bx_sFejXsULPZm9BMFloRW5UWjQ/edit?usp=sharing
26  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 08:49:57 pm
Retro

I deleted all delays and it blinked for a tiny fraction of a second but was almost unnoticeable so I deleted the delay after the low and it blinks left to right really fast which is not what I want. Thoughts?

Code:
int ledI = 13;
int ledL = 12;
int ledO = 11;
int ledV = 10;
int ledE = 9;
int ledY = 8;
int ledo = 7;
int ledU = 6;

void setup() {               
 
  pinMode(ledI, OUTPUT); 
  pinMode(ledL, OUTPUT);
  pinMode(ledO, OUTPUT);
  pinMode(ledV, OUTPUT);
  pinMode(ledE, OUTPUT);
  pinMode(ledY, OUTPUT);
  pinMode(ledo, OUTPUT);
  pinMode(ledU, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  delay(1000);
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledI, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledL, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledO, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledV, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledE, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledY, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledo, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledo, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);               // wait for a second
  digitalWrite(ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(500);               // wait for a second
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledI, LOW);    // turn the LED off by making the voltage LOW
 
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledL, LOW);    // turn the LED off by making the voltage LOW
 
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledO, LOW);    // turn the LED off by making the voltage LOW

  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledV, LOW);    // turn the LED off by making the voltage LOW

  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledE, LOW);    // turn the LED off by making the voltage LOW
 
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledY, LOW);    // turn the LED off by making the voltage LOW
 
  digitalWrite(ledo, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledo, LOW);    // turn the LED off by making the voltage LOW
 
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(50);
  digitalWrite(ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);
}
27  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 08:40:17 pm
Awesome thanks!  smiley-eek
28  Using Arduino / Project Guidance / Re: Can't write multiple pins HIGH why? on: February 11, 2013, 08:23:55 pm
Hey the delay is just the default blink I was going to slim it down but was halted in the code development! My wife would fall asleep LOL

The last two lines is what I was having issues with. Dunno why I didn't copy them in first!


Code:
int ledI = 13;
int ledL = 12;
int ledO = 11;
int ledV = 10;
int ledE = 9;
int ledY = 8;
int ledo = 7;
int ledU = 6;

void setup() {               
 
  pinMode(ledI, OUTPUT); 
  pinMode(ledL, OUTPUT);
  pinMode(ledO, OUTPUT);
  pinMode(ledV, OUTPUT);
  pinMode(ledE, OUTPUT);
  pinMode(ledY, OUTPUT);
  pinMode(ledo, OUTPUT);
  pinMode(ledU, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  delay(100);
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(ledI, LOW);    // turn the LED off by making the voltage LOW
  delay(3000);               // wait for a second
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(ledL, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledO, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledV, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledE, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledY, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledo, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledo, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledI, ledL, ledO, ledV, ledE, ledY, ledo, ledU, HIGH);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledI, ledL, ledO, ledV, ledE, ledY, ledo, ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}
29  Using Arduino / Project Guidance / Re: ARDUINO as a RPM limiter on: February 11, 2013, 07:34:20 pm
I would be interested in this for an automotive application any way to get over the overheating issue?

Lance
30  Using Arduino / Project Guidance / Can't write multiple pins HIGH why? on: February 11, 2013, 07:32:55 pm
Here is my code:

Code:
int ledI = 13;
int ledL = 12;
int ledO = 11;
int ledV = 10;
int ledE = 9;
int ledY = 8;
int ledo = 7;
int ledU = 6;

void setup() {               
 
  pinMode(ledI, OUTPUT); 
  pinMode(ledL, OUTPUT);
  pinMode(ledO, OUTPUT);
  pinMode(ledV, OUTPUT);
  pinMode(ledE, OUTPUT);
  pinMode(ledY, OUTPUT);
  pinMode(ledo, OUTPUT);
  pinMode(ledU, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop() {
  delay(100);
  digitalWrite(ledI, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(ledI, LOW);    // turn the LED off by making the voltage LOW
  delay(3000);               // wait for a second
  digitalWrite(ledL, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(ledL, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledO, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledO, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledV, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledV, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledE, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledE, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledY, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledY, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledo, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledo, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
  digitalWrite(ledU, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(3000);               // wait for a second
  digitalWrite(ledU, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
}

I then wanted the led I, L, O, V, E, Y, o, U to write high and tried to use digitalWrite but it errored on me. What should I use in its place?

Thanks
Pages: 1 [2] 3 4