Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free > Open ReVolt: open source DC motor controller
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 01-28-2013, 11:58 PM   #1 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
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.

__________________
Sometimes I sits and thinks and sometimes I just sits.
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 01-29-2013, 05:04 PM   #2 (permalink)
EcoModding Lurker
 
Join Date: Nov 2011
Location: Kirkland, WA
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
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
  Reply With Quote
Old 01-29-2013, 06:56 PM   #3 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
Quote:
Originally Posted by swoozle View Post
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

AH Meter SS.pdf

AH_Meter TC.pdf

AH_Meter BC.pdf

Click image for larger version

Name:	AH Meter2.jpg
Views:	88
Size:	104.6 KB
ID:	12370
__________________
Sometimes I sits and thinks and sometimes I just sits.

Last edited by harlequin2; 01-29-2013 at 07:03 PM..
  Reply With Quote
The Following User Says Thank You to harlequin2 For This Useful Post:
henwilsch (04-08-2015)
Old 01-29-2013, 07:02 PM   #4 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
Here's the schematic as a zipped .pdf.

AH_Meter - Schematic.zip
__________________
Sometimes I sits and thinks and sometimes I just sits.
  Reply With Quote
The Following 2 Users Say Thank You to harlequin2 For This Useful Post:
henwilsch (04-08-2015), swoozle (01-29-2013)
Old 01-29-2013, 07:12 PM   #5 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
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.

AHr_Meter.zip

Should be enough info to make one!
The sch and pcb files are DesignSpark
__________________
Sometimes I sits and thinks and sometimes I just sits.

Last edited by harlequin2; 01-29-2013 at 07:33 PM..
  Reply With Quote
The Following User Says Thank You to harlequin2 For This Useful Post:
henwilsch (04-08-2015)
Old 01-29-2013, 07:15 PM   #6 (permalink)
EcoModding Lurker
 
Join Date: Nov 2011
Location: Kirkland, WA
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Nice, thank you.
  Reply With Quote
Old 01-30-2013, 02:43 PM   #7 (permalink)
EcoModder
 
Join Date: Mar 2010
Location: New Zealand
Posts: 181
Thanks: 0
Thanked 32 Times in 20 Posts
I finally got around to putting all the files together in one place, so here they are:
AH_Meter_Files.zip

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.
__________________
Sometimes I sits and thinks and sometimes I just sits.

Last edited by harlequin2; 02-11-2013 at 11:56 PM..
  Reply With Quote
The Following User Says Thank You to harlequin2 For This Useful Post:
henwilsch (04-08-2015)
Old 04-08-2015, 02:28 AM   #8 (permalink)
EcoModding Lurker
 
Join Date: Apr 2015
Location: South Africa
Posts: 2
Thanks: 4
Thanked 0 Times in 0 Posts
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.

Last edited by henwilsch; 04-08-2015 at 08:49 AM..
  Reply With Quote
Old 04-08-2015, 06:56 PM   #9 (permalink)
Dreamer
 
Join Date: Nov 2013
Location: Australia
Posts: 349
Thanks: 95
Thanked 210 Times in 150 Posts
Quote:
Originally Posted by henwilsch View Post
...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.
  Reply With Quote
Old 04-13-2015, 02:33 AM   #10 (permalink)
EcoModding Lurker
 
Join Date: Apr 2015
Location: South Africa
Posts: 2
Thanks: 4
Thanked 0 Times in 0 Posts
Thanks it seem to work now. I will build it and try it.

  Reply With Quote
Reply  Post New Thread


Thread Tools




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