One-wire bus in rPi
Alan Adams (2486) 1125 posts |
i have a couple of one-wire temperature probes I want to connect to an rPi. (When I bought them I mistakenly assumed they wwere i2c.) Browsing here and elsewhere has thrown up clues to a few possible ways to use them, but I need it to be from RISC OS and most support is for Linux. |
mikko (3145) 120 posts |
Converting a Linux kernel module into BASIC was suggested to me in a previous post but I’ve not attempted it. I’d love to hear if anyone else makes progress on this front though! |
Chris Evans (457) 1614 posts |
The RISC OS version of OWW might help you. |
mikko (3145) 120 posts |
That looks promising to me. I’ll check it out. Thanks, Chris. |
Ralph Barrett (1603) 123 posts |
I just downloaded !oww from sourceforge. Note that the download didn’t work on !NetSurf for some reason, so I downloaded using a PC. !oww looks like a full RISC OS application written around 2001, and written for a weather station. Executable appears to be have been compiled;-( No source ? Also the executables are not 32-bit compatible :-( I was hoping for a well written BBC BASIC programme where you could work out how the hardware was being driven. So not much use for finding out how to get one-wire temperature probes to work really, although I guess your sensors might work if you’re using an old 26-bit RISC OS machine (i.e. RPC) and have the required (serial?) interface. Ralph |
Robin Hounsome (1539) 25 posts |
A few years back I experimented with a DS2483 IC. This is a I2C to 1Wire bridge IC. I built a small pcb to sit off the GPIO I2C pins of a RPi. Soldering was quite fiddly as the chip is SOT-23-6 (surface mount about 2mm x 4mm with 6 legs). An alternative I tried was a DLP-108G this is based on a FTDI USB/serial chip and can be communicated with using !FTDI from Thomas Milius I wrote a number of programs in BASIC and/or assembler for both of the above options and was able to read the data from 3 DS18B20 temerature chips (probably could have done more but I only had the 3). If anybody is interested in seeing my efforts, let me know and once I’ve removed any embarrassing bit I’ll stick them on some webspace. |
mikko (3145) 120 posts |
Thanks for the offer, Robin. I’d really like to have a look at those programs. |
Colin Ferris (399) 1748 posts |
I had a go at 32bitting the !OWW app years ago by patching to !RunImage – but no unit to test it on. (I seem to remember there was a set of ‘C’ source files) The hardware seems to be still made in Mexico. (Dallas Semiconductor 1-wire weather station) |