The first video of the Fez Tank Mk1.
Still has a few teething problems, ie sharp sensor is not the best. But I hope to fix this with an ultrasonic sonar.
The Tank is using an Async worker to process digital (switches at the front) and analog (distance sensor) input.
An controller class receives updates(only if there is a change) and makes the desired decision.
Not sure how other people have processed the analog in from the Sharp sensor, but I filtered it as much as possible so that I don’t get dodgey readings. I use 2 stage selective averaging. Also, a capacitor on the sensor helps a little.
Still waiting on the rest of my components from China now (compass, accelerometer, ping sonar & wheel encoders). Hopefully the tank should be a lot less crude.
Thanks for watching. And thanks to all those who have shared their code and/or Drivers.
Gus, any possibility of having a code sharing category?