New user

hello [u]everybody[/u],

Today i receved my new Arduino-one starter kit. So i tried the basic sample with the led on board.(Blink) That works oke, changing delaytime and so on. What i like to do is change the delaytime in the blink sample, with a potentiometer. Later i will try to change the led for a relay to deliver power for a solenoid.(12~24volts 2amp.)

Thanks, Piet.

Not too sure what you are asking. Do you want methods or code?

What i like to do is change the delaytime in the blink sample, with a potentiometer.

Read the pot and use the readings in the delay function.

Codes samples, everything what's helps. I will change the delay time.

Piet,

see it as a puzzle. For example search on http://arduino.cc/en/Tutorial/HomePage for the magic words "Analog Input". To make things easier, they're followed by: "use a potentiometer to control the blinking of an LED"

Korman

How about:- delay(analogRead(0)); as a starter in place of your simple delay.

It works, Thanks for helping.