Precise USB2.0 temperature sensor with minimum components

The idea of reading temperature via USB is very simple. Construction is reliable, precise and requires few components. Circuit is very simple as there is USB to UART converter IC used.



USB to UART conversion is performed via F232RQ chip from FTDI (Future Technology Devices International). Besides ability to convert this chip also can work in bit-bang mode (bit controlled transfer). In bit-band mode I/O lines work as both direction data-lines that can be easily controlled by user. So there can be any digital circuit connected to F232RQ pins in this case AD7814 temperature sensor from Analog Devices is connected. Temperature sensor uses only three data lines: SCK, SS and SDO of four SPI data bus. SDI line of AD7814 has to be grounded as we do not need to send any data to sensor. FT232 works as SPI master which emulates AD7814 protocol. Data from temperature sensor reads together with other bus signals on FT232. Chip allows to read data while write. Sleep signal is used to power off AD7814 temperature sensor when USB is inactive (sensor is powered from USB and consumes about 20mA).

When programming you need to activate chip and emulate SPI function for reading temperature values.



This way program is able to read FT232 port status depending on if pins are set as input or output. Each FT232 has it own serial number it is possible to identify multiple sensors connected to one USB port.

In order to get current temperature value program has to write byte 35 to port register. Sensor waits for 16 clock cycles on SCK line while CS is pulled down. Clock cycle may be 1MHz. After reading 10 bits, further data may be ignored. Anyway it is recommended to read datasheet for more details about configuring and reading data from this temperature sensor.

Current design can be used to read various sensors including I2C, SPI, UART and other with digital interface. Sorry no sample program included.

Source: РадиоЛоцман

One Comment:

  1. Pingback: Electronics Projects Blog » Blog Archive » Precise USB2.0 temperature sensor with minimum components

Leave a Reply