[arm-allstar] Adding sensor

Doug Crompton wa3dsp at gmail.com
Thu Feb 28 11:50:07 EST 2019


YES,  I completely forgot about the 1wire stuff it has been so long ago
that I did it. I used it to measure temperature and humidity at multiple
locations at a remote site. All you need is the 1wire to USB interface and
you can daisy chain the sensors wherever you want. I used cat5 cable and
RJ11 connectors to the sensors. I built the sensors in small mini boxes.
The boards have two RJ11 connectors to daisy chain.

The DS9490R is the USB to 1wire adapter.  Here is a link that shows the
small boards with sensors on them. This is what I did but it has been many
years ago. I don't recall the links I used to purchase. Keep in mind this
requires some hardware and programming skills.

https://www.instructables.com/id/1-wire-Temperature-Sensor-RJ45-Adaptor/

I use a program called digitemp -   https://www.digitemp.com/

A typical call to it would be -

/usr/bin/digitemp_DS2490 -c /usr/local/bin/digitemp.conf -t 0 -q -l
/tmp/temperature -o"%D, %H:%M:%S, %R, %s, %.1F" > /dev/null

And the config file -

TTY USB
READ_TIME 1000
LOG_TYPE 1
LOG_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F"
CNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C"
HUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%"
SENSORS 4
ROM 0 0x10 0xE2 0xAA 0xED 0x01 0x08 0x00 0x3B
ROM 1 0x10 0x12 0x97 0xE1 0x01 0x08 0x00 0x33
ROM 2 0x10 0xC5 0x9E 0xE1 0x01 0x08 0x00 0x81
ROM 3 0x26 0x24 0xF2 0xCA 0x00 0x00 0x00 0x0C


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Thu, Feb 28, 2019 at 11:21 AM "Willem Schreuder via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> On Thu, 28 Feb 2019, "Dennis Ramos via ARM-allstar" wrote:
>
> > Hello guys, I just wonder if it is possible to add a humidity and
> > temperature sensor allstar repeater that will tx let say every 1hr,
> > there are loads of sensor that available for rpi.
>
> The 1wire sensors are very well supported on the rPi and very easy to add.
> There is support for 1wire in the kernel and it is readily accessed
> through the /sys tree or python libraries.
>
> The main thing you have to worry about is that the GPIO pins are connected
> directly to the CPU, so you are essentially adding antennas to the CPU
> when you wire such sensors to the GPIO pins.  In a high RF environment
> this can spell disaster.
>
> ================================================================
> Dr. Willem A. Schreuder,  President,  Principia Mathematica
> Address:  445 Union Blvd, Suite 230,  Lakewood, CO  80228, USA
> Tel: (303) 716-3573   Fax: (303) 716-3575
> WWW: www.prinmath.com   Email: Willem.Schreuder at prinmath.com
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>


More information about the ARM-allstar mailing list