Spinny Range sensor
Page last updated
13 Jan 2010, by
David Buck.
2
replies
right, the problem: using a range sensor and motor/ servo of some sort, sample the range.
the idea for this is for my car and for it to decide what direction to travel, i would like to it to be continusly spinning and sampling all 360 degrees.
the solution: using a small motor or 360 servo i can mount the sensor on top of the car and have it spiining and sampling and feeding back the result
the next problem is to work out what direction is what.
You could use a magnetic compass? Example
If you control the 360 servo with mbed, you can use the angle of the servo relative to the compass
thanx .... i have a compass lying around somewhere but i think it need something like a 16bit Converter to be accurate to a degree but ill give it a go, the other trouble i have is ive found that this servo i have is more like a stepper motor in the sence the servo comands sent act as a speed control so may need to write my own code rather than steeling the pre built servo class
You need to log in to post a comment
You could use a magnetic compass? Example
If you control the 360 servo with mbed, you can use the angle of the servo relative to the compass