manueller import aus nem CVS checkout (ist eh nur zum testen)
[ds1820tousb.git] / README
CommitLineData
93ac315e
MPM
1$Id: README,v 1.3 2009/03/22 22:18:54 simimeie Exp $
2
3Intro
4======
5
6This project contains schematics and firmware for a little
7board with an Atmel AVR ATtiny45 microcontroller that
8allows you to connect Dallas/Maxim DS18b20 temperature
9probes to an USB port on your computer.
10
11Some linux software to read the data from the USB device is also included.
12
13Licence for my own source code is GPL,
14Licence for the included libavrusb is their Licence - see the files in the
15usbdrv directory.
16
17Features
18=========
19
20The attiny45 is very small, it only has 8 pins. All of these pins are used
21by this project.
22An external crystal is used to generate a 15 MHz clock.
23In theory, you can connect an unlimited amount of temperature probes to the
24onewire-bus, and read them. However, in reality there are a few limitations:
25- There is a maximum number of probes supported set at compiletime. You can
26 increase the define in ds1820.c, but be aware that each additional
27 probe will require memory, and you will run out of memory at some point.
28 You could use an attiny85 (that has the same pinout but more memory)
29 to increase the number of probes possible.
30- The length of the bus, and the power used by the probes. If the bus gets
31 too long, signals and power won't be delivered anymore. The same is true
32 for too many probes on the bus.
33I currently have NO idea what these limits are - I only tested 2 probes on
34a short cable so far. Feel free to send me success-reports.
35
36When compiled with avr-libc 1.4.7 and avr-gcc 4.2.2 (and -Os as a compiler
37switch to optimize for size), this code uses around 3900 of the 4096 bytes
38of flash the attiny45 has. If you want to add your own extensions, you'll
39probably have to resort to the attiny85 instead, which has 8 KB flash
40instead of 4.
41
42How to use
43===========
44
45To make any use of this, you will need:
46
47To compile the AVR firmware: avr-gcc, avr-libc
48 use 'make all' to compile.
49To compile the linux host software: libusb, libusb-dev
50 use 'make hostsoftware' to compile.
51For flashing the AVR with avrdude, there is a 'make upload' target.
52That target is configured for a STK500 on /dev/ttyS0 - you will have to
53adapt the makefile if you use a different programmer and/or port.
54
55For hostsoftware usage information, call it with parameter --help.
56
This page took 0.245469 seconds and 4 git commands to generate.