danc23
Posts: 3
Joined: Sat Feb 01, 2014 9:32 am

Autonomous Boat Project

Fri Mar 06, 2015 6:53 pm

Hello,

I am 'attempting' to build an Autonomous Boat and I'm kind of struggling.

I currently have;
A Raspberry Pi B
Adafruit's 16 Channel 12bit Servo Driver
3 Servo's
ESC with reverse for the motor
HC-SR04 ultrasonic range sensor
PIR Sensor
Xbox Live Cam (until replaced with the Raspicam)
3G wireless dongle
And the Boat of course.

I have checked all the parts work with the example codes provided by the suppliers, on these forums or anywhere else on the net.

But now I'm at the tricky part of trying to code it all together.

My main aim to make it so that the 2 sensors, attached to a servo, continually scan left and right for obstacles. If the sensors don't detect anything in range then i would like the boat to slowly increase its speed. If the boat does detect an obstacle then i would like it adjust the speed and to operate the servo attached to the rudder to away from it. Also eventually I would like the camera to be attached to a servo so it can be controlled by an operator so you can 'look around' from a phone/computer on land.

I know its rather an ambitious project for someone with limited programming knowledge, But i going to stick with it and I'm enjoying learning along the way. So far I can get the servos to move left then right if the PIR detects any movement.

Any help will be greatly appreciated.

Many Many Thanks
Dan

gregoff
Posts: 31
Joined: Fri Aug 22, 2014 7:07 am

Re: Autonomous Boat Project

Tue Apr 28, 2015 11:09 am

If you want to make it autonomous, I guess you need a GPS and a compass as well. Otherwise the boat won't know where it's headed.

Return to “Beginners”