-
Grand Future Air Dried Fresh Beef Dog Food
Air Dried Dog Food | Fresh Beef

Carnivore Diet for Dogs

Go Back   Automotive Forums Car Chat > Engineering/ Technical
Register FAQ Community
Engineering/ Technical Ask technical questions about cars. Do you know how a car engine works?
Reply Show Printable Version Show Printable Version | Subscription Subscribe to this Thread
 
Thread Tools
  #1  
Old 09-12-2013, 06:36 AM
mrexp21 mrexp21 is offline
AF Newbie
 
Join Date: Jul 2013
Posts: 15
Thanks: 2
Thanked 0 Times in 0 Posts
Need help in project involving microcontroller

Hi,

I'm currently working on a project which requires the usage of microcontroller and I need help.

The project's objective is to read current(ampere) from vehicle electrical system and activates relay under certain current(ampere) range. For example, if the system reads current(ampere) below 1A, it will activates the relay. If the system read the current(ampere) above 1A, it will deactivates the relay.

My idea is; The flow of the system will start from current(ampere) reading gauge. The current(ampere) reading from the gauge will received by microcontroller. The microcontroller acts to determine the current(ampere) range to activate and deactivates the relay. This system contains 3 device to operate, reading gauge, microcontroller, relay.

My question is; 1) Is the idea above possible ? 2) If the idea is possible, how microcontroller will read the current(ampere) value from the gauge (input for microcontroller) ? 3) Is there any product which contains all the function of these 3 devices and programmable ?
Reply With Quote
  #2  
Old 09-12-2013, 01:25 PM
shorod's Avatar
shorod shorod is offline
SHO No Mo
 
Join Date: Jun 2004
Posts: 11,002
Thanks: 105
Thanked 359 Times in 350 Posts
Re: Need help in project involving microcontroller

To read the current using a microcontroller, you'll need a microcontroller with at least one analog input. If you can find one that will accept at least a 15V input that would be best to avoid catastrophic issues in the event you mis-wire something or have a part failure. You would then typically use a low value resistor (something like 0.1 ohm) and size it accordingly for the amount of power dissipated by the resistor under a worst-case current flow. This way, the voltage drop across the resistor can be read in by the microcontroller and, using Ohm's Law, calculate the current flowing through the resistor.

If you're looking to monitor total system current of an automotive charging system, the series resistor may not be practical. Instead, you'd want to use an inductive pickup to passively detect current draw. You can either purchase a DC inductive current probe that will provide a scaled DC output to the analog input of the microcontroller, or you can figure out how to make your own inductive pickup.

In recent years General Motors did field a smart charging system that essentially shut off the alternator load when the demand didn't require it. I'm not sure if the alternators in those systems had several wires coming from then with many of the signals you'd need, or if it was all internal. I want to say it was like a 2007 Saturn Vue where I first read about the smart charging system, but I'm not positive on that.

-Rod
Reply With Quote
  #3  
Old 09-22-2013, 10:49 PM
Bill Grissom Bill Grissom is offline
AF Newbie
 
Join Date: Aug 2009
Posts: 39
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Need help in project involving microcontroller

1 A is not too hard to read, but what will the max current be that needs to be passed? That may restrict the design. For low currents, like 1 A, you can use a series resistor and measure the voltage drop. You could even use the natural resistance in a car's wiring, but that might need in-place calibration, since probably varies between cars and even the same car over time (corrosion). GM & Ford did that in the 60's & 70's for their in-dash "ammeter" (really a voltmeter).

You must size the resistor for the power dissipated (i^2)*R. The voltage signal will be dV = i*R. Kelvin connections are best. For high currents, a Hall-effect sensor is better, since it causes no voltage drop and heating, but they aren't cheap.
Reply With Quote
 
Reply

POST REPLY TO THIS THREAD

Go Back   Automotive Forums Car Chat > Engineering/ Technical


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 10:29 PM.

Community Participation Guidelines | How to use your User Control Panel

Powered by: vBulletin | Copyright Jelsoft Enterprises Ltd.
 
 
no new posts