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: РадиоЛоцман
Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post | TrackBack URI for this post
New on WinAVR Tutorial
Running TX433 and RX433 RF modules with AVR microcontrollers,Sometimes in embedded design you may want to go wireless. Might be you will want to log various readi …Programming AVR ADC module with WinAVR,Most of AVR microcontrollers have Analog to Digital Converter (ADC) integrated in to chip. Such solut … |
New on WinARM Tutorial
What are differences between WinARM and WinAVR,Everyone who is working with AVR microcontrollers knows this powerful tool – WinAVR (http://win …LPC2000 watchdog timer,As in all microcontrollers watchdog timers purpose isto reset microcontroller after reasonable amount … |
