Show Posts
Pages: 1 ... 19 20 [21]
301  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Practical uses of Capacitors in Arduino projects? on: July 12, 2010, 06:23:30 pm
Thanks guys for the replies. Do you remember practical projects here on Arduino website or everywhere on the web with cool things which uses (also as side components) capacitors?

The problem is: I do know what a capacitor does. The theory around it. Still I don't see how can I use in my Arduino projects, even if as a side component. Instead I always see lot of usages for eg resistors, buttons, transistors, etc.. Capacitors are still kind of vodoo to me.
302  Forum 2005-2010 (read only) / Frequently-Asked Questions / Practical uses of Capacitors in Arduino projects? on: July 11, 2010, 03:49:15 am
Hi guys,

I'm moving my first steps with Arduino. I have a base workshop kit with come with a lot of different capacitors. I read about what are they usually used, anyway I still don't see a practical use scenario for them on simple arduino projects..

Would you suggest example of usages of capacitors in Arduino projects? Both link than explainations.

Thanks,

Fabio Varesano
303  Forum 2005-2010 (read only) / Frequently-Asked Questions / Wires colors conventions on: July 08, 2010, 04:37:29 am
Hi guys,

moving my first steps with Arduino. I have a standard workshop kit which comes with lot of different color wires: green, yellow, blue, red, orange, gray, brown, white.

What are the conventions on using this colors?

Thanks,

Fabio Varesano
304  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Analog In and Resistors on: July 08, 2010, 04:35:02 am
The link to the image is http://yfrog.com/6ximage217qj
305  Forum 2005-2010 (read only) / Frequently-Asked Questions / Analog In and Resistors on: July 08, 2010, 04:34:20 am
Hi guys,

I'm moving my first steps with Arduino.. now I'm trying some reading from the Analog In. This is my circuit: yfrog.com/6ximage217qj

This is my code:

/* read the value from a potentiometer and use it as delay */

int potPin = 0;
int ledPin = 13;
int val = 0;

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
  
}

void loop() {
  val = analogRead(potPin);    // read the value from the sensor
  digitalWrite(ledPin, HIGH);  // turn the ledPin on
  Serial.println(val);
  delay(val);                  // stop the program for some time
  digitalWrite(ledPin, LOW);   // turn the ledPin off
  delay(val);                  // stop the program for some time
}


I don't get why I always get 1023 on serial monitor.

Given that the current flows from 5V to the two resistors I would have expected a decrease in the voltage thus reading something smaller than 1023.

What am I doing wrong? If this has something with wrong circuit stuff, would you point me so some documentation about it?

Thanks,

Fabio Varesano
Pages: 1 ... 19 20 [21]