Electonic circuits and schematics
Google
  Electronic circuits schematics Home Search Most popular Sitemap  
Search circuits



Categories

Circuits & schematics

  • Audio
  • Automotive
  • Games and entertainment
  • Microcontrollers
  • Miscellaneous
  • Models and model remote control
  • Motor, light and power control
  • Oscillators and timers
  • PC related
  • Power
  • RF circuit
  • Robotics
  • Security and other sensors and detectors
  • Telephone related
  • Test and measurement
  • Video and TV
  • Electronics guide

  • The very first steps
  • On the boards
  • Measuring current and voltage
  • Capacitors
  • ICs, oscillators and filters
  • Diodes I
  • Diodes II
  • Transistors
  • Analogue integrated circuits
  • Digital integrated circuits I
  • Digital integrated circuits II

  • Electronic circuits and electronic schematics


    Schematics > PC related > DS1620 based USB Digital Thermometer

    DS1620 based USB Digital Thermometer

    Overview

    I connected a DS1620 digital thermo-censor by Dallas Semiconductor to the Morphy Planning's USB-IO to build a PC-accessible digital thermometer.

    The DS1620 chip supports 3-wire (SPI) protocol and allows loose timing, so you can easily build a thermometer with it. It provides ¬0.5 centigrade accuracy, which should be sufficient for room temperature.

    Note that, in a common design of a device like this, a microprocessor (CY7C63001A in this case) usually has a dedicated firmware to control DS1620 and returns the measurement through HID INPUT REPORT. My implementation, however, uses the generic firmware supplied with Morphy USB-IO. As the result, the USB host (PC) must control every details to interface with DS1620.

    Background

    I have once made another PC-accessible thermometer. It has a voltage-output thermo-censor (LM35) and an A/D converter (MPC3204), that is driven through PC parallel port. It worked just fine, and I'm still using it. However, it has several problems:

    • The A/D converter requires an accurate reference voltage.
    • MPC3204 must be driven sufficiently fast, so we cannot control it reliably from a userland application.
    • The application must access hardware directly, since the device requires nonstandard protocol on parallel port.
    • Parallel cables are to be short, so the themometer must be located near a PC.
    • The device must be self-powered (with dry cells in this case).

    The first two problems are simpy solved by replacing LM35 + MPC3204 with a DS1620. Rest of the problems are solved by the use of USB.

    Hardware

    It is just a USB-IO with DS1620. No more, no less. The schematics clearly shows the fact. (If you erase the U2 box (representing DS1620) on the chart, it becomes the schematics of USB-IO. :-)

    The remarkable point of the design might be the use of the USB-IO ports; SPI CLK signal is allocated from Port #2, while DATA is from Port #1. It allows the use of "I/O with strobe" commands of USB-IO Ver.2 Firmware.

    The awkward design (or, just one of those) is that a signal from USB-IO Port #1 (that is initialized to High level after power up) is directly connected to the CS (chip select) of DS1620 that is a level-triggered active-High signal. Just an inverter should be sufficient to fix the problem, but an extra logic IC looks too much for this small circuit. If I wrote a dedicated firmware, I would initialize the particular signal to Low level. That's all I had to do.

    Host Software

    By design, the host software must take care of every details. I wrote several Java classes on top of USB-IO driver class library to control DS1620. I also wrote very unexciting sample application (Thermo.java).

    To use the class, you should first initialize an instance, and just ask for a temperature by calling getTemperature() command. SPI protocol implemented through USB-IO is extremely slow; it takes about 70ms to send or receive a byte, causing 110bps bandwidth. However, DS1620 takes about a second to complete a temperature measurement process, so the protocol overhead is not significant.

    The class also provides high resolution version of the method, getHiResTemperature(), which returns temperature in a higher (unspecified but aprox. 0.05 digree) resolution instead of normal 0.5 centigrade steps. See Javadoc for details.

    Title: DS1620 based USB Digital Thermometer
    Source: http://csx.jp/~fex/usbio/dk8-en.html
    Published on: 2005-02-03
    Reads: 886
    Print version: Print version

    Other schematics from PC related
  • 8 Channel software controlled fanbus with PWM
  • Control electrical appliances using PC
  • Parallel Port Relay Interface
  • Use the CD-ROM drive as a audio CD player without the computer
  • VGA to TV Scart
  • Simple PC thermometer
  • The Simplified I/O Interface
  • Simple Analog to Digital Converter
  • Monitor Your PC's CPU Core Temperature
  • RJ45 Network card to IR communication

  • Schematics > PC related > DS1620 based USB Digital Thermometer


    wedding accessory - Marie Antoinette movie subtitles - Причини поразки та уроки української революції 1917-1920 рр реферат - курсовая работа - Family Guy subtitles - subtitles - Экономическая география реферат
    Page generation 0.017 seconds
    DS1620 based USB Digital Thermometer