3 ms·
I have a 10-input analogue-to-digital converter plugged into one USB port, which allows me to log environmental things like current outside light levels, and a
by mnw21cam 4y ago
I have a 10-input analogue-to-digital converter plugged into one USB port, which allows me to log environmental things like current outside light levels, and a one-wire adaptor plugged into another, which lets me have a string of thermometers on a long cheap cable. I currently log temperature outside in the shade, in my "root cellar", in the greenhouse, 10cm under the soil, and the central heating radiator pipe inside. Helps with the gardening, when to sow seed, when to open windows in the greenhouse. Also, I wanted to know how much sunlight I get here for my plans for solar power.
- noodlesUK 4y agoThis is really interesting. What software do you use on your computer to interface with the ADC and 1 wire adapter? Is it something industrial like LabView or is it custom code written against whatever driver there is for the peripherals?
- mnw21cam 4y agoThe ADC just pretends to be a serial port, so I just (sleep 3570 ; echo "~.") | cu -l /dev/ttyUSB0 --speed 115200 to get an hour's worth of telemetry and pipe that into very simple analysis software I wrote. The one-wire port exposes itself as lots of files in /sys/devices/w1_bus_master1/ that you can read that contain the temperature measurements.