1

Can someone help me. I have this sensor

I just connected it to the 3V pin of my arduino only I read online that its better to connect it to a Arduinopin for power so you can put it off when not measuring. How do I do this? Can I just connect it to, let's say D4 and put this to HIGH and LOW or do I need something more. I googled a bit but found all kinds of different solutions. Some even talked about the need to PULLUP and PULLDOWN. whats the best way to do this.

asked Aug 25, 2019 at 22:35
3
  • If the sensor draws less than about 20mA when running then yes, you can just power it from any GPIO pin and set it HIGH for on or LOW for off. If you need more than about 20mA then you will need to switch the power with a transistor. Commented Aug 25, 2019 at 22:43
  • Thnx :). How do I find out how much mA it draws? its not on the board itself. Commented Aug 26, 2019 at 0:01
  • RTFM. If it's not in the FM then RTFM for the major component(s). (F = Fine :p ) Commented Aug 26, 2019 at 0:02

1 Answer 1

0

The entire circuit board, including the LM393, power light and it's resistor, uses 2.2 mA at 3.3 VDC (4.12 mA at 5 VDC). Once the comparator is "triggered", the "D0-LED" and it's associated resistor come in to play which bumps the current up to 3.6 mA at 3.3 VDC (7.82 mA at 5 VDC).

I think it would be OK to use digitalWrite(pin_number, HIGH) to power the circuit board, then use digitalWrite(pin_number, LOW) to turn the power off.

answered Aug 26, 2019 at 1:04
3
  • Where did you find the specs? And do you read Dutch? Commented Aug 26, 2019 at 3:20
  • I used a DVOM with a variable output power supply to test one of the boards. This "voltage comparator board" is a common "addition" to several different moisture / rain sensors available on Aliexpress, Ebay, Amazon, etc. I don't read, write, or understand Dutch. Commented Aug 26, 2019 at 3:42
  • It worked. It gave lower numbers but I'm making % out of them anyway. thnx :) Commented Aug 26, 2019 at 8:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.