This is the Revision A version of the SonarDT1 RoboBrick. The status of this project is that it has been replaced by the revison B version.
This document is also available as a PDF document.
The Sonar1 RoboBrick is used to provide a RoboBrick interface to the SRF04 sonar range finder from Devantech.
The SonarDT1 RoboBrick is focused on operating the Devantech SRF04. In addition, it has the ability to control 1 servo, so that the SonarDT1 RoboBrick can be mounted on a standard hobby servo as a scanning platform. Lastly, there are some LED's that can provide direct feedback on the current distance being measured by the SRF04.
The SonarDT1 commands are summarized in the table below:
Command Send/
ReceiveByte Value Discussion 7 6 5 4 3 2 1 0 Read Distance Low Send 0 0 0 0 0 0 0 0 Return the low order byte llllllll of the distance Receive l l l l l l l l Read Distance High Send 0 0 0 0 0 0 0 1 Return the high order byte hhhhhhhh of the distance Receive h h h h h h h h Read Distance High and Low Send 0 0 0 0 0 0 1 0 Return the low and high order bytes llllllll hhhhhhhh of the distance Receive l l l l l l l l Receive h h h h h h h h Trigger Distance Measure Send 0 0 0 0 0 0 1 1 Trigger a Single Distance Measurement Disable Servo Send 0 0 0 0 0 1 0 0 Disable Servo Enable Servo Send 0 0 0 0 0 1 0 1 Enable Servo Disable Continuous Measurement Send 0 0 0 0 0 1 1 0 Disable Continuous Measurement Enable Continuous Measurement Send 0 0 0 0 0 1 1 1 Enable Continuous Measurement Increment Servo Send 0 0 0 0 1 0 0 0 Increment servo position by one. Decrement Servo Send 0 0 0 0 1 0 0 1 Decrement servo positon by one. Read Servo Send 0 0 0 0 1 0 1 0 Return servo value ssssssss of the distance Receive s s s s s s s s Read Enables Send 0 0 0 0 1 0 1 1 Return servo enable s and continuous distance measurement m Receive 0 0 0 0 0 0 m s Set Servo Low Send 0 0 0 1 l l l l Set the low order 4 bits of the servo position to llll. Set Servo High Send 0 0 1 0 h h h h Set the high order 4 bits of the servo position to hhhh. Shared Commands Send 1 1 1 1 1 c c c Execute shared command ccc.
The hardware consists of a circuit schematic and a printed circuit board.
The schematic for the Sonar1 RoboBrick is shown below:
The parts list kept in a separate file -- sonardt1.ptl.
The printed circuit board files are listed below:
The software for the SonarDT1 RoboBrick is in the following files:
The following fabrication issues came up: