====== Makerere ====== ===== List of Components ===== ^ Expected Env. Var ^ Component ^ Signal ^ Reference Docs ^ | mm/min | [[https://pronamic.com/products/professional-rain-and-precipitation-sensor/| Rain-O-Matic "Professional" rain gauge]] | Pulse from High to Low and back to High | [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:rain%E2%80%90o%E2%80%90matic-professional-rain-gauge.pdf|Manual]] | | m/s | [[https://www.thiesclima.com/en/small-wind-transmitters/small-wind-transmitter~4.3515.30.000/| Small Wind Transmitter]] | Pulses in Hz. 50 Hz @ 40 m/s | | | deg | [[https://www.thiesclima.com/en/compact--industrial-standard/wind-direction-transmitter-compact~4.3129.00.xxx/|Wind Direction Transmitter Compact]] | Current 0 to 20mA. 0 and 20mA Magnetic North | | | Temp. and %RH | [[https://de.rs-online.com/web/p/hygrometer/1365501| Rotronic HygroClip2 HC2A-S]] | Digital signal UART | [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:hc2a-humidity-probes.pdf| Probes]] [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:hc2a-guide.pdf| Guide]] [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:hc2a-manual.pdf| Manual]] [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:hc2a-mounting.pdf| Mounting]] | | W/m2 | [[https://www.kippzonen.com/products/cmp3_pyranometer| Kipp & Zonen CMP3 Pyranometer]] | Voltage 20.39 uV per W/m**2 (from calibration certificate_ | [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:cmp-manual.pdf| Manual ]] [[https://wiki.eolab.de/lib/exe/fetch.php?media=eolab:weather_station:makerere:cmp3.pdf| Datasheet ]] | | | [[https://www.raspberrypi.com/products/raspberry-pi-zero-w/| Raspberry Pi Zero W]] | | | ===== Raspberry ===== [[https://www.raspberrypi.com/documentation/computers/getting-started.html | Raspberry Pi Setup]] [[https://www.pi4j.com/1.2/pins/model-2b-rev1.html | Pin Numbering - Raspberry Pi 2 Model B]] ===== First Program ===== Rain Bucket import time import RPi.GPIO as GPIO BUCKET_PIN = 7 GPIO.setmode(GPIO.BOARD) GPIO.setup(BUCKET_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) def bucket_back(channel): print("Back") GPIO.add_event_detect(BUCKET_PIN, GPIO.RISING, callback=bucket_back) try: while True: time.sleep(0.1) except KeyboardInterrupt: pass GPIO.cleanup()