The sonar and display are operational
I added a new command to the BS software - "display a char on the display". Passing a whole string does not work since I (A) run of out registers and (B) each command must have the same number of parameters to prevent serial interfacing troubles. Since I can only pass one char per main loop execution texts arrive pretty slowly. But, it works!
Tidied up the BS software. Removed superfluous variables to free up registers. Tidies up code. Improved variable names.
I put the ping (distance) sensor on the web cam turret, wrote a program that slowly turns the turret while recoding distance measurements, and added a panel to display to display distance depending on the turning angle. Voila - a sonar!
The resolution is pretty course, through: the sensor is able to measure distances down to the centimeter (I checked this with a large flat surface), but the "beam" is quite wide meaning details get "blurred". Still, this is good enough for picking out obstacles over a 180°C angle, and determining which direction is the best to go.
Tidied up the BS software. Removed superfluous variables to free up registers. Tidies up code. Improved variable names.
I put the ping (distance) sensor on the web cam turret, wrote a program that slowly turns the turret while recoding distance measurements, and added a panel to display to display distance depending on the turning angle. Voila - a sonar!
The resolution is pretty course, through: the sensor is able to measure distances down to the centimeter (I checked this with a large flat surface), but the "beam" is quite wide meaning details get "blurred". Still, this is good enough for picking out obstacles over a 180°C angle, and determining which direction is the best to go.


0 Comments:
Post a Comment
<< Home