Arduino Code with H Bridges and Bilge Pumps
Posted: Sep 2nd, 2022, 2:07 am
Hello all. The hope is to eventually have a basic'ish Arduino code for New ROV builders to use and base there projects off of.
I've searched the web and only found Sketches for ESC brush-less drivers and none for H Bridges and bilge pumps.
I know the advantages of ESC's and brush-less motors but many want to start with bilge pumps, plus they don't fair well in salt water for long and bilge pumps are readily available where I live (remote marine area ) and easy to change over when they eventually corrode over.
This way somebody starting out in ROV's can easily set up a 100' Cat5e or Cat6 cable to an Arduino board and have a good starting point with bilge pumps.
I am in the process of learning and coding for a 2 H Bridge and 4 bilge pump ROV. 2 for Forward/Back/Turn, 1 for Up/Down and 1 for Strafe Left/Right and hoping that I can get some help with this project that could possibly help many others finish there project and to start a new underwater exploration hobby.
So far I have a joystick module controlling forward/reverse/turn and trying to code in a second joystick module to control up/down and strafe.
I have some power leaks to the other motors, I think its the new coder I have working on this "ME" , and will soon be adding in joystick button press headlight function.
Threw my many trials so far I've found its best to separate your video feed from the motor noise and run a separate cat5e or Cat6 cable for Video. Grab yourself a USB2.0 auto focus Web Cam and a USB 2.0 Extender to RJ45 Over Cat5e or Cat6 with power connection on the camera side, this way you get a really clear and fast video feed to your laptop or whatever you hook the Video USB too.
Other functions for later would be "Low Voltage LED", "Leak LED" (prob hooked up to a small float on an upside-down trigger switch), Headlight state LED and Servo function for a claw and/or camera position.
Eventually having a Controller Arduino and an ROV Arduino "Master/Slave" set up for longer/cleaner 3 wire signal threw the tether and ability to have more functions would be on the table. But keeping things simple will be the main focus.
If anyone has interest in this project please let me know and if you can help fix/add to the sketch or if you are looking for a finished sketch for your ROV project.
Hopefully with interest will come a complete product. I'm happy to share the Arduino code I have so far, but remember I'm new to this and there isn't a proper working product yet.
Here's a link to the very basic 4 thruster Arduino code https://drive.google.com/file/d/1fN9McA ... sp=sharing
I've searched the web and only found Sketches for ESC brush-less drivers and none for H Bridges and bilge pumps.
I know the advantages of ESC's and brush-less motors but many want to start with bilge pumps, plus they don't fair well in salt water for long and bilge pumps are readily available where I live (remote marine area ) and easy to change over when they eventually corrode over.
This way somebody starting out in ROV's can easily set up a 100' Cat5e or Cat6 cable to an Arduino board and have a good starting point with bilge pumps.
I am in the process of learning and coding for a 2 H Bridge and 4 bilge pump ROV. 2 for Forward/Back/Turn, 1 for Up/Down and 1 for Strafe Left/Right and hoping that I can get some help with this project that could possibly help many others finish there project and to start a new underwater exploration hobby.
So far I have a joystick module controlling forward/reverse/turn and trying to code in a second joystick module to control up/down and strafe.
I have some power leaks to the other motors, I think its the new coder I have working on this "ME" , and will soon be adding in joystick button press headlight function.
Threw my many trials so far I've found its best to separate your video feed from the motor noise and run a separate cat5e or Cat6 cable for Video. Grab yourself a USB2.0 auto focus Web Cam and a USB 2.0 Extender to RJ45 Over Cat5e or Cat6 with power connection on the camera side, this way you get a really clear and fast video feed to your laptop or whatever you hook the Video USB too.
Other functions for later would be "Low Voltage LED", "Leak LED" (prob hooked up to a small float on an upside-down trigger switch), Headlight state LED and Servo function for a claw and/or camera position.
Eventually having a Controller Arduino and an ROV Arduino "Master/Slave" set up for longer/cleaner 3 wire signal threw the tether and ability to have more functions would be on the table. But keeping things simple will be the main focus.
If anyone has interest in this project please let me know and if you can help fix/add to the sketch or if you are looking for a finished sketch for your ROV project.
Hopefully with interest will come a complete product. I'm happy to share the Arduino code I have so far, but remember I'm new to this and there isn't a proper working product yet.
Here's a link to the very basic 4 thruster Arduino code https://drive.google.com/file/d/1fN9McA ... sp=sharing