Written&coded by oran collins
oranbusiness@gmail.com
github.com/wisehackermonkey
parts list
- Arduino nano (or uno) x1
- humidity sensor x1
- led x2
- adafruit RFM9X Lora 915hrz radio
- adafruit PowerBoost 1000 Charger | its a Rechargeable 5V Lipo USB Boost @ 1A - 1000
- Lithium Ion Cylindrical Battery - 3.7v 2200mAh
- AND!
- most importanly
- free time
download the repo.
flash the Arduino sketch on both the receiver and arduinos.
trails off....
this project is for fun and im recording this here just for show and tell, if you take the challenge of running my code, please just email me if you get any questions.
VCC: 5V or 3V
GND: GND
DATA: pin 5
sensor | arduino uno/nano
S - A2 (you can use any analog pins A0-5)
(+) - v5
(-) - GND
13 - SCK (RFM9x)
12 - MISO (RFM9x)
11 - MOSI (RFM9x)
06 - LED (+) indecator (used for flashing codes)
05 - USED by humidiy sensor
04 - CS (RFM9x)
03 - G0 (RFM95_INT is a interrupt pin) (RFM9x)
02 - RST (RFM9x)
A2 - water sensor (read)
works on raspberry pi and windows, it might work with mac not fully tested, please email me if you get it working! :)
Note: plug in the second receiving arduino before running the server
cd ~
git clone https://github.com/wisehackermonkey/20200307_weather_station_portable.git
cd ./20200307_weather_station_portable
pip3 install -r requirements.txt
python3 ./python_scripts/serial_to_csv.py
Simple:
nohup python3 ./python_scripts/serial_to_csv.py &
Advanced:
tmux
python3 ./python_scripts/serial_to_csv.py &> logs.txt
"ctrl + b" then 'd'
Here's the final build. pictured is a adafruit
Pictured bellow is temperature readings from the weather station outside my house over 1 day and night. notice how the high point around 45c (mesured in celcius) corrisponds to the day and the nigh time is low with 5c. the data is skused because the weather station was on top of a barbicue and thouse got hotter then the abent temperature outside (oh well face emoji). With a 2200mAh battery my project lasted 1.1857 days on one charge! I was expecting at most 6 hours tops, im really impressed with the low mA's that everything is using.
>cd ~/github/20200307_weather_station_portable && git pull && cd ./python_scripts/ && python3 ./serial_to_csv.py
>nohup python3 ./python_scripts/serial_to_csv.py &
Written by oran collins oranbusiness@gmail.com github.com/wisehackermonkey