ok i know this is a ridiculous code but im learning. basically i have a project im building for a turbo charged car. this product needs to be efficient in order to keep the car from blowing up :~
so the code has no menu right now but heres a few problems im having
as the boost pressure rises the numbers that match the value are rising so fast i can barley read them..
and the servo is so jittery becasue the value that it moves at is so small, how can i make it so its within a certain range of values?
also i need a menu so that i can make adjustments to values in the code by the two push buttons on my enclosure.
any help is very appreciated!
Give us a clue. What the hell do you have attached to pin 6? You never read from the pin or write to the pin. You just keep jerking it around. What is going on?
basically i have a project im building for a turbo charged car. this product needs to be efficient in order to keep the car from blowing up
Please don't. You are nowhere near ready to have the Arduino controlling a turbo charger.
Ive already tested the prototype and it works. it just needs some bugs fixed...
i dont need people to tell me i cant do it i need people to help teach me how to write code better.
Then why are you changing the pinMode back and forth from input to output etc.? Take a look at the 'blink' example if you want to learn how to turn an LED on and off.
LCD-routines are extremely slow for this application, engine needs much more attention all the time that is available. You should consider 7-segment displays, they are fast to refresh.