This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
operations:temphumidmonitor [2018/09/09 23:42] Jim Lovell [Network config] |
operations:temphumidmonitor [2018/09/11 07:24] Jim Lovell |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Temperature and Humidity monitoring at AuScope sites ====== | + | ====== Monitoring at AuScope sites ====== |
First system will go in at Katherine soon. There are two raspberry pi PCs, one for the antenna and one for the maser room. | First system will go in at Katherine soon. There are two raspberry pi PCs, one for the antenna and one for the maser room. | ||
Line 11: | Line 11: | ||
===== Hardware setup ===== | ===== Hardware setup ===== | ||
+ | |||
+ | Connect the Raspberry Pi to the Arduino via a USB cable. The Arduino will get power via the cable but it's a good idea to also give the Arduino power via a DC power supply as this provides a more stable reference voltage for the analog sensors. | ||
+ | |||
+ | ==== DHT11 temperature and humidity sensors ==== | ||
Each DHT11 sensor requires 3.3 - 5V, ground and a digital input pin. Pinouts are shown below: | Each DHT11 sensor requires 3.3 - 5V, ground and a digital input pin. Pinouts are shown below: | ||
Line 22: | Line 26: | ||
Edit the ''TempHumid.conf'' file accordingly (see below), then either restart the software by typing CTRL-C in the start_THRecord xterm or by rebooting the Pi. | Edit the ''TempHumid.conf'' file accordingly (see below), then either restart the software by typing CTRL-C in the start_THRecord xterm or by rebooting the Pi. | ||
- | ===== Software ===== | + | ==== IR transmitters, receivers ==== |
+ | These have three pins as well: | ||
+ | <code> | ||
+ | pin connection | ||
+ | --- --------------- | ||
+ | - GND | ||
+ | middle +5V | ||
+ | S digital signal | ||
+ | </code> | ||
+ | Connect them to the Raspberry Pi. Any GND or +5V pin will be fine. | ||
+ | Use any digital pin on the Pi and make sure they are set to "False" in ''TempHumid.conf'' (you can give them an appropriate label though). See below. | ||
+ | |||
+ | ==== Accelerometer ==== | ||
+ | This should be connected to the Arduino: | ||
+ | <code> | ||
+ | module pin Arduino connection | ||
+ | ---------- --------------- | ||
+ | VCC +5V | ||
+ | X out A0 | ||
+ | Y out A1 | ||
+ | Z out A2 | ||
+ | GND GND | ||
+ | </code> | ||
+ | |||
+ | Attach the accelerometer to the maser (or whatever you want to measure). You might want to align it according to the orientation diagram on the module. | ||
+ | ==== Analog (Eric) Temperature/Humidity Sensor ==== | ||
+ | This should also be connected to the Arduino: | ||
+ | <code> | ||
+ | module pin Arduino connection | ||
+ | ---------- --------------- | ||
+ | T A3 | ||
+ | G GND | ||
+ | H A4 | ||
+ | 5V +5V | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== DHT11 monitoring Software ===== | ||
Software, config file etc are stored in ''~pi/TempHumid'' | Software, config file etc are stored in ''~pi/TempHumid'' | ||
Line 47: | Line 88: | ||
* ''start_THRecord.sh'' and ''start_THServer.sh'' are started automatically after the RPi boots into a desktop session, so a reboot of the RPi should start these processes. They are called from ''~/.config/lxsession/LXDE-pi/autostart''. Edit this file if you want to change what happens when the desktop starts. | * ''start_THRecord.sh'' and ''start_THServer.sh'' are started automatically after the RPi boots into a desktop session, so a reboot of the RPi should start these processes. They are called from ''~/.config/lxsession/LXDE-pi/autostart''. Edit this file if you want to change what happens when the desktop starts. | ||
- | ==== Network config ==== | + | ===== Accelerometer, Analog temp/humid monitoring Software ====== |
+ | A work in progress... | ||
+ | |||
+ | ===== Software for IR remote control of aircon ====== | ||
+ | A work in progress... | ||
+ | |||
+ | ====== Network config ===== | ||
+ | This should be done already, but just in case... | ||
For masertempke the IP address should be 131.217.61.28. | For masertempke the IP address should be 131.217.61.28. | ||
For antennatempke the IP address should be 131.217.61.29. | For antennatempke the IP address should be 131.217.61.29. | ||
Line 68: | Line 117: | ||
[[operations:temphumidmonitorrpi|Configuring Raspberry Pis for Temperature and Humidity monitoring]] | [[operations:temphumidmonitorrpi|Configuring Raspberry Pis for Temperature and Humidity monitoring]] | ||
- | |||