Thingiverse
Power meter sensor from BTE16-18 & Arduino Nano V3 by MilanGajic
by Thingiverse
Last crawled date: 3 years, 1 month ago
I have an old fashioned power meter with the spinning disk but wanted to get my power usage into Cacti.
I fashioned this cheapo sensor and it works ike a charm.
Sensor used:
BTE16-18 IR Reflection sensor from Aliexpress (https://goo.gl/4wDt8Z $0.78)
Connections:
Sensor->Arduino
VCC -> 5V
GND -> GND
OUT -> Pin D2
RST of the arduino is bridged to GND with a 10µF capacitor to prevent the Arduino from resetting when a serial conection is established (this works on a Nano V3 but different methods apply to other Arduinos). You MUST pull this capacitor if you want to upload code to the Arduino.
The IR will reflect off the plastic housing of the meter and it will be impossible to callibrate if you do not isolate the IR emitter. I just made a small tube out of some electrical tape that fits just around the emitter an sits flush against the plastic window; this fixed all callibration issues.
The sensor should be set up to look at the shiny side of the spinning disk. When the black stripe comes by it wil trigger the sensor (='tick'). The arduino will keep track of the ticks and the count can be read throught the USB serial interface of the Arduino. After connecting, issue command 'c' (count) to read the current count or 'd' (delta ... seemed logical at the time) to read the current count and reset the counter.
Shell code to check current tick count only:
#!/bin/sh
echo 'c' > /dev/ttyUSB0
ticks=$(head -n 1 /dev/ttyUSB0)
echo "ticks:$ticks"
Shell code to read current tick count and reset the counter:
#!/bin/sh
echo 'd' > /dev/ttyUSB0
ticks=$(head -n 1 /dev/ttyUSB0)
echo "ticks:$ticks"
Arduino code for Arduino Nano V3:
int buttonPin = 2;
volatile int buttonCounter = 0;
int buttonState = 0;
int inByte = 0;
void countButtonPresses();
void setup(){
pinMode(buttonPin, INPUT);
Serial.begin(9600);
buttonState=digitalRead(buttonPin);
attachInterrupt(0,countButtonPresses,FALLING);
}
void loop(){
while(Serial.available()==0){}
inByte = Serial.read();
switch (inByte)
{
case 99:
Serial.println(buttonCounter);
break;
case 100:
Serial.println(buttonCounter);
buttonCounter = 0;
break;
}
}
void countButtonPresses()
{
buttonCounter++;
}
I fashioned this cheapo sensor and it works ike a charm.
Sensor used:
BTE16-18 IR Reflection sensor from Aliexpress (https://goo.gl/4wDt8Z $0.78)
Connections:
Sensor->Arduino
VCC -> 5V
GND -> GND
OUT -> Pin D2
RST of the arduino is bridged to GND with a 10µF capacitor to prevent the Arduino from resetting when a serial conection is established (this works on a Nano V3 but different methods apply to other Arduinos). You MUST pull this capacitor if you want to upload code to the Arduino.
The IR will reflect off the plastic housing of the meter and it will be impossible to callibrate if you do not isolate the IR emitter. I just made a small tube out of some electrical tape that fits just around the emitter an sits flush against the plastic window; this fixed all callibration issues.
The sensor should be set up to look at the shiny side of the spinning disk. When the black stripe comes by it wil trigger the sensor (='tick'). The arduino will keep track of the ticks and the count can be read throught the USB serial interface of the Arduino. After connecting, issue command 'c' (count) to read the current count or 'd' (delta ... seemed logical at the time) to read the current count and reset the counter.
Shell code to check current tick count only:
#!/bin/sh
echo 'c' > /dev/ttyUSB0
ticks=$(head -n 1 /dev/ttyUSB0)
echo "ticks:$ticks"
Shell code to read current tick count and reset the counter:
#!/bin/sh
echo 'd' > /dev/ttyUSB0
ticks=$(head -n 1 /dev/ttyUSB0)
echo "ticks:$ticks"
Arduino code for Arduino Nano V3:
int buttonPin = 2;
volatile int buttonCounter = 0;
int buttonState = 0;
int inByte = 0;
void countButtonPresses();
void setup(){
pinMode(buttonPin, INPUT);
Serial.begin(9600);
buttonState=digitalRead(buttonPin);
attachInterrupt(0,countButtonPresses,FALLING);
}
void loop(){
while(Serial.available()==0){}
inByte = Serial.read();
switch (inByte)
{
case 99:
Serial.println(buttonCounter);
break;
case 100:
Serial.println(buttonCounter);
buttonCounter = 0;
break;
}
}
void countButtonPresses()
{
buttonCounter++;
}
Similar models
thingiverse
free
Easy Pump arduino stepper by mochr
...delaymicroseconds(300); // wait 1/2 a ms
}
delay(1000); // pause one second
}
else {
digitalwrite(6, high); // set enable low
}
}
grabcad
free
Easy Pump arduino stepper
...aymicroseconds(300); // wait 1/2 a ms
}
delay(1000); // pause one second
}
else {
digitalwrite(6, high); // set enable low
}
}
thingiverse
free
Arduino Nano PIR with dynamic presence control by matghir
...state-relay-module-240v-2a-output-with-resistive-fuse/32796321054.html?spm=a2g0s.9042311.0.0.yvdxux
you also need a 5v usb source
thingiverse
free
Arduino Nano case by mptrs
...hat's why i needed some more space to access the gnd, d2 and d3 pins.
now i only have to worry about putting gnd -> gnd.
thingiverse
free
Android Netrunner click tracker by dwjmeijer
...it in action: https://www.youtube.com/watch?v=8vfgded7kwc requires an arduino micro or similar i used a pololu a-star* 328pb micro, the cheapest...
thingiverse
free
Arduino Robot Avoid Obstacles by Paolo_Buono
...);
delay(4000);
case 4:
serial.println("left 4sec");
servoleft.write(60);
servoright.write(90);
delay(4000);
break;
}
}
thingiverse
free
Password keeper digispark by me by Andrusevich
...ter -2]); // pc achrome_1
hold = 1;
single = 0;//
}
}
lastreading = reading;
}
///////////////////////////code end
grabcad
free
Harry Vader's fully armed and operational Elder Light Saber Wand
...nalogwrite(blueled, 255);
}
else{
analogwrite(blueled, 0);
}
delay(5);
}
// end mode 5
}
// end main loop
thingiverse
free
Motion sensing night light by SteveOst
...talwrite(led1,low);
digitalwrite(led2,low);
}
serial.println("motion");
serial.print(motionvalue);
}
else
{
delay(300);
thingiverse
free
Simple Thermometer with humidity by marigu
...io 5 // display dio
+5v
gnd
sensor:
sda -> arduino a4
scl -> arduino a5
3.3v
gnd
prusa i3 mk3
20 infill
0.2
pla
no supports
Milangajic
thingiverse
free
Sleutel - Key by MilanGajic
...sleutel - key by milangajic
thingiverse
just a key
thingiverse
free
Teak Desk by MilanGajic
...teak desk by milangajic
thingiverse
a teak dest my sister used to own
thingiverse
free
Jovana Gajic - divers by MilanGajic
...jovana gajic - divers by milangajic
thingiverse
jovana gajic
thingiverse
free
40mm PVC Plug by MilanGajic
...40mm pvc plug by milangajic
thingiverse
a plug for a 40mm drain pipe
thingiverse
free
Tooth brush hook by MilanGajic
...tooth brush hook by milangajic
thingiverse
clip that goes on a shelf so you can hang a toothbrush
thingiverse
free
Ray Ban Frame by MilanGajic
...ray ban frame by milangajic
thingiverse
an attempt of a rayban frame for some rayban glasses i had.
thingiverse
free
Pen holder vertical by MilanGajic
...pen holder vertical by milangajic
thingiverse
just a little low-profile pen/tool holder for my desk/
thingiverse
free
KTM logo keychain by MilanGajic
...ktm logo keychain by milangajic
thingiverse
i needed to purge the orange filament, so i printer a couple of these.
thingiverse
free
Bicycle fringes plug by MilanGajic
...bicycle fringes plug by milangajic
thingiverse
a plug to secure fringes to a bicycle handle.
https://youtu.be/mw0jsl6j-0u
thingiverse
free
22lr ammo lifter - remixed by MilanGajic
...22lr ammo lifter - remixed by milangajic
thingiverse
made cut-outs for easy removal.
Nano
3d_export
$20
nano astronaut
...nano astronaut
3dexport
turbosquid
$29
robot nano
...bosquid
royalty free 3d model robot nano for download as 3ds on turbosquid: 3d models for games, architecture, videos. (1658714)
3ddd
free
iPod nano 4G
... nano 4g
3ddd
ipod , apple , плеер
ipod nano 4g
3d_export
$6
Nano Katana
...nano katana
3dexport
3ddd
free
iPod Nano
...ipod nano
3ddd
apple , плеер
d
turbosquid
$80
NANO CAR
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$20
nano house
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$18
nano house
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$5
Ipod nano
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3ddd
$1
iPod nano 6
...ipod nano 6
3ddd
apple , плеер
модель ipod nano 6, моделировался по чертежу.
V3
3d_export
$5
Poison-v3
...poison-v3
3dexport
poison-v3
3ddd
$1
Curtain v3
...curtain v3
3ddd
полупрозрачная штора v3
turbosquid
free
v3
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
potato v3
...potato v3
3dexport
turbosquid
$69
Skeletor v3
...royalty free 3d model skeletor v3 for download as ztl and obj on turbosquid: 3d models for games, architecture, videos. (1712713)
turbosquid
$49
Zombie v3
...
royalty free 3d model zombie v3 for download as obj and ztl on turbosquid: 3d models for games, architecture, videos. (1342458)
turbosquid
$2
Bitcoin v3
...
royalty free 3d model bitcoin v3 for download as c4d and prj on turbosquid: 3d models for games, architecture, videos. (1182845)
turbosquid
$29
Turret V3
...alty free 3d model turret v3 for download as ma, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1217498)
turbosquid
$20
Radiators v3
... free 3d model radiators v3 for download as max, max, and obj on turbosquid: 3d models for games, architecture, videos. (1607437)
turbosquid
$10
Wheel V3S
...e 3d model wheel v3s for download as 3ds, obj, fbx, and blend on turbosquid: 3d models for games, architecture, videos. (1344250)
Arduino
turbosquid
$7
Arduino
...turbosquid
royalty free 3d model arduino for download as max on turbosquid: 3d models for games, architecture, videos. (1197165)
turbosquid
$3
Arduino
...turbosquid
royalty free 3d model arduino for download as c4d on turbosquid: 3d models for games, architecture, videos. (1305484)
3d_export
$5
arduino satellite
...rt
this model is the exact arduino based satellite model with some basic sensors and camera modules and also includes batteries.
turbosquid
$1
Arduino UNO
...alty free 3d model arduino uno for download as , stl, and wrl on turbosquid: 3d models for games, architecture, videos. (1515932)
3d_export
$5
esp8266 box arduino
...esp8266 box arduino
3dexport
box for esp8266 module with wire hole. inside dimensions: 49x26 mm. height 15 mm.
3d_export
$60
Arduino Uno Rev3 Microcontroller 3D Model
...mega328p circuit board spark cable wire 5v 74v 9v 111v
arduino uno rev3 microcontroller 3d model danielgarnier4403 97237 3dexport
3d_export
free
arduino rover kit
...no!!! materials: no!!! rigged: no animated: no uv mapped: no it is not an exact copy of the original! not subject to 3d printing!
3d_ocean
$7
The housing for the 3d Printer
...the housing for the 3d printer 3docean arduino device housing stl the housing consists of two portions:...
3d_export
$5
arm 4 axis
...uno -4 servo motor 180° -3 joystick (x,y) for arduino -mdf wood -some wires -cnc laser cut...
3d_export
$5
solar tracker
...machine for the frame . list of material : -arduino uno -2 step motor with driver -4 ldr sensor...
Meter
3d_export
$5
Meter
...alog voltmeter and analog ampere meter is created with 3ds max 2018 and is ready to use and configurable as per your requirement.
3d_export
$5
gas meter with regulator
...gas meter with regulator
3dexport
american gas meter is one of the mechanical gas meters
turbosquid
$48
Flow Meter
...bosquid
royalty free 3d model flow meter for download as lwo on turbosquid: 3d models for games, architecture, videos. (1182781)
turbosquid
$20
Micro Meter
...osquid
royalty free 3d model micro meter for download as fbx on turbosquid: 3d models for games, architecture, videos. (1350448)
turbosquid
$1
electric meter
...d
royalty free 3d model electric meter for download as blend on turbosquid: 3d models for games, architecture, videos. (1499520)
turbosquid
$60
PH meter
...alty free 3d model ph meter for download as 3ds, c4d, and fbx on turbosquid: 3d models for games, architecture, videos. (1359254)
3d_export
$7
conveyor 12 meters
...conveyor 12 meters
3dexport
this is a belt conveyor. 12 meters of lenght.
turbosquid
$3
electronic meter
...del electronic meter for download as blend, dae, fbx, and obj on turbosquid: 3d models for games, architecture, videos. (1545606)
turbosquid
$56
Parking Meter
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$29
Volume meter
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
Sensor
3d_export
free
parking sensor
...parking sensor
3dexport
car parking sensor
turbosquid
$1
Sensor
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
3d_export
$5
Smoke sensor
...port
smoke sensor, can be an impressive element for your projects. easy to use, realistic image, low polygon, quality materials.
3d_export
$5
Air Quality Sensor v1
...air quality sensor v1
3dexport
air quality sensor v1
3d_export
$15
float sensor
...e up render. - all parts and materials are logically named. other formats ================= - collada (.dae) - autodesk fbx - obj
turbosquid
$26
Wind sensor C
...free 3d model wind sensor c for download as 3ds, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1328943)
turbosquid
$26
Wind sensor B
...free 3d model wind sensor b for download as 3ds, obj, and fbx on turbosquid: 3d models for games, architecture, videos. (1328168)
3d_export
$5
ultrasound sensor
...ivers convert ultrasound into electrical signals, and transceivers can both transmit and receive ultrasound. export in: -obj -fbx
3ddd
free
Вытяжка Shindo pallada sensor
... вытяжка
вытяжка shindo pallada sensor. в двух размерах - 600 и 900. текстуры в комплекте.
turbosquid
$52
Wind sensor A B C
...
royalty free 3d model wind sensor a b c for download as fbx on turbosquid: 3d models for games, architecture, videos. (1408406)
18
3ddd
$1
Remains / Sorenson 18 Lantern HL2617 18
... remains , светильник
remains - sorenson 18 lantern hl2617 18
3d_export
$6
rocks 18
...rocks 18
3dexport
rocks 3d model 18
3ddd
$1
Bed 18
...bed 18
3ddd
постельное белье
bed 18
3d_export
$6
tap-18
...tap-18
3dexport
3d_export
$17
F-18 Performance
...f-18 performance
3dexport
f-18 performance
3ddd
$1
Curtains 18
...curtains 18
3ddd
curtains 18 (3 models)
polys: 543000
other models:http://3ddd.ru/users/brast/models
3ddd
$1
ALBA p160-18
...alba p160-18
3ddd
alba
alba p160-18
turbosquid
$40
cottage 18
...bosquid
royalty free 3d model cottage 18 for download as max on turbosquid: 3d models for games, architecture, videos. (1377004)
turbosquid
$10
building 18
...osquid
royalty free 3d model building 18 for download as max on turbosquid: 3d models for games, architecture, videos. (1362221)
turbosquid
$7
Rock 18
...turbosquid
royalty free 3d model rock 18 for download as obj on turbosquid: 3d models for games, architecture, videos. (1486413)
Power
turbosquid
$100
power
...ower
turbosquid
royalty free 3d model power for download as on turbosquid: 3d models for games, architecture, videos. (1421990)
3d_export
$5
Power
...power
3dexport
3d_export
$5
power outlets
...power outlets
3dexport
power outlets
3ddd
$1
lion power
...lion power
3ddd
лев , статуя
lion power gold sculpture
3ddd
$1
Sea Power
...
компас , море , часы
часы с компасом sea power
3ddd
free
Meridiani / Power
...power
3ddd
meridiani , круглый
стол power производитель meridiani, диаметр 120,высота 67
3d_export
$5
Power Surge
...power surge
3dexport
the power surge is a all mesh carnival ride to lower in game part count and lag
turbosquid
$8
Airport Ground Power Unit (AXA Power )
... available on turbo squid, the world's leading provider of digital 3d models for visualization, films, television, and games.
turbosquid
$50
Power Houser
...rbosquid
royalty free 3d model power houser for download as on turbosquid: 3d models for games, architecture, videos. (1333800)
3d_export
$5
power outlet
...power outlet
3dexport
power outlet<br>format file maya 2018, 3d max 2017, obj, fbx