OK so i am kind of new to this ,
so far i have constructed the tank in the pic below
components:
Audrino mega
motor shield (added heat sync)
4 ping (parallax)
servo
2 motors (3V i think)
I looked over several sketches for Wandering with ping but still confused on how to modify for current hardware
I can get it to spit out ranges from the sensors
however i am unsure of how to get it to change directions based on ranges
or is it that i should us IF statements?
invad8er:
I can get it to spit out ranges from the sensors
however i am unsure of how to get it to change directions based on ranges
or is it that i should us IF statements?
"if" statements are the easiest way. Take a look at a sketch that I did with Ping sensor and servos.