Categories
Balancing Robot Vehicle 
Sunday, December 10, 2017, 02:34 AM - Robots
Posted by Administrator

Balancing Robot Vehicle





I used this guy's YABR (Yet Another Balancing Robot) project as my guide: www.brokking.net/yabr_main.html

I used his code with some slight modifications:
- uses NRF24L01 radios instead of bluetooth to Nunchuk
- uses the pin mappings of my CNC shield whereas he directly wired to his DRV8825 drivers
- added incr/decr buttons for P and I and D to help to tune the PID variables.

My code is here:
https://github.com/nshaver/balancing_robot_vehicle/

Components:
2 x Arduino Uno (one for vehicle, one for joystick) - $20
1 x CNC shield - $5
2 x DRV8825 Stepper Drivers - $10
1 x MPU6050 Gyro/Accel - $5
2 x NEMA17 1.7A stepper motors - $25
2 x NRF24L01 2.4ghz radio with external antenna - $10
2 x NRF24L01 breakout adapter (converts to 5v) - $5
1 x Funduino Joystick - $10
2 x Wheel+Tire 12mm hex - $15
1 x Matek Duo power supply (12v for motors, 5v for Arduino) - $20

Everything above can be purchased on Amazon, probably Amazon Prime. If you enter exactly what I have for my description into your Amazon search you should be able to find the product.

2 x 3d printed wheel adapters
https://www.thingiverse.com/thing:270...

1 x 3d printed Kobalt battery adapter
https://www.thingiverse.com/thing:230444

The controller code is also at the link above.


add comment ( 474 views )   |  permalink
Upgrade LM293D Motor Controller 
Tuesday, May 9, 2017, 12:02 AM - Robots, Devices, Tutorials
Posted by Administrator

Upgrade an LM293D Motor Controller



The lm293d is only rated for around 600ma of continuous current. To increase that greatly, swap out the chip, and stack the chips to double the current handling. The sn75441one chip is rated at 1 amp, 2 amps peak. Stacking them gives 2 amps, 4 amps peak (though I wouldn't recommend 4 amps through it).

How to hotrod a lm293d motor controller



1 - replace the lm293d chips with SN754410NE chips, like these: https://www.digikey.com/product-detail/en/texas-instruments/SN754410NE/296-9911-5-ND/380180

2 - stack the SN75441ONE chips pin-for-pin, use thermal tape, and use a heat sink like this: http://www.mouser.com/ProductDetail/Aav ... Asd08P8HAQ

thermal tape: https://www.amazon.com/gp/product/B01M723CAN/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1

This should provide around 2 amps per motor, continuous, over triple the original current handling of the lm293d. Here's what it looks like on the MotoPi motor controller that stacks onto a Raspberry Pi Zero W:


add comment ( 460 views )   |  permalink
Robo Roadie 
Sunday, August 14, 2016, 09:31 PM - Robots, Programs
Posted by Administrator

Robo Roadie


Purpose


I've got this RockNRoller cart thing that's basically a dolly/cart with collapsible arms that can be extended, and is great for hauling speakers and heavy musical equipment around. It's very handy as is, but I don't really use it all that much. What would motivate me to use it more? If it were motorized and remote control from my cellphone, of course!

Parts


If you count the cost of the cart then this is a pretty expensive project. I've had the cart for years though. This could work with just about any wheeled cart you can round up, assuming you're willing to figure out how to mount the motors to it.

1 x Rock N Roller R10RT cart - $185
2 x Auto Power Seat Motors - $30
2 x 8" Pneumatic Tires+Wheels - $16
2 x Hobbywing Quicrun 1060 ESC - $40
1 x Arduino Nano - $4
1 x Arduino Nano I/O Shield (not required) - $8
1 x HC-06 Bluetooth Adapter - $8
1 x 5v BEC (not absolutely required) - $8
1 x 12v Battery (I used a 3S Lipo) - $15
1 x Android phone/tablet to control over bluetooth - ???
1 x Blueberry Android App - free

So, total cost not including the cart was about $130. With that particular cart, around $310 I guess.

Description


Here's what I wound up with:


Here's what I started with:


I'll upload a video as soon as I get a chance to video it in action.

So I took off the back wheels and mounted some fairly powerful motors onto it. I used two power seat motors for cars. They're great because:

1. they're cheap (around $15 on Amazon)
2. they're easily powered by 12vdc
3. the housing is not grounded (unlike most power wiper motors), so they're reversible without shorting out via the metal frame.

Here's a link to what I got, though I'd recommend looking for an "Amazon Prime" version if you can find it:


https://www.amazon.com/gp/product/B005IR1NBA/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

I used a couple of wheels+tires that I got from Freight Harbor. It's 8", supposedly non-marring, and is fairly easy to adapt to the motors I've got by using some hardware from Lowes. I used a 0.5" sleeve to get it to snug down pretty tight on the motor shaft.


An Arduino Nano and a I/O shield handle the logic, and a cheap bluetooth adapter (around $8 on amazon) handles the communications from the controller. I use my Android phone as the controller, and the app Blueberry does a great job of collecting speed/direction via screen presses.

Inexpensive Arduino Nano on Amazon:


https://www.amazon.com/gp/product/B015MGHH6Q/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

The Nano I/O shield:

https://www.amazon.com/gp/product/B011U8G1JO/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

The bluetooth adapter:


https://www.amazon.com/JBtek-Bluetooth-Converter-Serial-Communication/dp/B00L08GA4Q/ref=sr_1_1?s=pc&ie=UTF8&qid=1471211629&sr=1-1&keywords=bluetooth+hc06

The Blueberry app:
https://play.google.com/store/apps/details?id=com.bluetooth&hl=en#details-reviews

That app "Blueberry" is really cool. It won't work by just installing and pairing it, you have to code for its heartbeat signals. That's a really good thing though. That way, if the Arduino quits responding then the app almost immediately notices it, and it disconnects. Also, the Arduino will know very quickly if the app has disappeared. It helps to keep this Robo Roadie from going berserko and breaking ankles. It's definitely powerful enough to do great harm to an ankle should it get loose.

To drive the motors I used some inexpensive reversible brushed speed controllers. I've used these on several projects and they're reliable and fairly powerful. The Hobbywing Quicrun 1060 - around $20 per wheel.


https://www.amazon.com/gp/product/B00LXCM3Q8/ref=oh_aui_search_detailpage?ie=UTF8&psc=1

For power, I use whatever 3S Lipo battery I've got charged up. They can be had for $15 or so from HobbyKing. It runs for a long time on a 5000Mah 3S battery. I also used a separate BEC to get the ~12v down to 5v for the arduino+bluetooth adapter. I could probably use the BEC that's built into the ESCs, but I've pretty much decided to quit trusting ESCs for 5v. Separate BECs are so cheap (around $8), I'd rather just use one and know for certain that I'm going to get around 5v. I used a Dr. Mad Thrust 3A BEC that also has an on/off switch that you can use to turn on/off another device, like headlights.


http://www.hobbyking.com/hobbyking/stor ... ouse_.html



My Arduino code does the following:
- connects to the bluetooth adapter via software serial
- waits for a connection from an external device (Blueberry)
- watches for speed commands, remaps/mixes them, and sends them out to the speed controllers

The code is here:
https://github.com/nshaver/roboroadie
add comment ( 901 views )   |  permalink
Nerf Gun Robot 
Thursday, June 9, 2016, 03:41 PM - Robots, Programs
Posted by Administrator

Purpose:


This 4 wheel drive robot supports RC remote control, a headlight, a 2DOF arm with a gripper, remote Nerf gun firing, 5.8ghz video transmission, and automation via Raspberry Pi (not yet implemented).




Parts List:


4 x Pololu brushed DC gearmotors (2 with encodersj, 2 without)
https://www.pololu.com/product/3241

4 x Pololu wheels
https://www.pololu.com/product/1555

2 x Pololu motor mounting brackets (1 pair/pkg)
https://www.pololu.com/product/2676

1 x Ion Motion 2x15A Roboclaw motor controller
https://www.pololu.com/product/2395

Aluminum angles from Lowes - as needed to build frame.

2 x misc. servos for arm
https://www.amazon.com/gp/product/B0006O3XEA/

1 x misc. servo for Nerf gun trigger
https://www.amazon.com/gp/product/B0006O3XEA/

2 x misc. aluminum servo brackets (with bearing)
I can't find the ones that I usually get. I was getting them on ebay for around $4 each.

1 x ~5v headlight that can be turned on and off by simply removing or restoring power. Don't get one that uses a soft switch, because when you apply DC to those, they don't turn on until the button is pressed.

1 x Makeblock gripper
https://www.amazon.com/Makeblock-Robot-Gripper/dp/B00WG3KTL4/

1 x Arduino Nano
https://www.amazon.com/gp/product/B015MGHH6Q/

1 x Arduino Nano breakout board
https://www.amazon.com/gp/product/B011U8G1JO/

1 x Keystudio I2C PWM driver
https://www.amazon.com/gp/product/B0179AXJUQ/

1 x 5.8ghz video transmitter
https://www.amazon.com/gp/product/B00MLS0NOW/

1 x 12v camera
https://www.amazon.com/gp/product/B00RCZYIR2/

1 x Misc dual H Bridge, for controlling headlight and gripper
https://www.amazon.com/DROK-Controller-H-Bridge-Mega2560-Duemilanove/dp/B00CAG6GX2/

1 x electric Nerf gun. I used N Strike Elite
https://www.amazon.com/Nerf-N-Strike-Elite-Stryfe-Blaster/dp/B009T45XNM/

1 x 5v BEC for servo power and Arduino
https://www.amazon.com/Ship-Hobbywing-Switch-mode-UBEC-Lowest/dp/B008ZNWOYY/

1 x Misc 12v battery for video transmitter, camera, motor controller, and drive motors


Programs:


Arduino Nano code is on my github:
https://github.com/nshaver/nerfgun_rc_robot/

add comment ( 455 views )   |  permalink
Atticbot 
Sunday, June 14, 2015, 05:47 PM - Robots
Posted by Administrator

Purpose:


Atticbot is a remote control vehicle thing that I designed to remotely crawl around my attic and inspect the bats that had moved in. It's basically just a couple of continuous-rotation servos attached to a yardstick frame, a battery, an RC receiver, a video transmitter, and a camera.



Parts List:


2 x continuous rotation servos
https://www.amazon.com/Futaba-FUTM0031-S3003-Standard-Servo/dp/B0015H2V72/

2 x yardsticks for frame

1 x RC receiver - FrSky somethingorother
1 x RC transmitter - Turnigy 9XR-Pro perhaps
1 x 5.8ghz Video transmitter+camera
1 x 5.8ghz Video receiver/display
https://www.amazon.com/Eachine-LCD5802S-Receiver-Monitor-Antenna/dp/B014IVSKGW/

I've really skimped on details on this parts list. Email me if you have questions.

add comment ( 410 views )   |  permalink

| 1 | 2 | Next> Last>>