Another question is: was the control digital or proportional?
Digital means that it did not matter how much the control joy stick or wheel was turned, the steering is either max left, straight, or max right. If no solenoid is powerered, a (soft) spring centers the steering rod for going straight.
This technique has a permanent magnet on the steering rod that is pulled by one solenoid at the time. The control is either 2 buttons or a stick or a wheel that switch on the left or right channel of the 4 channel remote control. The other 2 channels are used for forward and backward - usually over a full H bridge.
Proportional means that the steering is proportional to the tilt or turn of the control element.
Using PWM (analog write) is actually a cool thing to overcome the digital steering: the on cycle is not enough to pull the steering rod all the way... ;-)
Since you have a brain (versus no brain form before) in the car, you can operate the opposite solenoid as well (with reverse current flow) to get a better control... (assuming there is a permanent magnet on the steering rod vs. just a plain piece of iron metal). Pull and push at the same time is just draining your batter a bit more and you need full H bridges for the solenoids as well.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Another question is: was the control digital or proportional?
Digital means that it did not matter how much the control joy stick or wheel was turned, the steering is either max left, straight, or max right. If no solenoid is powerered, a (soft) spring centers the steering rod for going straight.
This technique has a permanent magnet on the steering rod that is pulled by one solenoid at the time. The control is either 2 buttons or a stick or a wheel that switch on the left or right channel of the 4 channel remote control. The other 2 channels are used for forward and backward - usually over a full H bridge.
Proportional means that the steering is proportional to the tilt or turn of the control element.
Using PWM (analog write) is actually a cool thing to overcome the digital steering: the on cycle is not enough to pull the steering rod all the way... ;-)
Since you have a brain (versus no brain form before) in the car, you can operate the opposite solenoid as well (with reverse current flow) to get a better control... (assuming there is a permanent magnet on the steering rod vs. just a plain piece of iron metal). Pull and push at the same time is just draining your batter a bit more and you need full H bridges for the solenoids as well.