Go Down

Topic: what resistor should I be using for these 12v 50mA momentary buttons for my Ar3 (Read 171 times) previous topic - next topic

a18

Hi,

what resistor should I be using for these 12v 50mA momentary buttons for my Arduino R3?

The 5 LED buttons will be outputting a High, Low value for Arduino R3 to recognize to control a Servo Motor.

Enviroment temperature:-25 to 85 degree
Relative humidity: 40 to 80 degree
Rating:DC12V, 50MA
Contact Resistance: less than 100ohms
Insulation resistance: more than 100ohms, DC250V/1MIN
Dielectric strength: AC250V 50HZ for 1 MIN
Electrically life:100,000 cycles
Mechanical life:100,000 cycles
Travel:0.25+or-0.1mm
Operating force:160+or-50GF
Dimensions: 12 x 12mm(L x W)
Color: Red, Green, Blue, White, Yellow
Mainly used in digital camera, industrial equipment, home appliances, etc.
Stable performance, safety and reliability
 
 
 
Package includes:
 
RED *1PCS new
 
White *1pcs new
 
Yellow *1pcs new
 
Green *1pcs new
 
Blue *1pcs new
 
1974 wellcraft boat with Johnson 90 hp 2 stroke outboard motor to fish on the Potomac River in Washington DC USA Capital.

a18

This is an example Arduino code to use the read the button and execute the servo motor when button is pressed.


const int IButton = 10;     //Idle speed button

pinMode(IButton, INPUT);

IBState = digitalRead(IButton); // read the state of the Idle pushbutton value

if (IBState == HIGH) { // run the Idle speed function
delay(250); // to debounce button
Idle(); // go to Idle function
}

My guess is I can use 10K ohm resistor as well as the Arduino R3 internal pull-up resistor too.
1974 wellcraft boat with Johnson 90 hp 2 stroke outboard motor to fish on the Potomac River in Washington DC USA Capital.

larryd

Rating:DC12V, 50MA
This could imply there is already a resistor in the switch, BUT you will have to prove this.

Are you going to be using 12v?

Show us a good schematic of your proposed circuit. 
Show us a good image of your wiring.

e
No technical PMs.
The last thing you did is where you should start looking.

a18

Rating:DC12V, 50MA
This could imply there is already a resistor in the switch, BUT you will have to prove this.Don't really know and I have not bought it yet -

Are you going to be using 12v? NO

Show us a good schematic of your proposed circuit.  
Show us a good image of your wiring.

e

1974 wellcraft boat with Johnson 90 hp 2 stroke outboard motor to fish on the Potomac River in Washington DC USA Capital.

Go Up