I’m a complete novice at arduino micro controllers and I have been given and assignment were I have to write a code for a suspension system the requirements are below, I wrote the most basic code out to see could I get these parts to work before I add more variable but the code I have written is not operating the way I was expecting it to and I cannot figure out why any help would be appreciated. I will post code in the next post window
- If the pot signal goes “out of range”, eg > 4.75V or <0.25V it is deemed
to be faulty and the system should stop operating and both outputs should
- Ideally the system will try maintain the height of the vehicle
approximately ½ way between min and max, typically a pot value of
approx. 2.5V. If the voltage is less than this the compressor should turn
on. If the voltage is greater than this the exhaust value should turn on.
- Hysteresis bands should be added either size of 2.5V to prevent the
system switching rapidly.
- The compressor run time should be limited to 5 minutes, in the event of
an air leak in the system the compressor should not run continuously