A store or seller is under no obligation to accept an item back if something is working but you no longer want it.I bought 1 servo, 1 sonar SRF05, and 1 Picaxe 28x1 Micronctroller, and I wish to return all three of them for full price, they all work fine I just gave up on them, who/ what do I call, I am American and live on the East Coast.
Your connections look good if your soldering is OK. So what programme did you use - the example from the manual 2??Ok, I created basic programs with the servo, such as a random number generator for the servo's rotations, as well as flashing an LED, but after all that I attempted to connect the SRF05 to the Picaxe 28x1 and, stupidly I attempted to solder them together, what were your connection methods, I am aware of where they connect its this right:
symbol trig = 0 ‘ Define output pin for Trigger pulse
symbol echo = 0 ‘ Define input pin for Echo pulse
symbol range = w1 ‘ 16 bit word variable for range
symbol siren = w2
main:
pulsout trig,2 ‘ produce 20uS trigger pulse (must be minimum of 10uS)
pulsin echo,1,range ‘ measures the range in 10uS steps
pause 10 ‘ recharge period after ranging completes
‘ now convert range to cm (divide by 5.8) or inches (divide by 14.8)
‘ as picaxe cannot use 5.8, multiply by 10 then divide by 58 instead
let range = range * 10 / 58 ‘ multiply by 10 then divide by 58
if range < 5 then alarm
if range < 100 then close
if range > 370 then quiet
let siren = range/40
sound 1,(110,siren)
debug range ‘ display range via debug command
quiet:
pause 100
debug range
goto main ‘ and around forever
close:
sound 1,(117,range)
debug range ‘ display range via debug command
goto main ‘ and around forever
alarm:
sound 1,(120,100)
debug range ‘ display range via debug command
goto main ‘ and around forever
Connecting the wires :/Sure, this forum is here to help!
The SRF05 is this one ? http://www.robot-electronics.co.uk/htm/srf05tech.htm
The connections will be 5V, ground, data in and data out.
You will need to choose some input and output pins on the 28X1.
But first, do you have a 5V regulator, 22uF and 0.1uF across the 5V, and a protoboard?
If so, do you have the picaxe connected up and can you download simple programs.
If that is working, next step is to flash a led.
And once that is working then you can connect up the ultrasonic board.
And when that works, set up a seperate power supply for the servo (4 batteries, common earth) and get the servo working.
You said in the first post that they all work fine, so presumably you have some of the above working already. Where are you stuck - connecting the wires up, or with the software?