Basic Stamp not powering the robot while in the pool (Urgent Help Needed!)
ACK
Posts: 12
Hello,
I was hoping someone would be able to help me out with this detrimental problem I have been having with the Basic Stamp 2. I have been constructing a Marine Remotely Operated Vehicle over the past couple of months, and I have been using the BS2 to control it. Basically, the set up goes as follows. The Basic Stamp sits in a waterproof container on the vehicle, and is connected to a series of relays, which are then connected to a series of motors and thrusters. The Basic Stamp is connected via a 50 foot CAT5 cable from the ROV to the laptop (USB to CAT5 adapters are used). The code was written so that when a key is pressed on a keyboard, a certain motor is turned on. W, A, S, D, would make the robot go Forward, Left, Back, and Right respectively. The robot works 100% of the time when it is connected to the 50 foot·CAT5 cable and·placed on the lab bench (Out of the water), and the key commands cause the motors to run. The robot is powered by a 12V car battery, and a 8 volt regulator with diodes·make 9 volts·go to·the basic stamp. Though, when the robot is placed into the water, it works for roughly 10 seconds, and then it fails to recognize the commands and seems to have a mind of its own. We have already tested the idea of mutual induction with the power cables, seeing if the magnetic field created by the power wires screw up the communication signal,·and that does not seem to have an effect. We are positively stumped. It obviously has something to do with the motors drawing more current while in the water, but we're not sure how it should effect the basic stamp and the communication protocol. Does anyone have any insight into this particular problem? We already called the parallax hotline, and still were not able to come up with a solution, and we're hoping that the nice folks on the forum will be able to cure our massive headache.
Thank you for your time!
I was hoping someone would be able to help me out with this detrimental problem I have been having with the Basic Stamp 2. I have been constructing a Marine Remotely Operated Vehicle over the past couple of months, and I have been using the BS2 to control it. Basically, the set up goes as follows. The Basic Stamp sits in a waterproof container on the vehicle, and is connected to a series of relays, which are then connected to a series of motors and thrusters. The Basic Stamp is connected via a 50 foot CAT5 cable from the ROV to the laptop (USB to CAT5 adapters are used). The code was written so that when a key is pressed on a keyboard, a certain motor is turned on. W, A, S, D, would make the robot go Forward, Left, Back, and Right respectively. The robot works 100% of the time when it is connected to the 50 foot·CAT5 cable and·placed on the lab bench (Out of the water), and the key commands cause the motors to run. The robot is powered by a 12V car battery, and a 8 volt regulator with diodes·make 9 volts·go to·the basic stamp. Though, when the robot is placed into the water, it works for roughly 10 seconds, and then it fails to recognize the commands and seems to have a mind of its own. We have already tested the idea of mutual induction with the power cables, seeing if the magnetic field created by the power wires screw up the communication signal,·and that does not seem to have an effect. We are positively stumped. It obviously has something to do with the motors drawing more current while in the water, but we're not sure how it should effect the basic stamp and the communication protocol. Does anyone have any insight into this particular problem? We already called the parallax hotline, and still were not able to come up with a solution, and we're hoping that the nice folks on the forum will be able to cure our massive headache.
Thank you for your time!
Comments
Can you provide more details on the motors you are using and how they are getting power?
Rich H
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Basically, there is a car battery sitting poolside. The ROV is connected to the battery using Banana Plugs. A video cable and a CAT5 cable are also running off the ROV, so in total, there are 4, 50 foot cables running off the ROV: Positive Power, Negative Power, Video Out, and the CAT5 cable. All these cables run into a black project box that is submerged in wax to keep it waterproof. Inside this black project box is a circuit board with relays to switch the polarity of the motors, an 8 volt regulator with diodes, and the video out cable. The positive and negative power cables run directly to this circuit board to the 8 volt regulator with diodes, and this causes 9 volts to go to the Basic Stamp, and 9 volts to go to cameras. The unregulated 12V is also run to the relays to power the motors. The motors are connected to the relays via barrier strip. There are 5 motors on the ROV, all of which are bilge pumps. There are two larger bilge pumps on either side of the ROV, each rated at 12 Volts, 1100 GPH, and rated from 2 - 4 amps (depending on whether they are in the water or not). These bilge pumps have been modified with propellers for a boost of thrust. They control the horizontal movement of the ROV. There are 3 smaller replacement bilge pumps located at the bottom to control the vertical movement of the ROV. They are also modified with propellers and are rated at 2 amps, and 500 GPH.
In summary, the car battery supplies power to the BS2 board, the cameras, and the motors. All the commands work well when the ROV is not in the water, but as soon as there is an opposing torque on the motors, the BS2 freaks out, and won't respond to any commands after like 10 seconds. I know its not water damage, because you can pull the ROV out of the water, and it will work perfectly fine. Its also not mutual induction because we made sure that the power cables and the video cables were seperate from the CAT5 cables. There is no power going through the CAT5 cable, its solely used for communication between the laptop and the BOE.
Anyone have any ideas on the situation? We're really scratching our heads here.
Thanks!
Like I said before, the ROV works PERFECTLY when its out of the water. It responds to all the commands like it should! Its got to be a current drain when there's an opposing torque on the motors, but I'm not sure what that has to do with the board, and how I can fix it, because the car battery SHOULD be able to supply enough current.
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tia'Shar Manetheren
Bilge pumps typically have a small impeller running at high rpm. When modified with a propeller (larger diameter) it may be drawing far more amps than it's rated for. Have you tested the amp draw of these motors when they are under load?
What size are the 50 ft power cables? If not large enough there can be a significant voltage drop - leading to brown out.
How does adding diodes to an 8 volt regulator give you 9 volts?
Rich H
Try placing a 1K resistor from the ATN (Pin3) to VSS (Pin4) on the BS2.... This will help reduce false resets due to noise with long (antenna) programming cables left intact.
My suspicion is that the higher load on the motors under water causes them to effectively become "bigger" inductors making and breaking across the contacts in the motor armature. This is probably causing voltage spikes that are resetting the BS2 causing it to not function properly... and/or those spikes are causing the data being sent from the laptop over the 50foot length to become corrupted by the time the BS2 reads the data.
I would mainly focus on to things:
What kind of error checking are you doing in software?
...and what kind of power filtering do you have for the BS2
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
I don't think you mentioned if you are using the SAME cables when you bench-test. Additionally, couldn't you rig up a bench-test using the same cables with the ROV in a water-filled container?
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
I am using the same cables as the bench test and in the pool. I know for a fact that the basic stamp is restarting itself, we do have the debug message running. It only restarts itself when its been in the water for a while. What could be causing the restarting? Are the motors drawing too much current and turning off the stamp?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Thank you for all the useful tidbits! That's a great idea, except the competition requires all the power to come from the 12 volt battery on shore. We'll test it with the external battery pack and see what happens!
Thanks!