remote sensing network for cranberry bogs, wetlands etc. (using Forth)
root
cranberry-net | a remote sensing network for wetland environments
materials
TODO...
installation
sensor-nodes
An ICSP programmer such as a Bus Pirate v3.x is needed to flash amforth onto the Arduino Pro Mini.
Wire it up like so:
BP Pro Mini
GND --- GND
3.3v --- VCC
MOSI --- DIGITAL PIN-11
MISO --- DIGITAL PIN-12
SCK --- DIGITAL PIN-13
CS --- RST
Then:
$ cd code/wetland-mcu-nodes/
$ make get # download dependencies (amforth and avrassembler)
$ make pro-mini.hex # Assemble the base of amforth for the Pro Mini.
## Wire up a Bus Pirate v3.x to a 3.3v 8MHz Arduino Pro Mini as described above.
$ make pro-mini.bak # Back-up the factory EEPROM and flash contents.
$ make pro-mini.era # Wipe the MCU flash.
$ make pro-mini # Upload the firmware using the generated hex file.
$ make pro-mini.fuse # Set the MCU fuses appropriate for amforth.
$ make pro-mini.clr # Clean (except for backup and source files).
## Unwire BP. Wire up your USB-UART adaptor of choice.
$ make pro-mini.once PORT=/dev/ttyUSB0 # First upload this once. Replace ttyUSB0 with your device name.
$ make pro-mini.frt PORT=/dev/ttyUSB0 # Upload frt files. Replace ttyUSB0 with your device name.
$ make pro-mini.term PORT=/dev/ttyUSB0 # Enjoy!
Repeat for each sensor node.
nRF24L01+ radios
TODO...
temperature sensors
TODO...
water-level sensor
TODO...
sensor-node battery
TODO...
clock
TODO...
MicroSD data logging & caching
TODO...
reducing sensor node current consumption
TODO...
gsm/gprs hubs
TODO...
usage
range testing
On one node:
> nRF24_init
ok
> decimal
ok
> &13 -18dBm rfpw-tst
The nRF24L01+ now output an unmodulated centered carrier.
On another:
> nRF24_init
ok
> decimal
ok
> 200 scanrf
start scanning @ stop scanning @
012:*****************
013:**************************
014:******************
interactive mode: remote control
Remote control will require more battery power, so it is advised to switch to periodic mode when deployed.
fetch log data from some or all nodes
TODO...
checking network status
TODO...
query battery levels
TODO...
periodic mode: sleep & awaken for periodic measurements & transfer
Interactive querying and programming is unavailable during periodic mode until the next awakening.
TODO...