hi
Iam building a toy ship that uses 5 ultrasonic sensors to detect any obstacle and the arduino uno use the relay to switch between two motors and rotate the ship and i want to change the speed according to the distance between the ship and the obstacle tried variable resistance but it didn't work so is there is any other way to do that.
thanks
p.s: the ship is 50cm length and 30 width and 30 height and if this way can be controlled by arduino i'll be thankful.
Iam building a toy ship that uses 5 ultrasonic sensors to detect any obstacle and the arduino uno use the relay to switch between two motors and rotate the ship and i want to change the speed according to the distance between the ship and the obstacle tried variable resistance but it didn't work so is there is any other way to do that.
thanks
p.s: the ship is 50cm length and 30 width and 30 height and if this way can be controlled by arduino i'll be thankful.