CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Hobby Projects > Hobby Discussion


Hobby Discussion Discuss other CNC-related Hobbies here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 12-27-2005, 01:33 PM
 
Join Date: May 2004
Location: United States
Posts: 456
JRoque is on a distinguished road
RC toy project

Hello everyone,

Here's a project I took on some time ago after we bought our son one of those plastic electric cars. There were two problems with it: 1. my son is too young to know how to operate the wheel and pedal and 2. when he did press the pedal the car would launch forward full force giving him a nice whiplash.

I wanted to install a simple ramp up/down circuit that I control with a cable while walking behind the car. That, somehow, morphed into the current implementation that took nearly 2 months to complete and it would have taken longer if not for my loving wife's encouragement in the form of "are you gonna finish that before he's 18???".

Briefly described, the system consists of a 900 Mhz based remote/base control with speed, steering and direction. There are also late add-ons like a horn and headlights. Starting with the base, a visual basic program interfaces the USB joystick and base radio. It shows the car's "speed", steering along with battery voltage and amperage consumption. The program has a loop that reads the joystick position plus several buttons status, builds a protocol packet and sends it to a serial port where the radio is connected via USB. The transmit packet sends speed, forward/reverse, emergency stop, steering position, headlights on/off and horn. There's also a couple of spare bits if needed. The receive packet has voltage, amperage and current steering position along with a few spare bits as well.

On the car side, there's the H-bridge main motor drive built around the Intersil HIP4081A. If I may say, not my favorite chip when used in a 12V battery application. It's doing the job now but it gave me some trouble due to it's board layout and power requirements. It seems to lock up and shoot-thru when going under voltage. I was expecting the UV feature to simply disable the drive. At any rate, it works ok now after eating a few FETs.

The steering drive was built around the Texas Instruments TPIC0108B. This is a very easy to use H-Bridge chip with a 6-18V input range and 5A output. It takes up to 40V input dumps so it's well within it's safe range for this application. It was nice to throw the chip on a PCB with a couple of external components and have it work right the first time.

The main logic board on the remote side has the Wi.232, 900 Mhz ISM radio by Radiotronix. This is a small footprint radio module which is also easy to use. It can be configured to be as transparent as a serial cable. When coupled to the right antenna, the range can be extended to around a mile line-of-sight, possibly more. After a couple of bumps when configuring the radio, I decided to write my own config VB program to make it easier in the future. The radio runs off a 3.3V power source so I added a KA78R33 regulator along with the 5V regulator used in the rest of the circuit.

Also on the main logic board is the microcontroller in charge of keep order around. I'm a big fan of the Atmel ATmega8 which I use for nearly all of my projects. If you're not familiar with the M8, it has onboard ADC, timers, interrupts, I2C, comparator, watchdog, flash, in-circuit programming, bootloader.. the list goes on. All of that for about $4 a piece. Anyway, the ucontroller takes the protocol packet from the radio at 38,400 baud and parses out the control bits. It sends the speed and steering commands to their respective modules and updates the base with voltage and current measurements. It also handles the headlights and horn commands. I wrote a current limiting loop to prevent motor overload/overspeed but it hasn't been used yet. The typical current consumption hovers around 2.5A so all is safe.

Because this car runs on a battery and my son also has another RC car that uses NiCADs, I thought it would be a good idea to build a universal charger. After some researching, I settled on Maxim's MAX1648 chip. I used their reference design, added a thing here and there and cut the PCB. Just when I'm ready to solder their part, I noticed they never actually shipped my order. I called them up and they told me they were pulling the plug on that part and recommended another. I'm not happy at this point. So I had to come up with something useful using what I had already built. I ended up with a working charger for lead acid, NiCad, NiMH.. there's also a profile for Li-ion but I haven't tried that yet. Fixing the charger up with a new circuit and coding the charge profiles proved to be as time consuming as the rest of the project. For one, you have to wait a certain period of time to know if your battery is charging right, etc. Due to the mess of changes made, I don't have an updated schematic for the charger yet. However, I want to note that I used the Analog Devices AD8205 current sensor which is an awesome little part. The current sense resistor ended up being a 6" long piece of #26 wire since I didn't have a 0.02 ohm resistor at hand. Again, an ATmega8 was used to read the current and voltage values and run down through a 3 stage charging profile. No battery temperature sensor was used with this version. The interface is done through a backlit LCD.

Ok so DARPA won't be knocking on my door anytime soon but all in all, it has been a fun project. If I do this again, I'm thinking I'll build a car from scratch. I want something that's faster, with rubber tires and it has suspension. My son may not complain but it can't be much fun to be riding on plastic wheels that rattles your brain that way. My camera was down when I worked on this project and didn't get it fixed after I was done so pictures were taken with the circuits already mounted and are not the best. The video is also poor quality due to compression and what it seems like horizontal distortion lines. I'm posting the schematics and pictures of the project for your reference. I'll reserve from posting the microcode as it would take lots of time to explain and might not make much sense outside my implementation. However, if I can answer any questions on a particular function, etc, please let me know.

Pics on this posting: The VB control program, base radio, battery charger, drive for rear motor, drive for steering motor and steering mechanics. Video and more pics on the next post below.

Best regards and happy new year!

JR

PS: Yes, the project's called "PoopsMobile". Poops is my son's nickname. I gave him that name because when he was smaller he, well, pooped a lot - yes I know you wanted me to share that. I'm sure he'll beat me senseless when he's old enough to be embarrassed by it. 8 - )
Attached Thumbnails
Click image for larger version

Name:	ControlProgram.JPG‎
Views:	260
Size:	51.9 KB
ID:	13256   Click image for larger version

Name:	BaseRadio.JPG‎
Views:	151
Size:	32.1 KB
ID:	13257   Click image for larger version

Name:	Charger.jpg‎
Views:	198
Size:	27.8 KB
ID:	13258   Click image for larger version

Name:	MainDrive.JPG‎
Views:	178
Size:	52.6 KB
ID:	13259  

Click image for larger version

Name:	SteeringDrive.JPG‎
Views:	177
Size:	47.6 KB
ID:	13260   Click image for larger version

Name:	SteerGear.JPG‎
Views:	199
Size:	49.5 KB
ID:	13261  
Reply With Quote

  #2   Ban this user!
Old 12-27-2005, 01:41 PM
 
Join Date: May 2004
Location: United States
Posts: 456
JRoque is on a distinguished road

On this post: more battery charger pics, the car's new steering mechanism and the main board on the car side.

There's also this video . It shows the car moving around in front of my house. It also shows how my test driver sometimes prefers to get out and push the car and simply run away and having to be fetched. Finally, the car moves around at full speed before entering the garage.

Schematics will follow.

JR
Attached Thumbnails
Click image for larger version

Name:	ChargerInside.JPG‎
Views:	158
Size:	61.4 KB
ID:	13262   Click image for larger version

Name:	ChargerMenu.JPG‎
Views:	178
Size:	47.1 KB
ID:	13263   Click image for larger version

Name:	DriveTrain.JPG‎
Views:	160
Size:	53.6 KB
ID:	13264   Click image for larger version

Name:	RemoteRadioMicro.JPG‎
Views:	160
Size:	46.0 KB
ID:	13265  

Reply With Quote

  #3   Ban this user!
Old 12-27-2005, 01:45 PM
 
Join Date: May 2004
Location: United States
Posts: 456
JRoque is on a distinguished road

Project schematics, as is.

JR
Attached Files
File Type: pdf BDCMotorControlV2-HV_RevA.pdf‎ (96.5 KB, 262 views)
File Type: pdf BDCMotorControlV3-HV_RevB.pdf‎ (269.1 KB, 228 views)
File Type: pdf RCBase-UC_RevC.pdf‎ (102.5 KB, 213 views)
File Type: pdf RCRemote-UC_RevB.pdf‎ (150.8 KB, 268 views)
Reply With Quote

  #4   Ban this user!
Old 12-27-2005, 07:32 PM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

So, this morphed...into a RC instead of an on-board ramp up/down solution??

Looks like you had fun!
Reply With Quote

  #5   Ban this user!
Old 12-30-2005, 01:49 AM
 
Join Date: May 2004
Location: United States
Posts: 456
JRoque is on a distinguished road

Yes it was a lot of fun and my son loves it which is the important thing. Here's a screenshot of the steering mechanics. This was done in Rhino and the gears were done with the help of a Rhino script called GearGen. That script and others for Rhino can be found in the Thomas Anagnostou webpage.

JR
Attached Thumbnails
Click image for larger version

Name:	SteeringGear.jpg‎
Views:	257
Size:	77.7 KB
ID:	13331  
Reply With Quote

Sponsored Links
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -5. The time now is 07:02 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361