eolab:weather_station:makerere:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eolab:weather_station:makerere:start [2026/06/30 13:23] – harley.lara | eolab:weather_station:makerere:start [2026/07/02 11:08] (current) – [Raspberry] harley.lara | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== List of Components ===== | ===== List of Components ===== | ||
| - | ^ Expected Env. Var ^ Component | + | ^ Expected Env. Var ^ Component |
| - | | mm/ | + | | mm/ |
| - | | m/s | [[https:// | + | | m/s | [[https:// |
| - | | deg | [[https:// | + | | deg | [[https:// |
| - | | Temp. and %RH | [[https:// | + | | Temp. and %RH | [[https:// |
| - | | W/m2 | [[https:// | + | | W/m2 | [[https:// |
| - | | | [[https:// | + | | | [[https:// |
| ===== Raspberry ===== | ===== Raspberry ===== | ||
| [[https:// | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ===== First Program ===== | ||
| + | |||
| + | Rain Bucket | ||
| + | |||
| + | <file python intro.py> | ||
| + | import time | ||
| + | import RPi.GPIO as GPIO | ||
| + | |||
| + | BUCKET_PIN = 7 | ||
| + | |||
| + | GPIO.setmode(GPIO.BOARD) | ||
| + | |||
| + | GPIO.setup(BUCKET_PIN, | ||
| + | |||
| + | def bucket_back(channel): | ||
| + | print(" | ||
| + | |||
| + | GPIO.add_event_detect(BUCKET_PIN, | ||
| + | |||
| + | try: | ||
| + | while True: | ||
| + | time.sleep(0.1) | ||
| + | except KeyboardInterrupt: | ||
| + | pass | ||
| + | |||
| + | GPIO.cleanup() | ||
| + | |||
| + | </ | ||
eolab/weather_station/makerere/start.1782818587.txt.gz · Last modified: 2026/06/30 13:23 by harley.lara