M
M
Michael2021-03-22 13:04:32
Arduino
Michael, 2021-03-22 13:04:32

Can the Vin pin on the NodeMCU board be used as a 5V output?

I have a temperature and humidity sensor that works with an arduino when I connect it to 5V.

With NodeMCU, I tried to connect it to 3.3V when connecting the board itself via usb to the computer, but the power is clearly not enough for the board and sensor.

I read on the Internet that you can use the Vin contact to output 5V, but advice on this varies.

Will I be able to connect the board to the computer via usb, connect the sensor itself to the board not on 3V3, but on the Vin pin in order to receive 5V voltage?

60586ba2a773f067282264.png

============

UPD: I just read on reddit that some NodeMCU v3 boards (like mine) only use Vin as input. And they have a 5V output somewhere under the analog port as in the picture:
60587a5c80967065419701.jpeg

True, my board is under analog, reserved RSV ports

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Michael, 2021-03-24
@Misha5

The miracle happened.
I was able to get data from the sensor.
The order of my actions is as follows:
I removed the resistor between Data and VCC
I uploaded the sketch to the board, connected to the local and server
And only after that I put the resistor in place
Now everything works

1
15432, 2021-03-22
@15432

Well, yes, just be sure to make sure that you really need exactly 5 volts for the sensor

L
lonelymyp, 2021-03-23
@lonelymyp

Depends on the specific board.
The easiest way is to connect the board as usual in USB and measure with a multimeter whether there is a voltage of +5 volts on this vin pin. If there is a diode there, then the voltage may be slightly less, for example 4.8 volts, which is in principle acceptable.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question