DC Voltage sensor

Codes for different boards and shields.
All codes only work with MQTT.

ESP8266.txt (1.8 KB)
ArduinoYun.txt (1.6 KB)
EthernetShieldW5100.txt (1.6 KB)
Arduino_Industrial_101.txt (904 Bytes)
EthernetShieldW5200.txt (1.6 KB)
EthernetShieldW5500.txt (1.6 KB)
ManualConnection.txt (2.6 KB)
WiFi101Shield.txt (1.7 KB)
WiFiShield.txt (1.7 KB)
MKR1000.txt (1.7 KB)

Sample from the Cayenne Dashboard.

Codes are for this sensor.

Voltage

2 Likes

I haven’t seen this sensor yet, what exactly does it do? Simply a 0/1 output, or analog like a volt meter? Do you have a link to it?

It’s a voltage divider.
Connect minus to Arduino Gnd and “S” to Analog pin.

https://www.ebay.com/itm/2pcs-Standard-Voltage-Sensor-Module-For-Robot-Arduino/261961157472?hash=item3cfe1a0b60:g:FdQAAOSw-vlVnncO

1 Like

Or simply make voltage divider and use @tad.dvor code :slight_smile:

1 Like

Cool, even simpler yet.