Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_39.ADF » F/+temp1

F/+temp1

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_39.ADF
Filename: F/+temp1
Read OK:
File size: 0A6C bytes
Load address: 2B206576
Exec address: 706D6574
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
Temperature module instructions
===============================
Getting an digital value into your BBC to represent the temperature of
some physical object is made simplicity itself by attaching a ready made
board to your beeb. Before, the alternative approach would be  to use the
analogue port to read from a thermistor of similar device - but which
would be hard to calibrate. 

This module allows temperature data to be shifted into the BBC as a
background task,while you continue to use the machine for another purpose.
This could be of use in (for example) a shop, where the BBC was used for
stock taking while also monitoring (and saving...) the temperature of
chillers for hygene reasons. Or monitoring the temperature of your
greenhouse while typing a letter to your aunt!

PARTS...The circuit diagrams shows electrically how to assemble the
unit, requiring the following parts:
1x  Ready build module (Maplin order
code: FE33L9x  ZTX300  NPN switching transistors
9x  10k pull up resistors 
9x  1.2k base resistors

In addition,it may be useful to have a
handful of pins, a user port plug anda couple of feet of ribbon
cable.
BENEFITS...*Software selectable sample rate, mode,and hi/lo point
*Runs off a single AA battery
*Choice of Celcius or Fahrenheit
*Seperate 'hi alarm point reached' and 'lo alarm point reached' pins

BUILD...1.Join from the premade module to your board with a short length
of 14 way  ribbon cable, noting which wire is ground.
2.Attach the resistors and transistors from the output from the BBC user
port  to the control lines on the m odule.The 'REM' statements at the
start of the  software and the hints section below tell you which is
which.Note PB7 was  not needed.
3.Do the same again in the opposite manner for the data and clock inputs
from  the temperature module back into the BBC's interrup t lines,CB1 and
CB2.
4.Ensure that both 0v lines on the BBC and temperature module are joined  
together.

HINTS...*You might want to add a three small (1.5v) piezo buzzers to the
alarm point pins,pin 6,7,and 15. Otherwise,just leave them
unconnected. Ground is pin 1.
* The software can easily be modified if you made a mistake wiring up the
pins though I suggest: 
PB0 = show lo point      => module pin 13                  
PB1 = show hi point      => module pin 12
PB2 = celcius/fahrenheit => module pin 14        
PB3 = sample rate select => module pin 5 
PB4 = set hours          => module pin 2 
PB5 = set mins           => module pin 3                   
PB6 = clock/temperature  => module pin 11
CB1 = data               => module pin 9
CB2 = data load clock    => module pin 10

FROM...Robert Sprowson.
Happy soldering!
00000000  0d 54 65 6d 70 65 72 61  74 75 72 65 20 6d 6f 64  |.Temperature mod|
00000010  75 6c 65 20 69 6e 73 74  72 75 63 74 69 6f 6e 73  |ule instructions|
00000020  0d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.===============|
00000030  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
00000040  0d 47 65 74 74 69 6e 67  20 61 6e 20 64 69 67 69  |.Getting an digi|
00000050  74 61 6c 20 76 61 6c 75  65 20 69 6e 74 6f 20 79  |tal value into y|
00000060  6f 75 72 20 42 42 43 20  74 6f 20 72 65 70 72 65  |our BBC to repre|
00000070  73 65 6e 74 20 74 68 65  20 74 65 6d 70 65 72 61  |sent the tempera|
00000080  74 75 72 65 20 6f 66 0d  73 6f 6d 65 20 70 68 79  |ture of.some phy|
00000090  73 69 63 61 6c 20 6f 62  6a 65 63 74 20 69 73 20  |sical object is |
000000a0  6d 61 64 65 20 73 69 6d  70 6c 69 63 69 74 79 20  |made simplicity |
000000b0  69 74 73 65 6c 66 20 62  79 20 61 74 74 61 63 68  |itself by attach|
000000c0  69 6e 67 20 61 20 72 65  61 64 79 20 6d 61 64 65  |ing a ready made|
000000d0  0d 62 6f 61 72 64 20 74  6f 20 79 6f 75 72 20 62  |.board to your b|
000000e0  65 65 62 2e 20 42 65 66  6f 72 65 2c 20 74 68 65  |eeb. Before, the|
000000f0  20 61 6c 74 65 72 6e 61  74 69 76 65 20 61 70 70  | alternative app|
00000100  72 6f 61 63 68 20 77 6f  75 6c 64 20 62 65 20 20  |roach would be  |
00000110  74 6f 20 75 73 65 20 74  68 65 0d 61 6e 61 6c 6f  |to use the.analo|
00000120  67 75 65 20 70 6f 72 74  20 74 6f 20 72 65 61 64  |gue port to read|
00000130  20 66 72 6f 6d 20 61 20  74 68 65 72 6d 69 73 74  | from a thermist|
00000140  6f 72 20 6f 66 20 73 69  6d 69 6c 61 72 20 64 65  |or of similar de|
00000150  76 69 63 65 20 2d 20 62  75 74 20 77 68 69 63 68  |vice - but which|
00000160  0d 77 6f 75 6c 64 20 62  65 20 68 61 72 64 20 74  |.would be hard t|
00000170  6f 20 63 61 6c 69 62 72  61 74 65 2e 20 0d 0d 54  |o calibrate. ..T|
00000180  68 69 73 20 6d 6f 64 75  6c 65 20 61 6c 6c 6f 77  |his module allow|
00000190  73 20 74 65 6d 70 65 72  61 74 75 72 65 20 64 61  |s temperature da|
000001a0  74 61 20 74 6f 20 62 65  20 73 68 69 66 74 65 64  |ta to be shifted|
000001b0  20 69 6e 74 6f 20 74 68  65 20 42 42 43 20 61 73  | into the BBC as|
000001c0  20 61 0d 62 61 63 6b 67  72 6f 75 6e 64 20 74 61  | a.background ta|
000001d0  73 6b 2c 77 68 69 6c 65  20 79 6f 75 20 63 6f 6e  |sk,while you con|
000001e0  74 69 6e 75 65 20 74 6f  20 75 73 65 20 74 68 65  |tinue to use the|
000001f0  20 6d 61 63 68 69 6e 65  20 66 6f 72 20 61 6e 6f  | machine for ano|
00000200  74 68 65 72 20 70 75 72  70 6f 73 65 2e 0d 54 68  |ther purpose..Th|
00000210  69 73 20 63 6f 75 6c 64  20 62 65 20 6f 66 20 75  |is could be of u|
00000220  73 65 20 69 6e 20 28 66  6f 72 20 65 78 61 6d 70  |se in (for examp|
00000230  6c 65 29 20 61 20 73 68  6f 70 2c 20 77 68 65 72  |le) a shop, wher|
00000240  65 20 74 68 65 20 42 42  43 20 77 61 73 20 75 73  |e the BBC was us|
00000250  65 64 20 66 6f 72 0d 73  74 6f 63 6b 20 74 61 6b  |ed for.stock tak|
00000260  69 6e 67 20 77 68 69 6c  65 20 61 6c 73 6f 20 6d  |ing while also m|
00000270  6f 6e 69 74 6f 72 69 6e  67 20 28 61 6e 64 20 73  |onitoring (and s|
00000280  61 76 69 6e 67 2e 2e 2e  29 20 74 68 65 20 74 65  |aving...) the te|
00000290  6d 70 65 72 61 74 75 72  65 20 6f 66 0d 63 68 69  |mperature of.chi|
000002a0  6c 6c 65 72 73 20 66 6f  72 20 68 79 67 65 6e 65  |llers for hygene|
000002b0  20 72 65 61 73 6f 6e 73  2e 20 4f 72 20 6d 6f 6e  | reasons. Or mon|
000002c0  69 74 6f 72 69 6e 67 20  74 68 65 20 74 65 6d 70  |itoring the temp|
000002d0  65 72 61 74 75 72 65 20  6f 66 20 79 6f 75 72 0d  |erature of your.|
000002e0  67 72 65 65 6e 68 6f 75  73 65 20 77 68 69 6c 65  |greenhouse while|
000002f0  20 74 79 70 69 6e 67 20  61 20 6c 65 74 74 65 72  | typing a letter|
00000300  20 74 6f 20 79 6f 75 72  20 61 75 6e 74 21 0d 0d  | to your aunt!..|
00000310  50 41 52 54 53 2e 2e 2e  54 68 65 20 63 69 72 63  |PARTS...The circ|
00000320  75 69 74 20 64 69 61 67  72 61 6d 73 20 73 68 6f  |uit diagrams sho|
00000330  77 73 20 65 6c 65 63 74  72 69 63 61 6c 6c 79 20  |ws electrically |
00000340  68 6f 77 20 74 6f 20 61  73 73 65 6d 62 6c 65 20  |how to assemble |
00000350  74 68 65 0d 75 6e 69 74  2c 20 72 65 71 75 69 72  |the.unit, requir|
00000360  69 6e 67 20 74 68 65 20  66 6f 6c 6c 6f 77 69 6e  |ing the followin|
00000370  67 20 70 61 72 74 73 3a  0d 31 78 20 20 52 65 61  |g parts:.1x  Rea|
00000380  64 79 20 62 75 69 6c 64  20 6d 6f 64 75 6c 65 20  |dy build module |
00000390  28 4d 61 70 6c 69 6e 20  6f 72 64 65 72 0d 63 6f  |(Maplin order.co|
000003a0  64 65 3a 20 46 45 33 33  4c 39 78 20 20 5a 54 58  |de: FE33L9x  ZTX|
000003b0  33 30 30 20 20 4e 50 4e  20 73 77 69 74 63 68 69  |300  NPN switchi|
000003c0  6e 67 20 74 72 61 6e 73  69 73 74 6f 72 73 0d 39  |ng transistors.9|
000003d0  78 20 20 31 30 6b 20 70  75 6c 6c 20 75 70 20 72  |x  10k pull up r|
000003e0  65 73 69 73 74 6f 72 73  20 0d 39 78 20 20 31 2e  |esistors .9x  1.|
000003f0  32 6b 20 62 61 73 65 20  72 65 73 69 73 74 6f 72  |2k base resistor|
00000400  73 0d 0d 49 6e 20 61 64  64 69 74 69 6f 6e 2c 69  |s..In addition,i|
00000410  74 20 6d 61 79 20 62 65  20 75 73 65 66 75 6c 20  |t may be useful |
00000420  74 6f 20 68 61 76 65 20  61 0d 68 61 6e 64 66 75  |to have a.handfu|
00000430  6c 20 6f 66 20 70 69 6e  73 2c 20 61 20 75 73 65  |l of pins, a use|
00000440  72 20 70 6f 72 74 20 70  6c 75 67 20 61 6e 64 61  |r port plug anda|
00000450  20 63 6f 75 70 6c 65 20  6f 66 20 66 65 65 74 20  | couple of feet |
00000460  6f 66 20 72 69 62 62 6f  6e 0d 63 61 62 6c 65 2e  |of ribbon.cable.|
00000470  0d 42 45 4e 45 46 49 54  53 2e 2e 2e 2a 53 6f 66  |.BENEFITS...*Sof|
00000480  74 77 61 72 65 20 73 65  6c 65 63 74 61 62 6c 65  |tware selectable|
00000490  20 73 61 6d 70 6c 65 20  72 61 74 65 2c 20 6d 6f  | sample rate, mo|
000004a0  64 65 2c 61 6e 64 20 68  69 2f 6c 6f 20 70 6f 69  |de,and hi/lo poi|
000004b0  6e 74 0d 2a 52 75 6e 73  20 6f 66 66 20 61 20 73  |nt.*Runs off a s|
000004c0  69 6e 67 6c 65 20 41 41  20 62 61 74 74 65 72 79  |ingle AA battery|
000004d0  0d 2a 43 68 6f 69 63 65  20 6f 66 20 43 65 6c 63  |.*Choice of Celc|
000004e0  69 75 73 20 6f 72 20 46  61 68 72 65 6e 68 65 69  |ius or Fahrenhei|
000004f0  74 0d 2a 53 65 70 65 72  61 74 65 20 27 68 69 20  |t.*Seperate 'hi |
00000500  61 6c 61 72 6d 20 70 6f  69 6e 74 20 72 65 61 63  |alarm point reac|
00000510  68 65 64 27 20 61 6e 64  20 27 6c 6f 20 61 6c 61  |hed' and 'lo ala|
00000520  72 6d 20 70 6f 69 6e 74  20 72 65 61 63 68 65 64  |rm point reached|
00000530  27 20 70 69 6e 73 0d 0d  42 55 49 4c 44 2e 2e 2e  |' pins..BUILD...|
00000540  31 2e 4a 6f 69 6e 20 66  72 6f 6d 20 74 68 65 20  |1.Join from the |
00000550  70 72 65 6d 61 64 65 20  6d 6f 64 75 6c 65 20 74  |premade module t|
00000560  6f 20 79 6f 75 72 20 62  6f 61 72 64 20 77 69 74  |o your board wit|
00000570  68 20 61 20 73 68 6f 72  74 20 6c 65 6e 67 74 68  |h a short length|
00000580  0d 6f 66 20 31 34 20 77  61 79 20 20 72 69 62 62  |.of 14 way  ribb|
00000590  6f 6e 20 63 61 62 6c 65  2c 20 6e 6f 74 69 6e 67  |on cable, noting|
000005a0  20 77 68 69 63 68 20 77  69 72 65 20 69 73 20 67  | which wire is g|
000005b0  72 6f 75 6e 64 2e 0d 32  2e 41 74 74 61 63 68 20  |round..2.Attach |
000005c0  74 68 65 20 72 65 73 69  73 74 6f 72 73 20 61 6e  |the resistors an|
000005d0  64 20 74 72 61 6e 73 69  73 74 6f 72 73 20 66 72  |d transistors fr|
000005e0  6f 6d 20 74 68 65 20 6f  75 74 70 75 74 20 66 72  |om the output fr|
000005f0  6f 6d 20 74 68 65 20 42  42 43 20 75 73 65 72 0d  |om the BBC user.|
00000600  70 6f 72 74 20 20 74 6f  20 74 68 65 20 63 6f 6e  |port  to the con|
00000610  74 72 6f 6c 20 6c 69 6e  65 73 20 6f 6e 20 74 68  |trol lines on th|
00000620  65 20 6d 20 6f 64 75 6c  65 2e 54 68 65 20 27 52  |e m odule.The 'R|
00000630  45 4d 27 20 73 74 61 74  65 6d 65 6e 74 73 20 61  |EM' statements a|
00000640  74 20 74 68 65 0d 73 74  61 72 74 20 6f 66 20 74  |t the.start of t|
00000650  68 65 20 20 73 6f 66 74  77 61 72 65 20 61 6e 64  |he  software and|
00000660  20 74 68 65 20 68 69 6e  74 73 20 73 65 63 74 69  | the hints secti|
00000670  6f 6e 20 62 65 6c 6f 77  20 74 65 6c 6c 20 79 6f  |on below tell yo|
00000680  75 20 77 68 69 63 68 20  69 73 0d 77 68 69 63 68  |u which is.which|
00000690  2e 4e 6f 74 65 20 50 42  37 20 77 61 73 20 20 6e  |.Note PB7 was  n|
000006a0  6f 74 20 6e 65 65 64 65  64 2e 0d 33 2e 44 6f 20  |ot needed..3.Do |
000006b0  74 68 65 20 73 61 6d 65  20 61 67 61 69 6e 20 69  |the same again i|
000006c0  6e 20 74 68 65 20 6f 70  70 6f 73 69 74 65 20 6d  |n the opposite m|
000006d0  61 6e 6e 65 72 20 66 6f  72 20 74 68 65 20 64 61  |anner for the da|
000006e0  74 61 20 61 6e 64 20 63  6c 6f 63 6b 20 69 6e 70  |ta and clock inp|
000006f0  75 74 73 0d 66 72 6f 6d  20 20 74 68 65 20 74 65  |uts.from  the te|
00000700  6d 70 65 72 61 74 75 72  65 20 6d 6f 64 75 6c 65  |mperature module|
00000710  20 62 61 63 6b 20 69 6e  74 6f 20 74 68 65 20 42  | back into the B|
00000720  42 43 27 73 20 69 6e 74  65 72 72 75 70 20 74 20  |BC's interrup t |
00000730  6c 69 6e 65 73 2c 43 42  31 20 61 6e 64 0d 43 42  |lines,CB1 and.CB|
00000740  32 2e 0d 34 2e 45 6e 73  75 72 65 20 74 68 61 74  |2..4.Ensure that|
00000750  20 62 6f 74 68 20 30 76  20 6c 69 6e 65 73 20 6f  | both 0v lines o|
00000760  6e 20 74 68 65 20 42 42  43 20 61 6e 64 20 74 65  |n the BBC and te|
00000770  6d 70 65 72 61 74 75 72  65 20 6d 6f 64 75 6c 65  |mperature module|
00000780  20 61 72 65 20 6a 6f 69  6e 65 64 20 20 0d 74 6f  | are joined  .to|
00000790  67 65 74 68 65 72 2e 0d  0d 48 49 4e 54 53 2e 2e  |gether...HINTS..|
000007a0  2e 2a 59 6f 75 20 6d 69  67 68 74 20 77 61 6e 74  |.*You might want|
000007b0  20 74 6f 20 61 64 64 20  61 20 74 68 72 65 65 20  | to add a three |
000007c0  73 6d 61 6c 6c 20 28 31  2e 35 76 29 20 70 69 65  |small (1.5v) pie|
000007d0  7a 6f 20 62 75 7a 7a 65  72 73 20 74 6f 20 74 68  |zo buzzers to th|
000007e0  65 0d 61 6c 61 72 6d 20  70 6f 69 6e 74 20 70 69  |e.alarm point pi|
000007f0  6e 73 2c 70 69 6e 20 36  2c 37 2c 61 6e 64 20 31  |ns,pin 6,7,and 1|
00000800  35 2e 20 4f 74 68 65 72  77 69 73 65 2c 6a 75 73  |5. Otherwise,jus|
00000810  74 20 6c 65 61 76 65 20  74 68 65 6d 0d 75 6e 63  |t leave them.unc|
00000820  6f 6e 6e 65 63 74 65 64  2e 20 47 72 6f 75 6e 64  |onnected. Ground|
00000830  20 69 73 20 70 69 6e 20  31 2e 0d 2a 20 54 68 65  | is pin 1..* The|
00000840  20 73 6f 66 74 77 61 72  65 20 63 61 6e 20 65 61  | software can ea|
00000850  73 69 6c 79 20 62 65 20  6d 6f 64 69 66 69 65 64  |sily be modified|
00000860  20 69 66 20 79 6f 75 20  6d 61 64 65 20 61 20 6d  | if you made a m|
00000870  69 73 74 61 6b 65 20 77  69 72 69 6e 67 20 75 70  |istake wiring up|
00000880  20 74 68 65 0d 70 69 6e  73 20 74 68 6f 75 67 68  | the.pins though|
00000890  20 49 20 73 75 67 67 65  73 74 3a 20 0d 50 42 30  | I suggest: .PB0|
000008a0  20 3d 20 73 68 6f 77 20  6c 6f 20 70 6f 69 6e 74  | = show lo point|
000008b0  20 20 20 20 20 20 3d 3e  20 6d 6f 64 75 6c 65 20  |      => module |
000008c0  70 69 6e 20 31 33 20 20  20 20 20 20 20 20 20 20  |pin 13          |
000008d0  20 20 20 20 20 20 20 20  0d 50 42 31 20 3d 20 73  |        .PB1 = s|
000008e0  68 6f 77 20 68 69 20 70  6f 69 6e 74 20 20 20 20  |how hi point    |
000008f0  20 20 3d 3e 20 6d 6f 64  75 6c 65 20 70 69 6e 20  |  => module pin |
00000900  31 32 0d 50 42 32 20 3d  20 63 65 6c 63 69 75 73  |12.PB2 = celcius|
00000910  2f 66 61 68 72 65 6e 68  65 69 74 20 3d 3e 20 6d  |/fahrenheit => m|
00000920  6f 64 75 6c 65 20 70 69  6e 20 31 34 20 20 20 20  |odule pin 14    |
00000930  20 20 20 20 0d 50 42 33  20 3d 20 73 61 6d 70 6c  |    .PB3 = sampl|
00000940  65 20 72 61 74 65 20 73  65 6c 65 63 74 20 3d 3e  |e rate select =>|
00000950  20 6d 6f 64 75 6c 65 20  70 69 6e 20 35 20 0d 50  | module pin 5 .P|
00000960  42 34 20 3d 20 73 65 74  20 68 6f 75 72 73 20 20  |B4 = set hours  |
00000970  20 20 20 20 20 20 20 20  3d 3e 20 6d 6f 64 75 6c  |        => modul|
00000980  65 20 70 69 6e 20 32 20  0d 50 42 35 20 3d 20 73  |e pin 2 .PB5 = s|
00000990  65 74 20 6d 69 6e 73 20  20 20 20 20 20 20 20 20  |et mins         |
000009a0  20 20 3d 3e 20 6d 6f 64  75 6c 65 20 70 69 6e 20  |  => module pin |
000009b0  33 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |3               |
000009c0  20 20 20 20 0d 50 42 36  20 3d 20 63 6c 6f 63 6b  |    .PB6 = clock|
000009d0  2f 74 65 6d 70 65 72 61  74 75 72 65 20 20 3d 3e  |/temperature  =>|
000009e0  20 6d 6f 64 75 6c 65 20  70 69 6e 20 31 31 0d 43  | module pin 11.C|
000009f0  42 31 20 3d 20 64 61 74  61 20 20 20 20 20 20 20  |B1 = data       |
00000a00  20 20 20 20 20 20 20 20  3d 3e 20 6d 6f 64 75 6c  |        => modul|
00000a10  65 20 70 69 6e 20 39 0d  43 42 32 20 3d 20 64 61  |e pin 9.CB2 = da|
00000a20  74 61 20 6c 6f 61 64 20  63 6c 6f 63 6b 20 20 20  |ta load clock   |
00000a30  20 3d 3e 20 6d 6f 64 75  6c 65 20 70 69 6e 20 31  | => module pin 1|
00000a40  30 0d 0d 46 52 4f 4d 2e  2e 2e 52 6f 62 65 72 74  |0..FROM...Robert|
00000a50  20 53 70 72 6f 77 73 6f  6e 2e 0d 48 61 70 70 79  | Sprowson..Happy|
00000a60  20 73 6f 6c 64 65 72 69  6e 67 21 0d              | soldering!.|
00000a6c
F/+temp1.m0
F/+temp1.m1
F/+temp1.m2
F/+temp1.m4
F/+temp1.m5