Step 3: The Wheels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Step 4: The Frame part A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Step 5: The Frame part B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Step 6: Mounting the motors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Step 7: Mounting the mower deck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Step 8: Select and Install the batteries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Step 9: Mount the electronics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Step 10: The Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Step 11: More Videos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Author:johndavid400
author's website I have always been one to take things apart to figure out how they work, so most of what I own has been dismantled. If it can't be taken apart or hacked, i'd rather not have it. And I like to do things the cheapest way possible, because I like to do a lot of things and I don't have a lot of money.
. I added some new code to the project that is safer, including a manual kill-switch and a Failsafe switch. To implement the Failsafe, I used another Atmega168 (or an Arduino), to control a normally-open 60amp power relay. The relay disconnects the power to the motorcontroller unless receiving a "good" signal from the 2nd microcontroller. This signal is updated 2 times every second and is either ON or OFF. If the bot gets out of range, it loses power to the motors. If I flip the kill-switch on the Transmitter, it loses power to the motors. This is also a handy way to disable it remotely if anything were to go near it that wasn't supposed to. The updated code for both microcontrollers is on the CODE page. In addition to the failsafe, I changed the way the code reads the PPM signals to make it more reliable. Also, I realized that I was only able to run the bot at 80% speed with the old code, so now it is quite a bit faster and has more power (it can carry me across the yard @ 155lb). Check out this new video of me riding the Lawnbot400, my wife driving it over a bunch of branches, then me making do some wheelies. Don't worry, the mower was turned off this time since the grass didn't need cutting, we were just having fun.
Disclaimer: DANGER!!! This is a VERY dangerous piece of equipment if not handled appropriately. Since all the electronics have been home-built and the Arduino code is new, you MUST be very careful while operating anything heavy with this code. I have had 1 or 2 times during testing - and before adding a secondary failsafe - that the main Arduino jammed up and I temporarily lost control of the mower for a few seconds!!!! Though I have added several filters to discard unwanted signals and I rarely have any issues, an un-manned lawnmower IS STILL A POTENTIAL DEATH TRAP and I assume no responsibility for anything that happens as a result of your use of this code or this tutorial. This is meant as a guide for people who not only have the ability to build such a contraption, but the responsibiltity to operate it safely as well. Any suggestions or ideas on how to make this a safer project is always gladly accepted. Having said that, it's also awesome.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Background: Most R/C equipment comes packaged for a single specific use, which makes it easy to use but is very limited in what you can do with it. So using the Arduino as an interpreter between the R/C system and the motor driver, I can use any motor controller that I want (depending on the size of the motor and power required), reprogramming the Arduino to supply the required signals. What I ended up with: After successfully hacking a few R/C cars from the thrift store, I got bored driving them around the driveway and I was having a hard time convincing my wife that there was any usefulness in the revived toy car. So I decided it was time to make my biggest chore at home, a whole lot easier and actually put my Arduino to work, and thats how I ended up building an R/C lawnmower. While designing the lawnmower, I thought it would be cool to learn about the electronics that made it move, so I designed and built my own motor speed controller (or Hbridge) to power the lawnmower. I looked around at every H-bridge design I could find before deciding to go with a Mosfet h-bridge that uses both N-channel and Pchannel Mosfets. I built several different motor driver boards for this project, the first two were on Radio-Shack perf-board and the next 4 were designed using EagleCad and etched to a piece of copper-clad PCB, using the toner-transfer method. The most recent board is the one I use to mow the lawn as it has the ability to stay cool even while operating for long periods of time (30-40 mins straight) at 10-20amps and 24vdc. FWIW, I had to burn up a lot of Mosfets to find this out. If you want to see any of my other motor controllers, go to www.rediculouslygoodlooking.com and check out the Mosfet shield. Here is what I bought already assembled: FM R/C transmitter and receiver pair from ebay = $40 Arduino = $30 I already had a used push-mower = $60 Here is what I bought and assembled into the Lawnbot400 (as I call it): (2) electric-wheelchair motors from ebay = $40 ea (2) 12v marine deep cycle batteries - Walmart - $60 ea new (used batteries might work) 36" pieces of 2" angle-iron (2) and 1" square-tubing (2) from Home Depot = $8 ea 36" pieces of 1" angle-iron (2) and 1" flat steel bar (2) from Home Depot = $5 ea (a lot) of nuts, bolts, washers, lock washers 3/8" or 1/2" with drill bit = $20 (2) caster wheels from Harbor Freight Tools = $14 ea (2) drive wheels from Harbor Freight Tools = $8 ea (36") 5/8" threaded rod with several 5/8" nuts and washers from Home Depot = $8 (2) sprockets from Allelectronics = $5 ea #25 roller chain and a few universal links from Allelectronics = $10 for 3' sprockets from Electronics Goldmine = $1.50 ea (24) mosfets from Digikey = $1 ea (there were quite a few small parts for building the H-bridge, they are listed later on)
http://www.instructables.com/id/Arduino-RC-Lawnmower/
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. the front left mower deck hanger 2. the rear left mower deck hanger
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. the Triple8 motor controller with 24 mosfets, each set of 3 is bolted together and each mosfet is heatsinked. It has 3x as many Mosfets as it's little brother, but essentially the same circuit. 2. the predecessor to the Triple8, only 8 mosfets total (just enough to complete a dual h-bridge). Though it would run the Lawnbot400 around for about 10 minutes, it would end up getting hot after some use.
Image Notes 1. the 2 neutral indicator LED's (1 red and 1 yellow) hard-wired to digital pins 12 and 13. Anytime I center one of the control sticks on the lawnbot400, one of these lights turns on. 2. the female headers used to plug my R/C receiver directly onto (they use standard .1" spacing like perfboard you can buy at Radio Shack) 3. these are the breakout screw-terminals used to route the R/C receiver signals to the Atmega168. I am only using 2 of the 6 R/C channels right now, so the other 4 can be used for extra servo's or whatever else. 4. digital pins 2 and 3 of the Atmega168, used for the External Interrupts on those pins to capture the R/C signals from the receiver. 5. These are the screw-terminals for the signal wires leading to the H-bridge motor controller. I only need 4 wires to run my motor controller, but there are 3 extra digital pins that are unused by the current code.... Any ideas for their use? 6. all 6 analog pins are unused! I might add some sensors to automate the Lawnbot400 one day. 7. the Atmega168, it's reset button, and a kind-of hidden 16mHz crystal oscillator (together make a bare-bones Arduino). 8. 5-35v power terminal and onboard 5v regulator for powering the Atmega and R/C receiver. Plus a bunch of capacitors and a reverse polarity protection diode.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. this is the 2nd H-bridge, notice that the motor screw-terminals for each motor will be on opposite sides of the board. 2. This is the 1st H-bridge
Step 1: Setting up
1. Get R/C transmitter and receiver (I have tested FM and AM systems and they both work) 2. Upload code to Arduino (it is on the last page) 3. Make sure you are getting a good signal You will need an R/C radio transmitter(Tx) and receiver(Rx) pair, which is the most expensive part of the project, but can be used for every future project you might have involving R/C. I went with a 6-channel FM system, but I have tested a 27mHz AM transmitter/receiver and it works just as well. The beauty of the Arduino is that if you want to adjust the deadband or the motor-speed at turn-on, (unlike commercial ESC's) it is all easy changed in the Arduino IDE. Once you have your radio, all you need to do is upload the code to your Arduino, plug in the 2 channels that you want to use from your radio receiver into Digital pins 2 and 3 of the Arduino (these are the 2 external interrupt pins on the Arduino) and you are ready to control whatever you want. If you don't have a batter pack for the receiver, you can run jumper wires from the Arduino +5v and GND to the R/C receiever for power, you only need to supply a single channel with GND and +5v (it is not necessary to power every channel). Upload the code using the Aruino IDE (I am using version 0016 on Ubuntu). I started by controlling 3 LED's with 1 channel on a breadboard. I wired a red LED to be Forward (digital pin 9), a yellow LED for Reverse(digital pin 5), and a green LED for Neutral (digital pin 12). This allows you to adjust the code to fit the needs of your radio system. You will have smooth 0-100% PWM control of both LED's and the neutral light will turn on when the control stick is centered. If needed, you can widen the deadband for Neutral, but doing so will increase the speed at turn-on (which starts at 0%, so that would likely be desirable). See pictures. ---------------------------------------The code has 4 PWM outputs for motor control: channel 1 Forward = Arduino digital pin 9 channel 1 Reverse = Arduino digital pin 5 channel 2 Forward = Arduino digital pin 10 channel 2 Reverse = Arduino digital pin 6
http://www.instructables.com/id/Arduino-RC-Lawnmower/
2 outputs for Neutral indicator lights: channel 1 = digital pin 12 channel 2 = digital pin 13 The 2 INPUTS from the R/C receiver should go to: channel 1 = digital pin 2 channel 2 = digital pin 3 --------------------------------------If you are interested to see your readings, turn on your Serial Monitor in the Arduino IDE (set to 9600bps) and you can see the actual real-time pulse readings for each channel, they should read: full forward = 2000 (2 milliseconds) center = 1500 (1.5 ms) full reverse = 1000 (1 ms) These readings reflect the number of microseconds that the pulse signal from the R/C receiver stays HIGH (or at 5v). The typical Servo signal that comes from an R/C receiver is a pulse whose length varies from approximately 1 ms to 2 ms with 1.5 ms being Neutral (which should also be the position that the control stick returns to when you let it go). The transmitter reads the position of the control stick and sends that pulse length about once every 20milliseconds. So it is constantly updating for precise control (for more info, look up PPM on wikipedia). If you push the transmitter control stick forward, the reading should go up to 2000, if you push it backward it should go down to 1000. You can also use a voltage meter at this point to see that Digital Pins 5, 6, 9, & 10 will be changing from 0-5v depending on the position of the control sticks on the R/C transmitter. If you care to know, the code uses the Arduino's 2 external interrupts to capture when the Rx signal pin changes states (goes from HIGH to LOW or vice versa), when it does at the beginning of each signal, it calls the interrupt function which reads the digital state of the pin and if HIGH, it records the microseconds value on the Arduino system timer0. It then returns to the loop until the pin goes LOW, at which point it subtracts the previously recorded microsecond value from the new current microsecond value to determine how long the pulse stayed HIGH (which tells us the position of the Transmitter control stick). It then does that over and over really fast. I have the values constrained from 600-2400 in the Arduino code to keep things simple. Once it receives the signal and constrains it, it maps that value to be proportionally between 0 and 511, where 255 will be Neutral. The code then determines when the value changes and uses a function to determine the appropriate 0-255 PWM value in the appropriate direction and each direction has it's own PWM output pin to control the H-bridge. On a side note: To make things easier, I built an Arduino-based breakout board using Radio-Shack perf-board, a 28pin DIP socket, a 16mhz oscillator, and a bit of wire. I also added a set of female-headers in such a way that I can plug my R/C receiver directly onto the breakout board. For secure connections while mowing grass, I added screwterminals on each Output pin and each of the 6 channels from the receiver. It also has a built in 5v regulator to power both the Atmega168 from the Arduino and the R/C receiver (which gets power when you plug it onto the breakout board). So you just route jumper wires from the channels you want to use on the receiver, to the Atmega digital pins 2 and 3. I also added 2 LED lights that are hard wired to the digital pins 12 and 13 for the Neutral lights for each channel so I can easily see when I am in neutral. Since this bot is a Tank steer setup with 1 drive motor on each wheel, the coding is very straightforward where the left stick controls the left motor and the right stick controls the right motor. Both sticks forward means lawnmower goes straight forward, both backward and it goes in reverse. If you push the left forward and the right backward, it does a zero-turn circle. As you can imagine, mowing the grass is really fun now.
Image Notes 1. this is my receiver plugged into a breakout board I made for it using perfboard. 2. the Arduino receiving R/C servo signals and translating them into forward/reverse PWM values. 3. each set of LED's is controlled by it's own channel from the R/C receiver. Forward will turn on the green light, reverse the Red light, and neutral will light up the Yellow light. This is the easiest way to test the setup.
Image Notes 1. this is a typical R/C transmitter with 4 channels, the one I got is a knockoff of this one, but looks very similar. 2. this is a typical R/C receiver. Mine has it's connector pins on the end of the unit instead of the top, enabling me to plug my receiver directly onto the control board. 3. these are typical servo motors. They can be controlled directly by the R/C receiver and are useful for many things.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. the Atmega168 from my Arduino (I bought a few extras to use for projects like this). I remove it when I need to re-program it in the Arduino. 2. my R/C receiver plugged into the control board. Notice the green antenna coming out.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
I am not going to go into all the details of PCB etching, because there are already many excellent instructables on that topic. So once you download my .BRD file of my motor controller, all you need to do is print the .brd file onto some magazine paper using a laser printer, and iron that onto a piece of clean copper-clad. Then etch it with your favorite etchant solution (I use 2 parts Hydrogen Peroxide to 1 part Muriatic Acid and it works perfectly). And remove the toner with Acetone when done etching. For ease of assembly I designed this board to be Single-sided and to use only through-hole components, no surface-mount stuff to mess with! Yay for you. You can get the .brd files for the various h-bridges at www.rediculouslygoodlooking.com
Image Notes 1. this is the 2nd H-bridge, notice that the motor screw-terminals for each motor will be on opposite sides of the board. 2. This is the 1st H-bridge
Image Notes 1. bussed resistor networks 47ohm. They have 1 input and 5 outputs, this board only uses 3 of the outputs. 2. pull up/down resistors 4.7k ohm, these keep the Mosfets turned off when not being used. 3. capacitors, I used (4) 680uF 50v, but you can substitute others that fit. 4. screw terminal connectors for motor terminals and power
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. this is 1 complete h-bridge to control 1 DC motor. The 2 smaller mosfets toward the bottom are used as signal-inverters to control the High-side pchannel mosfets. 2. each h-bridge has it's own set of direction lights to determine the direction of the current.
Image Notes 1. the Triple8 motor controller with 24 mosfets, each set of 3 is bolted together and each mosfet is heatsinked. It has 3x as many Mosfets as it's little brother, but essentially the same circuit. 2. the predecessor to the Triple8, only 8 mosfets total (just enough to complete a dual h-bridge). Though it would run the Lawnbot400 around for about 10 minutes, it would end up getting hot after some use.
Image Notes 1. R/C receiver plugged into Arduino breakout board 2. cooling fan for motor controller (h-bridge)
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. Atmega168 microcontroller programmed in the Arduino, then transferred to this home-made breakout board for permanent use. 2. The R/C receiver is plugged directly onto my home-made breakout board which supplies the +5v and GND needed for power as well as a breakout screwterminal for each channel. This receives the signals from the remote-control (R/C transmitter) and sends them into the Atmega168 for processing.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. The bolts coming from around the axle are the 3 bolts that hold the sprocket onto the other side.
Image Notes 1. The drive sprockets are about 6.5" in diameter and had no holes to mount them. I had to drill 3 holes and mount bolts through the sprocket into the wheel. I then added a small bead of weld to keep it centered around the axle.
Image Notes 1. save a bolt on each side by using the same one that you used to bolt the frame riser brace into the frame.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. the front 1" steel square tubing that the front caster wheels attach to.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. Motor controller and Arduino 2. push mower 3. (2) 12v batteries (deep cycle marine is the best) 4. electric wheel-chair motors
Image Notes 1. you need 1 nut on the inside of the frame riser bar to, and 1 on the outside to hold it securely to the axle. 2. I bolted the support bar in with the rear lawnmower-deck hangers to save a bolt on each side.
Image Notes 1. the rear bar should be the same width as the center of the rear wheels on your push-mower (must be measured before you remove the wheels). 2. the main frame bars. 3. the support brace
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. one of the main frame bars from step 1, which is 2" angle-iron. 2. the other main frame bar from step 1
Image Notes 1. the front left mower deck hanger 2. the rear left mower deck hanger
Image Notes 1. the rear bar should be the same width as the center of the rear wheels on your push-mower (must be measured before you remove the wheels). 2. the main frame bars. 3. the support brace
Image Notes 1. The drive sprockets are about 6.5" in diameter and had no holes to mount them. I had to drill 3 holes and mount bolts through the sprocket into the wheel. I then added a small bead of weld to keep it centered around the axle.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. The bolts coming from around the axle are the 3 bolts that hold the sprocket onto the other side.
Image Notes 1. one of the main frame bars from step 1, which is 2" angle-iron. 2. the other main frame bar from step 1
Image Notes 1. you need 1 nut on the inside of the frame riser bar to, and 1 on the outside to hold it securely to the axle. 2. I bolted the support bar in with the rear lawnmower-deck hangers to save a bolt on each side.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
The holes drilled in the motor mount plate are just single holes for the bolt to fit through, the holes through the frame were cut with a Dremel tool with a cutoff wheel to make channels for the motor mount bolts to travel forward/backward through. You want the 2" angle-iron motor mount bracket to set as much on top of the main frame rails as possible, the bolts (which you can't see with the motors mounted) that hold the motors to the motor mount plates will keep the motor mount plate from laying flat against the frame bars. Go ahead and mount the motors loosely to the frame using 2 bolts on each. Cutting and connecting the chain: Now get your 10' of #25 chain and wrap it around the main drive sprocket on the wheel. With the motors pushed all the way toward the back of the frame (closest to the drive wheel sprockets), wrap the chain around the motor drive sprocket and mark where they overlap. You need 2 of the universal chain links from to connect the 2 loose ends. Cut the 2 pieces of chain and connect them to each side with the universal links to connect them. Tensioning the chain: Push the motor mounts forward until there is good tension with the chain, and tighten up the bolts that hold the motor mount plates to the main frame. Now you can generate electricity. Connect a voltage meter to 1 set of motor terminals and push the bot around.
Image Notes 1. notice the motor is mounted to this piece of 2" angle-iron and that is mounted to the frame with these bolts. They allow the motor to slide forward/backwards on the frame when loosened.
Image Notes 1. notice the gap between the motor mount plate and the main frame bar. This is caused by the bolts that hold the motor to the motor mount plate. 2. These are 2 unfinished holes for a 3rd mounting hole which I later deemed unnecessary.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. This is how to make the motor mount slide holes. Drill 2 holes where you want the ends of the track to be. Then use a Dremel with a cutoff wheel to cut a straight line between the tops and bottoms of each hole. They should end up looking like the ones above with bolts in them. 2. Tighten up these bolts when you get proper tension with the chain.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. the front left mower deck hanger 2. the rear left mower deck hanger
Image Notes 1. make sure to keep the old wheel shafts from touching the drive tires (leave 1/2" or so)
Image Notes 1. save a bolt on each side by using the same one that you used to bolt the frame riser brace into the frame.
Image Notes 1. adjustable total length (for different model push mowers) 2. caster wheels with 360 degree turning 3. leave a gap or the front wheels will hit the mower deck!!!
Image Notes 1. by mounting the lawn mower deck-hangers to the old wheel shafts, you can still
Image Notes 1. these are the 1" angle-iron lawnmower-deck hangers, they hold the mower-
http://www.instructables.com/id/Arduino-RC-Lawnmower/
adjust the mowing height of the mower deck without taking anything apart.
Image Notes 1. make sure the front caster wheels won't hit the mower deck when they swing around (leave at least 1/2" clearance)
Image Notes 1. I only installed 3 of the 4 bolts on each front caster wheel. 2. these 2 bolts on each side go through the caster wheel mounting plate AND the frame
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. Motor controller and Arduino 2. push mower 3. (2) 12v batteries (deep cycle marine is the best) 4. electric wheel-chair motors
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Image Notes 1. Atmega168 microcontroller programmed in the Arduino, then transferred to this home-made breakout board for permanent use. 2. The R/C receiver is plugged directly onto my home-made breakout board which supplies the +5v and GND needed for power as well as a breakout screw-terminal for each channel. This receives the signals from the remote-control (R/C transmitter) and sends them into the Atmega168 for processing.
Image Notes 1. R/C receiver plugged into Arduino breakout board 2. cooling fan for motor controller (h-bridge)
http://www.instructables.com/id/Arduino-RC-Lawnmower/
File Downloads
Lawnbot400_code.zip (152 KB) [NOTE: When saving, if you see .tmp as the file ext, rename it to 'Lawnbot400_code.zip']
#3
http://www.instructables.com/id/Arduino-RC-Lawnmower/
#4
#5
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Related Instructables
remote start system for car truck and suv by Lawn Care Grub control by lonemeno Ace Fix it
Comments
50 comments Add Comment view all 160 comments
Feb 22, 2011. 9:15 PM REPLY I'm trying to use your software to get a radio controller much like the one you used to work with an arduino to run a robot, however, I'm running into some problems. When you say in your code to "adjust these values if your R/C readings are above or below these for channels 1 and 2," what would these readings be? I got it working once, with signals sending, but now it seems to be giving me entirely sporadic readings. Help?
johndavid400 says:
hey buddy, give this newer code a try... ftp://ftp.rediculouslygoodlooking.com/arduino/LawnBot400/Lawnbot400_main_code/Lawnbot400_main_code.pde regards, JD
Feb 23, 2011. 3:08 PM REPLY Ah, thanks. The code still isn't working for some reason though. The incoming signal stays at 1500 and doesn't change. I'm sure the batteries are charged and wires are plugged in. Do you know whats up?
johndavid400 says:
hmmm, what type of transmitter/receiver are you using?
iceman1 says:
you should add a electronic clutch for the blade so when you are mowing you can stop the blade but not the engine
dreiduke says:
Ok i will use a low cost version of the motor controller I plan to build a Relais-Mosfet Hybrid H-Bridge. Relais to controll the Current direction. and several Mosfets in parallel and these serial to the relais-h-bridge, to control the speed during PWM from Arduino. it is low cost, an with double contact relais, Fail safe.
everywhere says:
what brand is your rc transmiter and how much did you pay?
johndavid400 says:
Apr 2, 2010. 6:53 AM REPLY I first bought an Esky 6-channel FM system from Ebay for $40 shipped (new), and it works great for most things, but getting near a chain-link fence will cause distubance and it had no failsafe built-in. So I bought the 2.4gHz Spektrum DX5 with the BR6000 bot receiver for $120. It has a failsafe on each R/C channel so if you turn the remote off or get out of range, it puts each channel back at the set position... so no glitching at all. It works much better than the FM radio. I got it here: http://www.superdroidrobots.com/shop/item.asp?itemid=923
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Jedx says:
Jan 26, 2011. 1:28 PM REPLY Spektrum to the rescue once again! However, if you really want make somthing even more spectacular you could get a DX6i, it's programmable and not that much more cash is needed.
sifihog says:
johndavid400 says:
Sep 5, 2010. 8:28 PM REPLY should work just fine... the only thing is it says PCM, which I am unfamiliar with. But if it outputs Servo signals, you should be able to decode them. I almost bought the 6ch tx/rx from that website for $25: http://hobbycity.com/hobbycity/store/uh_viewItem.asp?idProduct=9041&Product_Name=Hobby_King_2.4Ghz_6Ch_Tx_&_Rx_V2_%28Mode_1%29 shipping was too high for me, I bought the 6ch Exceed from here for $44: http://www.hobbypartz.com/exrc62tr.html
everywhere says:
May 19, 2010. 6:38 PM REPLY okay I bought that and my arduino is having problems supplying power to my motorcontroler and my reciver any help??
johndavid400 says:
May 20, 2010. 8:17 AM REPLY What motor controller are you using? Also, are you using a standard Arduino Duemilanove or similar or are you using a smaller version like the Arduino nano or a 3.3v version?
everywhere says:
May 20, 2010. 5:07 PM REPLY duelmelinove... motor control is L298 motor driver from solarbotics as i dont want to make the tripple8 and is going in a smaller robot more like the isotope 11 on your website
tank1357 says:
Aug 27, 2010. 9:52 PM REPLY Read the specs on the duelmelinove, you'll notice each pin can't drive very much power. It much easier to set up an independent power supply using a regulator like the LM7805 and then buffering the outputs from the arduino. Its also good practice, as this provides a layer of isolation between the arduino and the device. Its easy to replace a buffer system if anything happens, but not so easy to replace a M.C.
everywhere says:
Aug 31, 2010. 1:43 PM REPLY i can replace the M.C. in 3 seconds its not that hard take out old chip, put in new chip, program, upload code
everywhere says:
never mind it is both my arduinos pin 6 dosent work
tycobb48 says:
Jan 23, 2011. 12:26 PM REPLY I know this post is older, but I wanted to chime in. Now that everyone is having so much fun hacking the new Kinect system, it seems that it would be the next logical progression for this project. (although I wouldn't test with the kids in the yard!) Any thoughts? PS - great instruct - I've got a dead mower in the back and I think I've found my winter project - thank you!
seabee890 says:
Jan 21, 2011. 3:50 AM REPLY I own a self propelled, and was wondering how hard it would be to use the drive belt from the self propell to turn a small alternator that would keep the batteries charged. then would i only need one battery to save weight . also a spring loaded cuttoff that would act as a deadman if the radio has enough channels. the signal is intrupted and the motor controls are disconnected. the other method was a stick above the mower that would disconnect if toppled from any direction, but that would require a shepards crook and i don't know any. Amazing device, as soon as i figure out alll of the electroinics involved i will build one. I hate mowing the lawn but love r/c. thanks,
johndavid400 says:
Jan 21, 2011. 8:43 AM REPLY exactly what I was thinking... last season I began looking for a way to mount a pulley above the mower deck, but below the motor on the output shaft. I thought about adding metal blocks between the motor and deck, but then saw a self-propelled and realized that it is the same thing already done for you. I would remove the self-propelled drive (use if for another robot) and replace it with (as you said) a 12v alternator, generator, or stator, that charges the battery. The lawnbot only works as well as it does because the batteries are marine deep-cycle and provide hours of run time - but this makes it very heavy. With a generator recharging the batteries and providing much of the motor power during use, you could easily get by with only one battery, or a small set of medium sized SLA batteries (12 to 18AH). My next lawnmower is going to be a fully electric - I found a Black and decker 24v cordless mower and plan to build a lightweight "garden-home" version of the lawnbot.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
seabee890 says:
Jan 21, 2011. 9:38 AM REPLY A wonderful idea, as far as you have gone so far and with the mechanical skills that i have seen, you should be able to get away with shaving the deck of the mower and placing the forward tires in the "void "space in the front corners of the mower, this should allow you to get in corners better. I look forward to trying out your plans as soon as i return from this deployment. I an curious what the power ratio will be when you operate a electric mower. If you can arrange a generator system, how much longer will it allow the mower to run than without? I can see that the power used to drive the mower and turn the generator will drain the battery but I am not familiar enough with the formulas to see if you would get a gain. Ialso wonder what a 125 or 50 cc motrocycle engine would benifit the system, it already has a power generation system included to run the lights and a very small battery to start things. I might try to find a scooter engine to see what i can make so the wife does not give me that look when i do frankenstein with our only mower. wish me luck.
unrealjohn says:
All you have to do now is shrink the kids ........
dreiduke says:
i have recoded the program to use a RC Car Pistol Transmitter. one chanel for drive and one for steering.
johndavid400 says:
Oct 21, 2010. 1:52 PM REPLY cool, I made some code to do that as well, mixed mode steering. I personally prefer tank steering for control, though sometimes using 1 stick to control both steering and direction is desirable, like when also using a pan/tilt camera controlled by the same remote.
dreiduke says:
theory: when i use IGBT`s i havt to change following: //FWD digitalWrite(motor1_b, LOW); <----- this to High analogWrite(motor1_a, adj_val1 - pwm_ceiling); right? because, u use n- and p- Cannel MOSFETS
johndavid400 says:
Oct 21, 2010. 5:57 PM REPLY Well, in theory, but you actually cannot replace the high-side P-channel mosfets with N-channel mosfets and use the same circuitry... that is, you must use a bridge-driver IC (like the Hip4081) or voltage-doubler to drive a high-side N-channel mosfet On. This is b/c you must provide a voltage to the Gate pin that is +5v higher than the Source pin (or Emitter on IGBT). Since the high-side is usually connected to the main positive voltage supply (ie. +24v), you must provide a voltage to the Gate pin that is at least +29v to turn the high-side switches On. I tried to do this using the Open Source Motor Controller (OSMC) design, the Hip4081 full bridge drive IC, and 4 N-channel mosfets for each Hbridge, and it worked well - but it is slightly more complicated as there are some extra parts needed to build the voltage doubling circuit (called a boot-strap circuit). You could try using those IGBTs with the OSMC schematic - I think it would probably work. The driver chips are about $7 each and there are some diodes, capacitors, resistors and a voltage-regulator needed to complete that circuit.
johndavid400 says:
Oct 16, 2010. 11:00 AM REPLY Well, it has been thought of, but the self propelled mechanism only works as a single drive shaft powering both rear or front wheels. You could make this work by adding a steering mechanism to the front wheels, or adding another gear box and powering each side separately to allow for tank steering. There is a guy that sells the self-propelled gearboxes on Ebay for around $15 check here: http://cgi.ebay.com/Gear-Box-Lawn-Mower-Bicycle-Battlebot-Robot-RC-Car-KART-/120633193553?pt=LH_DefaultDomain_0&hash=item1c164c7451
smartrobot says:
If I could not find any wheel chair motors what kind of motor would I use
johndavid400 says:
Oct 15, 2010. 4:41 PM REPLY I always search Ebay for "power chair motor", "battlebot", and "wheelchair motor". You can usually find a set without wheels for around $100, while a set with wheels will usually run $150-$200. Here are some current listings. http://cgi.ebay.com/DALTON-POWER-WHEELCHAIR-24-VDC-MOTOR-SET-/190456542141?pt=LH_DefaultDomain_0&hash=item2c581833bd http://cgi.ebay.com/PRIDE-JET-3-ULTRA-WHEELCHAIR-MOTOR-LEFT-AND-RIGHT-/120633285305?pt=LH_DefaultDomain_0&hash=item1c164ddab9
http://www.instructables.com/id/Arduino-RC-Lawnmower/
http://cgi.ebay.com/Shoprider-Power-Wheelchair-Scooter-Part-Motors-Pihsiang-/180562031210?pt=LH_DefaultDomain_0&hash=item2a0a55f26a http://cgi.ebay.com/JET-JAZZY-POWER-WHEELCHAIR-24-VDC-MOTOR-SET-/190455553380?pt=LH_DefaultDomain_0&hash=item2c58091d64 http://cgi.ebay.com/ROBOT-PRIDE-JET-3-WHEELCHAIR-MOTORS-TIRES-/160492132451?pt=LH_DefaultDomain_0&hash=item255e139863 http://cgi.ebay.com/Power-wheel-chair-motors-Brand-new-Robot-Battlebot-/330483000510?pt=LH_DefaultDomain_0&hash=item4cf25264be If you would like to use something cheaper, you can maybe try windshield wiper motors (12v gear motors), or 24v scooter motors geared down with a large wheel sprocket. These are between $15 and $50. See below for scooter and windshield wiper motors: http://www.robotcombat.com/products/AME-210-1011.html http://www.robotcombat.com/products/AME-218-1001.html http://www.allelectronics.com/make-a-store/item/DCM-1250/24-VDC-250W-MOTOR-11-TOOTH-SPROCKET/1.html http://www.allelectronics.com/make-a-store/item/DCM-130/24-VDC-135W-MOTOR-W/BELT-GEAR/1.html
smartrobot says:
Thanks!!!!
gjm says:
This is sooo cool; I just hope it doesn't decide that it must destroy mankind. (Too many movies)
tank1357 says:
what kind of etchant and printing paper did you use to make the 24-FET dual-bridge board?
Jorad says:
would this work http://www.robotpower.com/products/scorpion_XL_info.html instead of the h-bridge?
a_k_a__wolfboy says:
Jul 27, 2010. 6:10 PM REPLY I have a question It may sound stupid I have a 2 channel rc remote and reciever of 27MHz can I user that to give the arduino commands??
johndavid400 says:
Jul 28, 2010. 6:06 AM REPLY sure, any type of radio that ouputs a Servo signal will work - that is, the R/C receiver can directly drive a servo motor. I tried an old 27mHz pair with success, but the radio I was using had poor range. FWIW, the 2.4gHz radios are worth the money if you can afford one - excellent range and no interference.
Unit042 says:
Jul 7, 2010. 2:11 PM REPLY Amazing project... I have a wheechair in my garage that I have been struggling to figure out motor controllers for, but nothing cheap. A wise old friend strongly recommends I just beak down and shell out the cash for something similar to that sabertooth motor controller. Viewing your ible, homebrew hopes are revived, but before I go out and buy... what, 24 power mosfets? (tempting prospect, as I have never seen any mosfets that size for less than 5 bucks) I need to know a bit more about the schematic. Does the lack of swamping resistors allow any one of the mosfets from taking the entire load (leaving the others to sit idly by), and failing early? Are these really the cheapest power mosfets you could find (cheapest as in, more current carrying capacity per dollar spent getting it.)? Do you think only two mosfets per switch (eight mosfets per motor H-bridge) would give close to the same performance (same size motors etc.), or does the current version risk burnout enough as-is? By the way, I absolutely LOVE the idea of making a robot mow the lawn for me, you happened to beat me to doing it... keep up the excellent robot-building! :)
johndavid400 says:
Jul 8, 2010. 8:23 AM REPLY There are Gate resistors connected to each mosfet (both P and N channel) to limit the amount of current allowed to any mosfet. This keeps 1 from using all the current and leaving the others in the leg closed. I have never had a problem with uneven heating on this design. I searched for days and weeks for any mosfets that I could find. If you are trying to make a P and N channel bridge (easier since it needs no charge pump), you should try to find somewhat similar Mosfets to use. Additionally, the voltage from Gate to Source on the P-channel fets must not exceed the Vgs max in the datasheet - which is typically +/- 20v. This means that applying a GND signal to the P-channel fets to turn them On when using a 24v main power supply, will apply a voltage difference to the P-channel Gates that is above the +/-20v (since the Source voltage is above 20v) which can kill the mosfet. So my search was mainly for a good P-channel mosfet that was capable of handling at least 40 amps at 30v, had a Vgs of higher than 24v, and was cheap. The FQP47P06 is around $2 each, has a 25v Vgs rating, and is rated for 47 amps at 60v. It happens to work wonderfully and I have used this mosfet with the FQP50N06L N-channel equivalent quite extensively on a 24v power supply with no problems (The N-channel is only about $1 each). The number of mosfets you must use per leg will depend on the weight of your bot and the efficiency of the bridge. Running this bridge as in the instructable is not the best way to do it that is, driving the P-channel and opposing N-channel with the same PWM signal, as this causes unnecessary switching losses. A better way to drive the bridge is to use a separate Arduino output pin for each quadrant of the H-bridge, and using the PWM signal only on the lower N-channel fets. Then drive the P-channel fets with a simple digital On or Off. This nearly eliminates the risk of excessive transient voltages present at the mosfet Gate due to PWM switching. I have switched to running all of my H-bridges as 4-quadrant, which also allows for electric braking. If you really want to make the bridge efficient, you will need a mosfet driver chip. The OSMC motor-controller uses an all N-channel design with the hip4081 driver chip that has a built-in
http://www.instructables.com/id/Arduino-RC-Lawnmower/
charge pump for the upper N-channel fets. I have designed and built several variants based on the OSMC design, and they are far more efficient than my first attempts with the triple8. I have an OSMC bridge using 2 mosfets per leg that stays just as cool as the Triple8 with 3 mosfet per leg. My more recent versions of the triple8 use a mosfet driver (TC4427) for the lower fets which allows them to be driven at ultrasonic PWM frequencies (24kHz +), and a voltage divider for the upper fets to allow use with main power supplies above 24vdc. The wheelchair motors I am using will draw around 15 amps under normal load, but I have a 200lb bot that often has a load of dirt or rocks in the bucket, so it can easily surpass 25amps fully loaded. I recently bought a Sabertooth 2x25 and while it works well for normal use, if I try to run it hard for more than 5 or 10 minutes (going up hills and such), it begins to warm up and disable the outputs until it cools down. Trust me, with a bot as heavy as the Lawnbot400, the triple8 is not overkill - it actually works harder than the Sabertooth, but has no overcurrent protection so you must keep an eye on it. Bottom line: the more efficiently you drive the mosfets, the fewer of them you will need to do the same job.
Unit042 says:
Jul 8, 2010. 1:36 PM REPLY Thank you for giving me such a comprehensive reply. The info about efficiently driving the mosfets, now that is something I will have to read over a few times.... To make sure I understand, in ordder to efficiently drive a mosfet, I need a large enough voltage difference between the gate and the source. For the N type on the lower side of the H-bridge, I would simply apply positive 24 volts to turn it on; for the P-type, I would have to... have a negative 24 volt difference? (as in, apply GND, or 0 volts to the gate while the source has +24 volts?) Eliminating the switching transients makes sense. The TC4427 datasheet says it is for low side, so that part is taken care of (except for it's max supply voltage of +22v. Does that get in the way of using it in a 24v system?), but how does that voltage divider work (in terms of creating the proper driving voltage)? Does it simply lower (ie "divide down") the higher-than-24v-supply down to a usable voltage? That hip4081 looks expensive... The 47 ohm resistors on the gate limits the current? I thought it had to be a very low value resistor on the source of the mosfet. And... wait-wait-wait... These are 50 amp mosfets here. Sorry for being a bit (a lot) dense, but why not use just one instead of the three on the triple8? Is it because of inefficient switching?
Unit042 says:
Jul 7, 2010. 2:28 PM REPLY I just thought of another couple of (relatively important) questions: The P-mosfets cost extra. Would it be advisable to swap them out for cheaper Nmosfets (and making needed schematic changes of course), or were they chosen simply because of the convenience of automatically having the bias resistor, or the high side/low side stuff or whatever work out? About how much current do your wheelchair motors really require (when under load)? I ask because this project seems a bit overkill for wheelchair motors.... Which leads to question 3 of my previous post.
tank1357 says:
Aug 27, 2010. 9:45 PM REPLY PMOSs coast extra because they are harder to manufacture. But trust me, it is well worth the cost to use them. I've built plenty of bridges in my day, and every time i try to design one using only NMOS I always end up banging my head against the wall trying to get the voltages right, especially in big power projects where the resistors get warm, and when resistors get warm, their values change, negating all that careful math you just did. SO: use the PMOS in conjunction with the NMOSs. You'll thank yourself later. Jul 7, 2010. 2:56 PM REPLY You know what? Looking at the Digikey datasheet for the N-mosfet, it seems to be able to handle 52.4 amps (assuming a good deal of cooling off with the aid of a fan), AND if more than 10 are ordered, you get a quantity discount on them. So, I wonder if these things would handle 24 volts at 25 amps (continuous, but this is worst case scenario), with only four mosfets per motor in the traditional H-bridge arrangement (ie same as your schematic, but only one mosfet per 'switch'). Hmmm. Additionally, the 2n7000 mosfets might/could be substituted by a signal transistor like the 2n4401 (or somesuch), which I already have in my junk bin.... Sorry for triple posting, this project has me thinking. :D
Unit042 says:
tank1357 says:
Aug 27, 2010. 10:23 PM REPLY I don't know if this was mentioned, but if you're unsure if the MOS can handle the power, just place a few of them in parallel. They'll still behave as one unit, but be able to handle more power. This way you can use the relatively cheap Power MOSs from DigiKey. I think they're rated at 15 Amps. As a general rule of thumb, don't exced 80% of what the power specs say the MOS can handle. IE: if the specs say stay under 10 Amps, don't ask it to handle more than 8. The real trouble begins when you're trying to deal with big loads. I had a go-kart system with motors that could easily draw more than 40 amps, and as soon as those babies got under load, my PCB tracks burnt up. I had been using 0.15" tracks, which i thought were massive, but now I never drop below 0.3" wide tracks when expecting them to handle some juice.
Unit042 says:
Dec 12, 2010. 11:15 AM REPLY So, after rereading what you've wrote, then thinking about it (ie procrastinating), I went back and studied the datasheet for the N-mosfet you used: FQP50N06L Whose datasheet is here: http://www.fairchildsemi.com/ds/FQ/FQP50N06L.pdf I was looking at Figure 10 on page 4. And comparing that chart to the IRFZ48VPBF datasheet here: http://www.irf.com/product-info/datasheets/data/irfz48vpbf.pdf Figure 9 on page 5. Both charts show the case temperature versus the drain current. Since you used 3 FQP's on your triple8, the theoretical max amps would be 3 times 52.4 which is 157.2.... and for the IRF, whose advertised rating is 72 amps, it would take two to make 144 amps. BUT, those numbers are for ideal conditions. Looking at the temperature charts I pointed out, at 100 degrees celsius (which is really hot, so that's a good worst-case point), the FQP gives about 36 amps and the IRF does 51. 80% of those two numbers gives us: 28.8A for the FQP 30.8A for the IRF Either way, the numbers keep telling me that one mosfet per leg will do it for an average 25A load. Am I reading the datasheets wrong? You said that you used a driver chip for yours that enabled you to have two mosfets per leg and it ran as cool as the one with 3 per leg. Were the two per leg still for extra insurance? Something must not have sunk in to my cranium, because I am confused as to a good rule of thumb to make sure I am 1: Getting enough mosfets to handle the motors under realistic conditions, and 2: Not wasting money on extra mosfets, like the triple8 apparently seems to do..... I would really like to use one mosfet per leg, but I still do not know how to be absolutely sure it will work. Oh, and how does the junction between the mosfet legs and the PCB trace keep from burning up? I would think it's a narrow choke point. (For that matter, how do they manage to handle that much current in a TO-220 package?) Attached to this post should be a picture of my wheelchair frame, motors, battery, and redneck DPDT switch for testing.
http://www.instructables.com/id/Arduino-RC-Lawnmower/
Unit042 says:
Alright, the image should be attached to this post....
johndavid400 says:
Also, for a more thorough explanation of heat dissipation, check out this link: http://www.mcmanis.com/chuck/robotics/projects/esc2/FET-power.html He has built some awesome motor-controllers: http://www.mcmanis.com/chuck/robotics/projects/esc2/index.html
johndavid400 says:
Dec 12, 2010. 12:51 PM REPLY Unit042, you have been doing good research. While the ratings for the mosfets are important, there are really only 2 things that are important - the internal resistance of the mosfets (ie. RdsOn rating) and how you drive them. Regardless of what a mosfet says that it can handle in Amps, check the On state resistance and calculate how many watts will be produced using your predicted current-draw: FQP50NO6L = RdsOn = 0.026 ohms Power in watts = resistance x current ^2 (that's current squared) Now lets assume the motors will take 20 Amps continuously (about right for a geared down, 200lb bot running at 24v): Power = 0.026 ohms x (20A x 20A) = 0.026 x 400 = 10.4 watts Wow, 10.4 watts will be dissipated through this mosfet if using only 1. That's not good, as the TO-220 package at best can dissipate about 2.5W without a heatsink and/or cooling fan, about 5W with both. To get this 10.4 number down to 2.5 - 5, add more mosfetsL. 2 mosfets in parallel = 5.2watts, and 3 fets in parallel = 3.5watts. This is where I landed on 3 fets per leg..... my calculations could be flawed, but the mosfets on the Triple8 never got hot in the least bit. Let me be the first to say, that the Triple8 is not nearly as efficient as it could be - for instance, it uses the Arduino's 20mA ouptut PWM pin to drive a set of 3 mosfets. While this works just fine at 1kHz PWM, try running the Triple8 at 32kHz pwm, and watch it short out due to cross-conduction! This is because the mosfets will not get switched fully On and back Off between each cycle at such a high pwm speed without more current. Ideally, you need a mosfet-driver IC, be it a simple signal buffer (push/pull driver), or a full-fledged H-bridge driver for driving all N-channel fets like the extremely efficient OSMC design (which is what I later used on the Lawnbot). Though the Triple8 is not the best design in terms of pushing each Mosfet to it's full potential, How cheap it is to build (for a dual-motor controller of its power capability) is what makes it nice to have around. As I learned more, I saw more flaws in the design - but I am still amazed at how powerful it is. The reason for the Triple8 mosfets that I picked out was because they were: 1. Logic-level for interfacing directly to Arduino 2. Cheap cheap, at only about $1 each when I last bought them, 3. they have a +/-25v Gate to Source voltage, higher than normal so we can use the simple pull-up resistor design to turn off the Pchannel fets and still use a +24v system voltage. I later built a few home-made OSMC motor-controllers using their schematic and the HIP4081 driver chip - and this bridge only required 2 mosfets per leg, never getting hot and just as powerful as the Triple8 (mowing for 3-hour straight periods). This is because they are being driven with 2 amps peak signals, have shottkey turn-off diodes for high-speed PWM, and dead-time between cycles to prevent cross-conduction. These bridges cost more to build, but requires less mosfets, as they are driven very efficiently. I later bought a Sabertooth 2x25 to test out, and while it works well for tame mowing, try powering over a small tree or plowing through a large pile of brush and it usually trips the over-current limiter, making it look like the bot is having a seizure. the Triple8 and OSMC's would do no such whining, they would power the lawnbot over anything it had enough traction to climb. I have been working a lot on several new high-powered motor-controllers with Lawnbot sized robots in mind... these are much more efficient than the Triple8, but not as expensive as the OSMC. I have a book coming out in a month (Arduino Robotics) with plans for these designs, though they will also be posted on my website at that point for anyone to use. Cheers, jd
Unit042 says:
Dec 12, 2010. 9:33 PM REPLY Thank you for posting that link, it has helped me understand the thermal properties of mosfets more. Those datasheets are much less cryptic now... Also, some info I was looking at: http://homepages.which.net/~paul.hills/SpeedControl/Mosfets.html
http://www.instructables.com/id/Arduino-RC-Lawnmower/
I used the mosfet I proposed in following the calculations on the website you posted, and now I have two pages of equations that tell me that if I want my 24v battery to put 30A through it, I will need a heatsink whose resistance to ambient room temperature at 40 degrees celsius to be 3.67 deg. celsius per watt, and the article mentioned a typical cheap heatsink was something like 16 to 18. Not good. Looking back at what you told me.... assuming that a TO-220 package ought to dissipate no more than 5W, and that the only other thing that was important was the internal resistance, I pose a new set of equations. For reference: Watts = resistance of mosfet * (desired amperage squared) So, if we are dissipating 5 watts, and we have 30A for current, we have: 5 = mosfet resistance * (900) 5/900=mosfet resistance 5.5556 miliohms = maximum mosfet resistance. And that is a standard to which I compared digikey mosfets to. here's one that seems inexpensive enough: http://ixdev.ixys.com/DataSheet/99970A.pdf Advertised resistance is less than 5.4miliohms, but looking at figure 4 on page 3, at 100 degrees celsius, it is 1.6 miliohms. Plugging that with 30A, it disipates 1.44 watts. So, do you think this will work for one mosfet per leg, or am I missing more info?
TheMONKEY says:
Mar 26, 2010. 5:39 PM REPLY Just so you you know this is Rock Awesome Ive always wanted to build one of these and Ive just now started to collect the things to do it. I got many ? about the H-bridge control and how to hook it all up to the remote control Could you do it with a basic stamp????
http://www.instructables.com/id/Arduino-RC-Lawnmower/