Arduino (Uno) and (Mega 2560)

Hi

I have the products above and my project is to build a panel with: potentiometer, Rotary Encorders, on/off and on/off/on toggle switches!

I have solve how I will connect the pots but can I connect the on/off switches acording to:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1263518901/all , reply 12?!

In what way shall I connect the on/off/on switches?

I have read that the cards "Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms.

I will save a litte money if I am enable the resistors but is 20kohm too much?

Best Fredrik

In what way shall I connect the on/off/on switches?

The same way, except that the two outside pins (the two on legs) connect to two digital pins.

I will save a litte money if I am enable the resistors but is 20kohm too much?

Not for pullup resistors. What is your concern?

PaulS:

In what way shall I connect the on/off/on switches?

The same way, except that the two outside pins (the two on legs) connect to two digital pins.

I will save a litte money if I am enable the resistors but is 20kohm too much?

Not for pullup resistors. What is your concern?

Hi

The switch has a breaking capacity of 12V / 20A but how much power does one switch consume?

I know that the digital pin has 5V and 40mA but does the switch take so much power?

According for my question for the internal pullup resistor, I am wondering if the value of min 20kohm is too much for a switch it maybe need 1kohm, a resistor is a component there theirs value does not change?!

I have ordered the book Getting started with Arduino :slight_smile: so I hope that will help a lot :slight_smile:

Best Fredrik

The switch has a breaking capacity of 12V / 20A but how much power does one switch consume?

Switches allow current to flow, or not. They consume only minimal amounts of current - so minimal as to be safely ignored.

I know that the digital pin has 5V and 40mA but does the switch take so much power?

The power consumed by the switch would be far less than 1 mA.

I am wondering if the value of min 20kohm is too much for a switch it maybe need 1kohm

No. Thousands of Arduinos happily deal with switches using the internal pullup resistors, and they work just fine.

PaulS:

The switch has a breaking capacity of 12V / 20A but how much power does one switch consume?

Switches allow current to flow, or not. They consume only minimal amounts of current - so minimal as to be safely ignored.

I know that the digital pin has 5V and 40mA but does the switch take so much power?

The power consumed by the switch would be far less than 1 mA.

I am wondering if the value of min 20kohm is too much for a switch it maybe need 1kohm

No. Thousands of Arduinos happily deal with switches using the internal pullup resistors, and they work just fine.

Too buy a external resistor is waste of money :slight_smile:

I just need too connect the switch snd anable the internal with a code, it cannot be easier than thise :slight_smile:

I have downloaded the program Fritzing and enoy it a lot :slight_smile: But can you test the components virtual? Great if you could test it so you do not burn anything :wink:

Best Fredrik

Look for arduino emulator in google.

H

I am wondering if Rotary Encorder shall be connected in the same way like I connect Rotary potetionmeter?

Does it require more than one analog/digital pin?

Best Fredrik

I am wondering if Rotary Encorder shall be connected in the same way like I connect Rotary potetionmeter?

No.

Does it require more than one analog/digital pin?

Yes. 2 digital pins.

http://arduino.cc/playground/Main/RotaryEncoders

Hi

I think I now understand in what way the encorders will be connected :slight_smile:

A encorder has 2 pins an one side and 3 pins on the others. The 2 pins side are handle the push button and the 3 pins side handle the encorder, correct if it wrong!

The middle is the power 5V and the outer pins are the A & B channels that will be connect to the digitals port!

A will also use and enable the internal resistors at the pins how needs it!

Best Fredrik