Let's Make Robots!

The China syndrome

ChuckCrunch's picture
navigate around via ultrasound
Cost to build: 
$35
Time to build: 
5 hours
Weight: 
100 grams
AttachmentSize
TCSRobot.bas1.3 KB

The China Syndrome :

It was a dull night on the internet , so i was searching Ebay for cheap parts and found lots of mini servos for around $4 + or - .50c ,some  HC-SR04 sonar modules for around the same price , i also found some DC to DC converters for about $4. but they have not arrived yet :( (massive over kill for this bot ) so i am going with 3 AAs .well 4.5v from a power supply for developing the program .:)

So

6 ice cream sticks + wood glue

1 old tank treed set cut down to fit

2x modified mini servo " Mystery, Micro Servo, 9g, SD90"

note* you need leave the (trim pot ,pot meter ,potentiometer,) thing in the servo case . it is used as a axial for the gears and it will rotate all the way around  as is . then desolder the leads and replace the potentiometer with 2 x 330 ohm resistors ,  

1x HC-SR04  + 1 mini servo for panning

08m2

pin 0 ,,,Trig on HC-SR04  & pan servo   + 330 ohm in line

pin1 ....Nothing yet been moved to pin0        <<<<<<<<<<<<<<<<<<<<<<<, UPDATE 14 of January 2012

pin2,,,,, modified servo1   + 330 ohm

pin3 ,,,,Echo on HC-SR04

pin4,,,,,modified servo 2   + 330 ohm

power from out side power supply .no battery 

   210 BYTE out of 2028 ~ program -- lots of room left there ,,, the same basic avoid-er as my beginner bot , im getting the most out of this 08m2 and still keeping it as uncomplicated as i can .

This is the first "Robot " i have made with the Pic Axe 08m2, I'd like to make this a lot smaller.

there is more room for programing stuff , what else can i get this guy to do?, as he is, via programing

i hope you enjoyed seeing it thanks

UPDATE,,,,,,,,..... 11th of January 2012 ...........

 

LM2596 DC Step-Down Adjustable Converter Power Module

Features : 
This is high performance DC to DC Step Down Adjustable Power Supply Module
Based on well kwon LM2596 Switching Regulator.
Input voltage: 4.5-35V
Output Voltage: 1.25-30V (adjustable)
Output current: rated current 2A, maximum 3A (need to add heat sink),

If the output power greater than 15W, the proposed combined heat sink
Conversion efficiency: Up to 92% (output voltage higher, the higher the efficiency)
Switching Frequency: 150KHz
Rectifier: Non-Synchronous Rectification
Module Properties: Non-isolated step-down module (buck)
Short circuit protection: current limiting, since the recovery
Operating temperature: Industrial grade (-40 ℃ to +85 ℃) (output power 10W or less)
Full load temperature rise: 40 ℃
Voltage regulation: ± 0.5%
Load regulation: ± 0.5%
Dynamic response speed: 5% 200uS
Size: 49 H x 23.5L x 12.5 Wmm (with potentiometer)
Output ripple:
Input 24V Output 12V 3A 120mV (MAX)
Input 12V Output 5V 3A 60mV (MAX)

info via E-bay cut and pasted wo ho :)

http://www.ebay.com.au/itm/ws/eBayISAPI.dll?ViewItem&item=290633119857&ssPageName=ADME:L:OC:AU:1123

im  scared to show you my home made regulator  "monsterlator " on with the pic's

all of that ^ + a battery

Ta Daaaaaaa

SOLAR  charger for battery

new box 

so tomorrow i may be able to get some video of him running under solar power. well a battery charged from the sun. from the little test today the battery charges nicely, slow but it charges im getting more V's than i need if i can find a solar garden light somewhere ill scavenge the panel and connect it up in parallel to up the Amps and get a faster charge, i may add power management to the program  and by that( run for 30 seconds and stop/ sleep /nap  for 5 min's )  

oh and i wrote a  wall following program kinda sorta ,it's so slow ill need to do time laps just to show you :)      

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
David C.'s picture

oh yea Dan u found that!(sarcasm)

Dan M's picture

(puzzled) Uh, ...Found what?

ChuckCrunch's picture

he is referring to the link for the servos and stuff . i don't think he understands the concepts.   

vishurockssrivastava's picture

Hey, can you post the link from where you found the HC-SR04 module and the miniature servos? I know its on EBAY but its a hard thing to find it.

Dan M's picture

Hi  vishurockssrivastava,

At $2.99 US each, this is the cheapest HC-SR04 ultrasonic sensor I know of:

http://www.ebay.com/itm/New-Arduino-Ultrasonic-Module-HC-SR04-Distance-Measuring-Transducer-Sensor-/250973476855?pt=LH_DefaultDomain_0&hash=item3a6f2f57f7

 

Also, for 9g servos, I bought some from this place, four servos for $8.55 US with free shipping.

http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=300327412850

They arrived here (in the US) in just over a week. The same place sells single servos for $2.97 US also with free shipping.

 

 

ChuckCrunch's picture

lol ok

do a search on e-bay for "mini servo"

http://www.ebay.com.au/itm/5X-SG90-9g-450-7usec-torque-mini-mirco-Servo-f-R-C-Toys-/270892963700?pt=AU_Toys_Hobbies_Radio_Controlled_Vehicles&hash=item3f127a9774

do a search on e-bay for "HC-SR04"

http://www.ebay.com.au/sch/i.html?_from=R40&_trksid=m570.l2736&_nkw=HC-SR04

i have just picked 2 at random to show you , i can't recall who it actuality was. some Hong Kong vendor  

Dan M's picture

I took a look at your program and noticed one thing. At the end of the program I see a slight program error in the check: subroutine. When you do a "gosub check" from inside the check subroutine, it saves where it is and goes one level deeper. If it hits this many times, it will eventually run out of stack memory, causing a stack overflow.

Since it is already inside a "gosub check", it should use a goto check at that point to keep from going deeper.

check:
    gosub ping2
    gosub ping3
    if w2< 100 and w3 < 100 then
             gosub revs
             goto check         ;  instead of gosub, to avoid an eventual memory stack overflow
         endif    
   return

ChuckCrunch's picture

 ill put that in next time im looking at the program , China and scooder have the same program, more or less ill update both soon ,

thanks again for tip 

lumi's picture

Any further development Chuck?

ChuckCrunch's picture

bump