and will have a rotary switch to control the throttle pedal input
what i did not understand is number 7 I how to get fuel info from throttle and rpm ?
what do you think about this method of making Liquid capacitive sensor?
You can do that.Or you can read the value coming out of the receiver in the car.This is the core of my proposal.The engine uses fuel when it is running.At any particular RPM, the engine is using more fuel at higher throttle settings.At any particular throttle setting, the engine is using more fuel at higher RPM.I doubt that either of these relationships are linear, but let's assume they are for a starting point.At the start of your program, set a fuelConsumed variable to zero.Set up a method to count revolutions of the motor. I guess external hardware or an interrupt.In a loop, read the throttle position. If you are reading the throttle channel from your receiver, I would guess that the throttle reading would return the number of microseconds of the throttle servo pulse, maybe a value ranging from 500 to 1500. Map that to a range that starts at zero.Now, multiple the throttle reading by the number of revolutions since the last pass through.Add the result to the fuelConsumed variable.Reset the number of revolutions to zero.Transmit the fuelConsumed number to the pit.Repeat the loop.The number transmitted can be translated to an estimate of the fuel consumed.It will be some goofy number. But a number that grows at a similar rate to the rate of fuel consumption.You just need to multiply it by some factor to get a usable fuel consumed number.What value for the factor? You need to determine that. And adjust it through trial and error.Try it out. Calibrate it to read Full when the bottle is full. Empty when the bottle is empty. And a percentage in between.Then fill the bottle with 1/10 of the full capacity. Now shake the bottle and see what reading you get.Is that usable?I am not saying that it is not doable. But I think it is hard to do it well.
The normal way to measure fuel is with a float and pot. Measure voltage with Arduino. You'll have to cut hole in tank to insert float and glue electrical connector in place. https://www.ebay.com/itm/Fuel-Level-Sensor-Gas-Gauge-Direct-Fit-for-Chevy-GMC-Isuzu-Oldsmobile-Pontiac/132034473951?hash=item1ebdde2fdf:g:htAAAOSwG7lZwRaA:sc:ShippingMethodStandard!93117!US!-1&vxp=mtr
Is there enough space in your model to accomodate one of these, they tend to be physically large.
I doubt that either of these relationships are linear, but let's assume they are for a starting point. But I think it is hard to do it well.
oh right i think not because the tank is 750mlbut what about the sensor used in it ? maybe i can find something similar but small
Glue a micro switch to the bottom of the tank. Tie a string to the end of the switch and connect the other end of the string to a fishing bobber. The bobber holds the switch closed until fuel level is lower than the string length. The switch opens.
No need to make holes in the tank other than for the two small wires. You assemble the micro switch with bobber through the fuel tank fill hole. You don't even need a string on the bobber. Just clip the bobber to the switch lever and glue it in place.You could also attach a small potentiometer inside the tank and use a float (small bobber) to get analog measurements. Again, all assembly can be make from the tank fill hole.
ok but the tank fill hole will be closed with a cap so how should that be done ?and about the potentiometer how would it take it's place back to default position ?