This is the revision B version of the IRDistance2 module.

IRDistance2 Module (Revision B)

Table of Contents

1. Introduction

{more here}

2. Programming

Command
Name
Bit Action Description
8 7 6 5 4 3 2 1 0
Distance_Read 0 0 0 0 0 0 0 s s Send Return the distance for senosr ss as dddd dddd
0 d d d d d d d d Receive
Common
Commands
0 1 1 1 1 1 1 x x Send Standard common command. See specifications for details.
0 a a a a a a a a Receive
Select 1 a a a a a a a a Send Select the module with an address of aaaa aaaa. A time-out indicates that the module is not selected.
0 0 0 0 0 0 0 0 0 Receive

3. Hardware

The hardware consists of a circuit schematic and a printed circuit board.

The parts list kept in a separate file -- irdistance2.ptl.

3.1 Circuit Schematic

The schematic for the IRDistance2 module is shown below:

IRDistance2 Schematic

The module is connected to the RoboBricks2 bus via the 2×5 male connector N1 which feeds the can CAN bus physical layer signals into the MCP2551 (U2) which fed into the PIC16F688 microcontroller (U1). The power draw of a GP2D12 varies between 220mA and 9mA. For this reason it is not powered off of the logic power bus. Insetead, power is provided by the battery power bus which is electrically isolated from the logic power. The battery power bus is fead into the low drop out voltage regulator VR1 with regulation capacitors C1 and C2.

{I discovered that I completely bungled the copying of a circuit given to me by David Wyland. Go see Revision C to get the correct diagram.

j

3.2 Printed Circuit Board

The printed circuit board files are listed below:

irdistance2_back.png
The solder side layer.
irdistance2_front.png
The component side layer.
irdistance2_artwork.png
The artwork layer.
irdistance2.gbl
The RS-274X "Gerber" back (solder side) layer.
irdistance2.gtl
The RS-274X "Gerber" top (component side) layer.
irdistance2.gal
The RS-274X "Gerber" artwork layer.
irdistance2.gml
The RS-274X "Gerber" mask layer.
irdistance2.drl
The "Excellon" NC drill file.
irdistance2.tol
The "Excellon" tool rack file.

4. Software

The following files are available:

irdistance2.ucl
The µCL source code for the IRDistance2 module.
irdistance2.asm
The IRDistance2 module assembly code file.
irdistance2.lst
The IRDistance2 module listing file.
irdistance2.hex
The µCL IRDistance2 Intel® Hex file.

5. Issues

The following fabrication issues came up.


Copyright © 2006-2007 by Wayne C. Gramlich. All rights reserved.