EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   Open ReVolt: open source DC motor controller (https://ecomodder.com/forum/open-revolt-open-source-dc-motor-controller.html)
-   -   Simple ammeter/amp-hour meter (https://ecomodder.com/forum/showthread.php/simple-ammeter-amp-hour-meter-24772.html)

harlequin2 01-28-2013 11:58 PM

Simple ammeter/amp-hour meter
 
I've just made an ammeter/amp-hour meter if anyone's interested. It uses a Tamura current sensor, a 16 x 2 LCD and a small pcb with a PIC micro on board.
The display shows Amps flowing through whatever cable you stick the sensor on and Amp-Hours accumulated since the last rest. The range is 0 - 511 amps and it measures about 82 x 41 mm. It needs 12 V power and is completely isolated from whatever you are measuring.
Parts cost is around $40 if you want to build your own or I can sell you a completed one - without case - for $99.
Send a PM if interested.

swoozle 01-29-2013 05:04 PM

Although I'm not interested in buying one, I'm interested in the design details. I'm sure there are others as well. Can you post it?

Thx

harlequin2 01-29-2013 06:56 PM

4 Attachment(s)
Quote:

Originally Posted by swoozle (Post 353711)
Although I'm not interested in buying one, I'm interested in the design details. I'm sure there are others as well. Can you post it?

Thx

I'll give it a shot- here' a picture and some pcb layouts. The schematic was too big to upload, I'll see if I can squeeze it down a bit.

SS = silk screen, TC = top copper, BC = bottom

Attachment 12367

Attachment 12368

Attachment 12369

Attachment 12370

harlequin2 01-29-2013 07:02 PM

1 Attachment(s)
Here's the schematic as a zipped .pdf.

Attachment 12379

harlequin2 01-29-2013 07:12 PM

1 Attachment(s)
Here's the C source code. Compiled with the CCS C compiler running on MPLAB IDE V 8.88. The micro is a PIC16F1826, current sensor is Tamura L01Z400S05.

Attachment 12380

Should be enough info to make one!
The sch and pcb files are DesignSpark

swoozle 01-29-2013 07:15 PM

Nice, thank you.

harlequin2 01-30-2013 02:43 PM

1 Attachment(s)
I finally got around to putting all the files together in one place, so here they are:
Attachment 12382

The .sch and .pcb files are DesignSpark. The source code files are compiled with CCS C compiler running under MPLAB V 8.88 and the .mcp file is the project file for this.

You can make a 255 A version by changing to a Tamura 200 A sensor with some other minor changes.

henwilsch 04-08-2015 02:28 AM

Hi, Is it possible to get the .hex file from you to program into the chip. I treid Mplab but it gives an error message when I try to build the project.
I want to adapt the circuit to read current trough a load and give me A/Hour reading. This is to test battery capacity.

The .ASM file will also work.

Astro 04-08-2015 06:56 PM

Quote:

Originally Posted by henwilsch (Post 474555)
...I treid Mplab but it gives an error message when I try to build the project...

Are you using the CCS compiler in MPLAB.
You need to use the same compiler as the source code was written for otherwise MPLAB will throw errors.
The other option is to alter the source code to be compatible with whatever compiler you are using.

henwilsch 04-13-2015 02:33 AM

Thanks it seem to work now. I will build it and try it.


All times are GMT -4. The time now is 10:15 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com