The Sensor and Control Board (SENSOR) section is one of the daughter boards of the Modular Embedded Experimenter's PIC System (MEEPS). The SENSOR section is designed to connect to the expansion connector on the CPU section. The SENSOR section is intended as a testbed for the Remote Sensor and Control Section. The SENSOR section should be easier to work with because it uses through hole parts (for most devices) and is connected to a more capable microcontroller than the one on the Remote Sensor and Control Section.
The remainder of this document describes the subsections of the SENSOR, configuration options, and variations from the requirements.
The SHT71 is a relative humidity and temperature sensor with a synchronous serial interface. The serial interface on the SHT71 is not an SPI or I2C interface. Even so, the clock signal SCK, U306-1, is connected to the SPI clock pin RC3 and the data signal, U306-4 DATA, is connected to the SPI data input pin RC4. The DATA signal is bi-directional, so RC4 will have to be switched from input to output as necessary to implement the STH71 communications protocol. Resistor R306 pulls the open drain signal from the SHT71 high when pin RC4 is configured as an input.
U310 is a 3-pin TO-92 1-Wire device such as the DS1822 or DS1821 temperature sensors. Some devices, such as the DS1822 but not the DS1821, can be used in a multi-drop 1-Wire bus. Connector J303 provides for off board expansion of the 1-Wire bus. The pinout for J303 is identical to the pinout for J202 on the Display and Basic I/O board.
U306 is the ADXL202E dual-axis accelerometer. This device will measure accelerations up to 2G. The acceleration measurements are reported by pulse width modulation (PWM). The PWM signals are connected to the Capture and Compare input signals (RC1 and RC2). The PWM period and the measurement bandwidth for U306 are set by R307, C301 and C302. With the values listed on the schematic (1.25 mega-ohms, and 0.47uf) the period and bandwidth are set for 10Hz operation.
Power for U301 is provided by setting signal RA5 high. This provides programmable control of the power to the ADXL202E. The data sheet for the ADXL202E provides details on how it can be operated in a power cycled mode to reduce the average power requirements.
Resistors R301-R304 are included to allow bipolar transistors to be substituted for the MOSFET transistors. When MOSFET transistors are installed, R301-R304 should be zero ohm devices (jumpers) as noted on the schematic.
Warning: Signals RD4 and RD5 are also used as the secondary serial channel on the SENSOR board. This operation is mutually exclusive with the Parallel Slave Port operation. Jumpers between pins 1 and 2 of J305 and J304 and between pins 2 and 3 of J306 and J307 should not be installed if the Parallel Slave Port is to be used.
The pins on J310 can also be used as individual I/O signals.
U307 is limited to 5v operation. If the SENSOR module is to be operated from a 3.3 volt supply, or batteries, U308 should be used rather than U307.
U308 and U304 have antenna connections on the radio module. Antenna connections for U307 and U303 are provided on the SENSOR module (J309 and J308 respectively).
The power supplies for U308 and U304 are filtered by R312, R311, R313, C307, and C305. These components may be omitted (replace the resistors with jumpers) if Vcc is provided by a battery or another suitably low noise supply.
Resistor R309 limits the transmitted power from U304. The 430 ohm value listed on the schematic is suitable for 5v operation but may need to be change to comply with FCC regulations. R309 may be omitted for 3.3 volt operation, but the transmitter will still work (at a lower power) if R309 is left in the circuit when running at 3.3 volts.
U302 is a LED, IR sensor combination designed for IRDA. It can be used over distances as great as 3 feet and at speeds up to 115.2K Baud.
U309 provides communications at a range of rates from 9600 to 115.2K Baud. The internal rate serial speed to the CPU is independent of the IRDA rate. The IRDA rate will be negotiated with the remote device by U309. To avoid dropped date it is important that the flow control signals (RTS, CTS, DTR and DSR) be monitored and driven by the MEEPS CPU. The MEEPS CPU can also set the internal serial rate using RC0 and RC5 and enable or disable IRDA communications using RB4.
U305 is limited to a single communications rate, 115.2K baud. U305 does not provide any internal buffering and the internal serial data from the MEEPS CPU must be the same as the IRDA rate (115.2K baud). U311 provides a 16x clock used by U305 to produce and decode the modulated IRDA signal.
Using U305 it may be possible to create simpler IR communication links that do not use the full IRDA stack. However, such communications links may not be able to communicate with IRDA standard devices such as the Palm computer.
$Date: 2008-10-21 19:17:34 $
$Revision: 1.4 $ $Source: /home/cvsroot/MEEPSTop/hardware/sensor.html,v $ |
Contact me by email: jedunmire at gmail.com |