Informática, pregunta formulada por ang2689, hace 8 meses

What type of pin would you need for an analog actuator?

Respuestas a la pregunta

Contestado por jromansoledispa
1

Respuesta:

PinMode (x, INPUT) -> SW3 = ON (rest OFF). The read values will be random if the Arduino pin is open. The pin is in a high impedance state (100 Mohms resistance).

PinMode (x, INPUT_PULLUP) -> SW3 = ON & SW4 = ON (rest OFF). Values read with nothing connected to the pin is HIGH. Resistor R1 has a value depending on the microcontroller, but it has a value between 20kOhm and 150kOhm.

PinMode (x, OUTPUT) & digitalWrite (x, HIGH) -> SW2 = ON & SW1 = + 5V (rest OFF). Low impedance state, there is no internal resistance and it is necessary to put a suitable resistance at the pin output so as not to exceed the maximum 40mA (source) allowed

PinMode (x, OUTPUT) & digitalWrite (x, LOW) -> SW2 = ON & SW1 = GND (rest OFF). Low impedance state, there is no internal resistance and it is necessary to put a suitable one so as not to exceed the maximum 40mA (sink) allowed

Explicación:

HOPE THIS CAN HELP YOU

Otras preguntas