Omnibot 2000 , Rad 2.0 Vacuum Bot

jstarne1

USA

ARC Pro

Upgrade to ARC Pro

Discover the limitless potential of robot programming with Synthiam ARC Pro – where innovation and creativity meet seamlessly.

#1705  

Current sensing , Dj post on current sensing..... My omnibot robot has been getting stuck the odd time. I had a conversation with the guys at Solarbotics and they suggested I through in a current sensing circuit. Wicked idea!

Current sensing is a method of monitoring the voltage through the DC motor. There are a few other methods of sensing a forced stall on a motor, including rotorary encoding with optical sensors. I am going to go with current sensing method.

I found this document that was written by Microchip PIC. It is a good PDF file to read on the different methods. They even have diagrams explaining the circuit: PICMicro DC Motor Tips'n Tricks

User-inserted image

So the theory behind current sensing in the above diagram is quite simple. Now, technically with an ADC you should not need an OP AMP. If you don't know what an OP AMP is, it is a IC that compares two inputs (AND GATE). So 1 & 0 = 0, 0 & 1 = 0, 1 & 1 = 1, etc

So back to Current Sensing. Let's visualize the robot driving across your floor. You have magical distance sensors scanning back and forth returning distances... But we know that the robot can't see up or down, so you end up getting stuck on a coffee table or the leg of an office chair (my two big pet peeves). The robot stopping will put high load on the wheels, and DC Motor respectively.

The load can be detected by a change in voltage on the GND side of the motor.

What about an HBridge configuration? Glad you asked! Since the HBridge will change the polarity of the motor, you never know what side is GND. The solution? Add the current sensing to the Motor VSupply GND of the HBridge circuit.

#1706  

not on servo's circuit inside a servo doesnt have a shutdown circuit here is a circuit used for most servos

futaba s3003 servo cicuit has you can see no sense circuit here is a common H-BRIDGE circuit used for motors with a sense circuit

l298 h-bridge

has you can see it uses 2 sense resistors on gnd of the mosfet output stage it then produces a voltage output that feed into a comparator switch circuit on another chip or design you make and pull the brake low to shutdown the servo or motor how a comparator works its a amp that has a non inverted input and inverted input and when both are equal it switches ,depending on what input you use,other is variable voltage divider to adjust the current shutoff point

so only way to make a circuit for servo is use a current sense device,like a hall-effect current monitor or sense resistor and feed output to EZB analog input,or make a simple 1 chip comparator with a switch the servo power off

JOSH THAT CIRCUIT IS NOT THE BEST WAY TO DO IT because the sense circuit is not grounded and need a double supply double ended,if you look at every h-bridge chip or designs all use the ground of the motor for sensing current so only single ended supply is needed

#1707  

So shouldn't I be able to connect to the servos ground just like you do with a h bridge and read current?

#1708  

yes that is what i said was the best way circuit that DJ has up needs a special op circuit here is info from the same micro chip data sheet on using that type

High side current sensing generally requires a differential amplifier with a common mode voltage range within the voltage of the supply.

low side doesnt need it (gnd),ebay sells cheap current monitor boards about $6 and at different currents

ACS712 is a very common 3 pin sensor,need to stay about double the stall current like if max current is 5 amps then a 10 amp current sensor is needed and dc output will be about 2.5 volts to feed into the analog input or comparator switch circuit besides ebay ,digikey has them too at different currents there is even a board made for it too,i think pololu sells them

pololu current sensor

they have others too,i bought a few while back,some 5 amps some 20 amps for my battery protection

#1709  

Ok so this pollolu.com sensor will do what I need.

User-inserted image

User-inserted image

This would be what I needed for each claw and each drive motor in the base.right?

#1710  

I have not received my last order from pollolu and I am already building another one lol.

#1711  

User-inserted image

Here's my tentative next.pololu order. Force sensors for Jarvis fingers, has.sensors for.obvious reasons , 4 current.sensors.boards 2 for claws , 2 for drive.motors.

#1712  

A ezb has 8 add and 20 digital

Digital 1.radar servo 2.sonar on radar servo 3. Sonar right side 4. Sonar left side 5. Sonar front /right 6. Sonar front/left 7.sonar rear 8.sonar face 9sonar top of head 10.sonar right inside of claw 11.sonar left inside of claw 12.motor right drive 13. Motor left drive 14. Vacuum trigger for power on 15. Current sense right side drive 16.current sense left side drive 17.right claw current sense 18.left claw current sense 19.IR directional sensor 20.

  1. IR cliff sensors
  2. IR cliff sensors
  3. Motion detector cheSt
  4. Motion detector top of head 5.light sensors 6.battery level indicator