Vehicle Intelligent Distance Avoidance Sensor KWh Meter Cloud Enabler

by Dirkske in Workshop > Energy

937 Views, 5 Favorites, 0 Comments

Vehicle Intelligent Distance Avoidance Sensor KWh Meter Cloud Enabler

kWh sensor.jpg

Yes, achieve actionable insights from your old kWh meter by putting it's big data in the cloud.

What You Will Need

fiddytrhcnts.png

1 Arduino uno (about 3 dollars at Aliexpress)

3 Female to male jumper wires (10 cents)

1 Vehicle intelligent distance avoidance sensor (50 cents)

3 pieces of tape

Technical Stuff

vehicle_intelligent_obstacle_avoidance_sensor_distance_far_infrared_sensor_module_for_arduino.jpg

Connect gnd to gnd, vcc to 5v and out to analog pin 4.

And then, upload the code below.

It's unnecessarily lengthy, yet readable.

int sensorpin = 4; // analog pin for vehicle intelligent distance avoidance sensor output

int val = 0; // variable for sensorpin output

void setup() {

Serial.begin(9600); // fire up the serial monitor!

}

void loop() {

val = analogRead(sensorpin); // read vehicle intelligent distance avoidance sensor output

Serial.println(val); // send vehicle intelligent distance avoidance sensor output to your cloud enabled device

}

Getting It to Work

output.png

Tape your vehicle intelligent distance avoidance sensor to your kWh-meter. Handle your tape carefully, you only have three pieces.

Keep fiddling with the vehicle intelligent distance avoidance sensor until the LED of the vehicle intelligent distance avoidance sensor sings in tune with the black mark on the spinning disk.

You're done.