Optical DMM and Luxmeter reader prototype

petergunn

Newly Enlightened
Joined
Mar 7, 2010
Messages
91
Got my first real flashlight a couple of weeks ago (see http://www.candlepowerforums.com/vb/showthread.php?t=265389 :)) and I now have at least half a dozen (Romisen RC-C6, Romisen N3, iTP A2, a couple of Ultrafire C3s etc.) so it seemed time to start accumulating some gadgets to compare and measure things :grin2:

I want to compare light output, battery discharge, etc. etc. all the usual stuff but being frugal (more $$$ on gadgets means less lights! :broke:) I didn't want to splurge on expensive kit that I don't know if I'm going to use. I do want to log stats to my computer and draw charts if possible but all the decent meters seem to be expensive and require RS232->USB converters and the software doesn't look great to me.

I ordered a cheap LuxMeter and autoranging DMM from Sears ($30 each) with no chance of being able to hook them up directly to the computer. Even if a hack was possible they probably wouldn't be optically isolated or remotely safe (don't like hooking up modded electronics to my computers :poof:).

So I have created a prototype application that reads LCD meter displays from real-time streaming webcam input :naughty: - therefore totally isolated from whatever the meters are hooked up to and it should be able to read any regular meter display and produce time series output that can be loaded into Excel or some other charting application :grin2:.



My DMM hasn't arrived yet so I can only test with my LuxMeter but it seems pretty accurate at reading the display - and its early days yet with only two evenings development invested.

I'm just knocking this up for myself and I'll probably get bored before its fully finished, but If anyone is interested in helping test, hacking code, or just suggesting features let me know. Its Open Source based on the excellent OpenCV library and the C++ code is written on Windows using the freeware Dev C++ IDE :twothumbs.

-PG
 
I'm impressed.

I don't think I'm going to do it that way myself though. I'm going to construct a light meter that produces a linear voltage output and connect it to a logging DMM.

At some point I might play with a PIC or AVR microcontroller, but I have not worked up enough enthusiasm for that yet. (Subtext: I want to play with assembler code. High level languages like C and C++ are so passé...)
 
Super idea!
knel.gif


Now "all" you have to do is program some X-t software to show the reading relating to time, so you have Amps/Voltage/Lux versus time. Then my friend you're king of the hill.
wav.gif
 
Super idea!

Now "all" you have to do is program some X-t software to show the reading relating to time, so you have Amps/Voltage/Lux versus time.

Reading multiple meters is easy enough :D...



Problem is I only have a LuxMeter right now (the other LCD in the pic is a clock) and when my DMM turns up I would have to choose between voltage or amps so I wouldnt be able to plot all 3 :( (unless I bought another DMM :naughty:)

-PG
 
Got my DMM (and a bunch of flashlights :cool:) - don't think there will be any problems reading it, although I might need to detect the decimal point? I've never used a DMM before so I'll have to read up how to actually measure things. :grin2:

Wont be doing anything with the Reader this weekend being Easter etc. but I'm thinking that adding a little charting window to plot measurements overtime might be handy and it could also be a place to add menus and buttons etc. :thinking:

-PG
 
At some point I might play with a PIC or AVR microcontroller, but I have not worked up enough enthusiasm for that yet. (Subtext: I want to play with assembler code. High level languages like C and C++ are so passé...)
When writing PIC C, it doesn't feel like a huge distance from assembler.
Still, assembler is good at times, and using it is probably a better way of learning about the hardware - also comes in handy if looking at the disassembly listing of a C program.
 
Dear,

i know; it's a couple of years ago on your post about this ;)

but can you please send me your source code?

i'm working on something simular: i want to read the gasmeter with an IP camera.
i allready got my ip camera working in my c# program
but i want to get the numbers in my c# program.

i got the idea how to do it, (almost exactly as yours) but i don't know how to perform this.

thank you very much.
 

Latest posts

Top