Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15454

Components advise for analogRead(pin)

$
0
0

i am going to give input to arduino on analog pin A(0).
please see picture and read my post.

i want to make this type input switch circuit using only 3 pins A(0),5v,gnd.
i want to ask you value of resistors (R1 -to -R18) for use in circuit to get following output.
from my circuit i want......
if i press sw1 .. analogRead(0) should be equal to (suppose x).
if i press sw2 .. analogRead(0) should be equal to double of x mean 2x.
if i press sw3 .. analogRead(0) should be equal to 3 times of x mean 3x.
if i press sw4 .. analogRead(0) should be equal to 4 times of x mean 4x.
if i press sw5 .. analogRead(0) should be equal to 5 times of x mean 5x.
..........................................................
.............................................................
............................................................
if i press sw18 .. analogRead(0) should be equal to 18 times of x mean 18x.
x can be any value different from (Free_value)
here..(Free_value) is analog Reading from A(0) . when A(0) is not connected to 5v or Gnd. Means sw1 to sw18 are not pressed.
and now output from sw1 to sw18 should be less than (Free_value).
i see Free_value is not stayable. it is jumping between(300-600),
i want to get total 18 values as you read above and see in picture.and value x to 18x should be less than (Free_value).
for this type circuit .. what value of resistor R1 to R18 should be used.??????

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 15454

Trending Articles