can I upload this Ex in Arduino duemilanove? because I can't find the "Analog Out" on the board.
can some one let me know what is the input and the output supposed to be in this example?
can I replace the analog INPUT and OUTPUT to degital ? How?
what is the range of the "Set point"?
analogWrite() works with the PWM pins, so pin 3 refers to digital pin 3, not analog pin 3. The analog inputs are input only (as outputs they are digital, but without PWM capabilities)
That should give you an input voltage on the Analog 0 between 0 and 5V. The analogRead returns a value between 0 and 1023. Use a potentiometer with at least 10K, 100K would be fine.
Yes, The PWM control varies between 0 (0% on) and 255 (100% on)
see what I"m trying to do is to control the PWM via distance. i'm using the following
to read distance and i'm thinking of feeding the distance that the sensor is reading as a PID Input.
i'm unable to figure this out, can i do the following: