Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problems with PIC16F876A

Status
Not open for further replies.

Plateau

Junior Member level 3
Joined
Jan 4, 2012
Messages
30
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,553
Hello folks, are you fine?

I am developing a solution to convert the range of the resistence meter of my car's fuel tank to another range because the new dashboard does not work correctly. The original meter works with a range between 0 (empty) and 90(full) Ohms
and the new meter works with a range between 44(full) and 290(empty) Ohms.

The configuration of 16F876A is:

PIC.JPGbanco resistores.JPG

Using CCs as the compiler, I have created a logic in wich according to the voltage value that was read I set one of the output pins as LOW (output_low) and all of others as FLOAT(output_float) and that's why the PAINEL resistence value (an output in the image above) related to VSS (GND) is 20 Ohms (from PIC) + resistor associated on the pin (example: PIN_A1 -> 20 + 22 Ohms). When I measure the ohm value with a multimeter the value is OK but when I make a voltage divider using a 50 Ohm permanent resistor the voltage value is too wrong, i.e when PAINEL has 263 Ohm in the output and the input voltage of the voltage divider is 10v the resulting voltage is wrong (the correct should be 8.4v but the measured is 6v).

When I simulate in ISIS Proteus this problem does not occur.

Can anybody help me?

Regards,

Pedro Rosa!
 

The description of the problem provided in your initial post is rather unclear.

Perhaps, there is a simpler solution than the rather complex solution presented. Or perhaps not.

To better understand the issue at hand, please clarify the scenario.

You have replaced the fuel gauge in your vehicle and the new fuel gauges specs significantly differ for the original. Correct?

Is the current fuel tank level sensor simply a variable resistor actuated by a float with 0 Ohms representing Empty and 90 Ohms representing Full?

Do these fuel gauges display the fuel level based on an inputted voltage level derived from a resistive voltage divider which includes the fuel tank level sensor?

If so what is the new fuel gauges input range in terms of voltage?

BigDog
 

Hello Big, are you fine?

First of all sorry for the unclear explanation about my problem. I will make a video explaining so much better.

You have replaced the fuel gauge in your vehicle and the new fuel gauges specs significantly differ for the original. Correct?

I have replaced the old analog dashboard for a new digital dashboard. My car is a Chevrolet Kadett (In USA is the same of Pontiac LeMans and UK is the same of Vauxhall Astra, do you know?)

The old dashboard:
dsc00038copy.jpg

The new dashboard:
lcd_branco_01.jpg

The old and current fuel tank level sensor is a variable resistor actuated by a float where 0 Ohms representing empty tank and 90 Ohms representing full tank.

The new dashboard needs a fuel tank level sensor that give us 44 Ohms when the tank is full and 290 Ohms when the tank is empty


Do these fuel gauges display the fuel level based on an inputted voltage level derived from a resistive voltage divider which includes the fuel tank level sensor?

The new dashboard calculate the level of fuel using a voltage divider wich includes a 50 Ohms permanent resistor and the fuel tank level sensor... and the voltage input is 10v.
The least value of voltage should be 4,86v ((44/(44 + 50))*10v) and the highest should be 8,52v ((290/(290 + 50))*10v)

The PIC give us a value of resistence according to the value of voltage read from a voltage divider wich include the old fuel tank level sensor (0 ~ 90 Ohms) and a 100 Ohms permanent resistor and the voltage input is 5v.

Well... when I measure the value of the resulting resistence with the multimeter all the things is ok, but when I tried to make a voltage divider with this resulting resistence the ouput voltage is always lower than 6v.

Is there still any doubt?

Thanks for helping me,

Regards,

Pedro Rosa!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top