# Broken USB socket, deriving power via Vin

**URL:** <https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233>\
**Category:** Uncategorized\
**Created:** [February 10, 2022, 5:42pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233 "2022-02-10T17:42:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 10, 2022, 5:42pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/1 "2022-02-10T17:42:49Z")

</div>

SDS011 Stop Working

Attempting to change the cable on my sensor I managed to break the USB socket (just used for power). The whole project has worked faultlessly for the best part of a year. No problem I thought, just power direct to Vin and Gnd pins. Temperature and humidity sensors work fine, but SDS011 particulate refuses to work. Can this have anything to do with the way I am powering it? I have ordered a replacement node MCU but don’t have a lot of confidence that replacement will cure its ills.

Any pointers appreciated.

---

<div class="post-metadata">

**Author:** ![pjg](https://forum.sensor.community/user_avatar/forum.sensor.community/pjg/32/194_2.png) [@pjg](https://forum.sensor.community/u/pjg)\
**Post date:** [February 10, 2022, 7:13pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/2 "2022-02-10T19:13:01Z")

</div>

Can you send a picture?

Power on Vin and SDS on VU ? It should work.  
Do you have at least 1,5 A out of the PSU or USB charger?

Or can you test the SDS with the USB to TTL dongle you should have received?

---

<div class="post-metadata">

**Author:** ![Jan](https://forum.sensor.community/user_avatar/forum.sensor.community/jan/32/656_2.png) [@Jan](https://forum.sensor.community/u/Jan)\
**Post date:** [February 10, 2022, 8:38pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/3 "2022-02-10T20:38:22Z")

</div>

With the USB socket gone, the vu (V-usb) is no longer funcional probably.  
The SDS011 needs 4.7~5.3V to operate (datasheet)  
You could use a 5V powersource to power the SDS011 directly and power the MCU with the same powersource through the Vin pin. Make shure they have a common ground.  
A replacement MCU will do the trick.

---

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 10, 2022, 11:51pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/4 "2022-02-10T23:51:13Z")

</div>

Thanks for your reply, the PSU is the same charger I was using before it stoped, rated at 1.5 amps so I assume OK. I will have a look but I dont think I had a TTL dongle (it wasnt a kit, I purchased the parts direct).

---

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 10, 2022, 11:56pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/5 "2022-02-10T23:56:13Z")

</div>

Thanks for your reply, I will see if I can test the SDS011 directly as you suggest. Can you elaborate on what you mean by V-usb being no longer functional? It does appear that at least part of the MCU is still functional.

---

<div class="post-metadata">

**Author:** ![pjg](https://forum.sensor.community/user_avatar/forum.sensor.community/pjg/32/194_2.png) [@pjg](https://forum.sensor.community/u/pjg)\
**Post date:** [February 11, 2022, 8:16am UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/6 "2022-02-11T08:16:07Z")

</div>

@tadder is right.

[https://arduino.stackexchange.com/questions/75645/vin-vu-pins-of-nodemcu-v3](https://arduino.stackexchange.com/questions/75645/vin-vu-pins-of-nodemcu-v3)

It seems that the VU only gets current form the USB and not from the chip itself (which could be powered by the Vin). So if the USB plug is broken/not connected, there is nothing coming out of the VU pin.

---

<div class="post-metadata">

**Author:** ![Jan](https://forum.sensor.community/user_avatar/forum.sensor.community/jan/32/656_2.png) [@Jan](https://forum.sensor.community/u/Jan)\
**Post date:** [February 11, 2022, 1:18pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/7 "2022-02-11T13:18:19Z")

</div>

That’s correct. The voltage of the vu pin is taken directly from the usb connector ( and thus the only direct source for 5V).  
I guess the MCU works when powered via the Vin pin??

---

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 11, 2022, 2:03pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/8 "2022-02-11T14:03:27Z")

</div>

Yes, the MCU works fine powered from Vin. I guess I will have to wait for my replacement.

---

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 11, 2022, 2:13pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/9 "2022-02-11T14:13:31Z")

</div>

Thanks for that. So clearly I am waisting my time trying to use VU.

---

<div class="post-metadata">

**Author:** ![tadder](https://forum.sensor.community/letter_avatar_proxy/v4/letter/t/bb73d2/32.png) [@tadder](https://forum.sensor.community/u/tadder)\
**Post date:** [February 11, 2022, 2:26pm UTC](https://forum.sensor.community/t/broken-usb-socket-deriving-power-via-vin/1233/10 "2022-02-11T14:26:12Z")

</div>

Thanks to everyone for their help, which has saved me a lot of head scratching.  
In order to assist others with the same problem I have renamed the topic “Broken USB socket, deriving power via Vin”
