Clim-Clam

clim-clam node enclosure, radiation shield and solar panel

Hardware

Gateway:

Weather Node:

WiFi and RF Network Credentials

You will need to include your own credential header files in the “src” directories of both the gateway and the node.

gateway/src/creds.h

// creds.h for clim-clam gateway

#if defined(ESP8266)
  #include <ESP8266WiFi.h>
#elif defined(ESP32)
  #include <WiFi.h>
#endif

// exactly the same 16 chars/bytes on all nodes
#define RF_ENCRYPTKEY "sixteencharacter"

// wifi ssid and password
// esp8266 can only connect to 2.4Ghz band
#define WIFI_SSID "wifi_ssid"
#define WIFI_PASS "wifi_password"

// address of broker server
#define MQTT_BROKER_SERVER "address.to.broker"
// mqtt client id
#define MQTT_CLIENT_ID "client_id"

node/src/creds.h

// creds.h for clim-clam node

// encrypt key string for packet radio
// exactly the same 16 chars/bytes on all nodes
#define ENCRYPTKEY "sixteencharacter"

// node name
// will be included in payload
// becomes the name of the MQTT topic
#define NODENAME "frank"

// dip switch pins - clim-clam v2.0
#define DIP_DEBUG debug_pin         // logic for debug - serial monitor
#define DIP_SLEEP_1 sleep_pin1      // logic for debug - sleep duration1
#define DIP_SLEEP_2 sleep_pin2      // logic for debug - sleep duration2

Planned Upgrades for V3

Solar Power

Power the node (and potentially other nodes) off a small solar solution with a small battery.

PCB

(This will have to wait for V4)

Design a PCB to be used with the Moteino M0 dev board.

Remove Displays

Node

close-up of the clim-clam e-ink display

Gateway

Code

Hardware Info

More weather proof hardware.

JST for PCB.

Notes

Battery

Replaced a fully charged batter on Feb. 5 2019. Sample rate: 5 min. Battery samples: 100.

Upping the battery voltage sample rate from 10 to 100, still gives us some-what inconsistent readings, so it’s probably not worth the waking cycles.

Replaced full battery on APR. 6 2019 11:15 AM. Died JUN. 0 2019 2:00 PM (roughly and was fluctuating sample rates…).

Power

(I don’t have the equipment to measure such low current so this is probably all bs and should be disregarded.)

This is with sleeping the controller, sensor and transmitter.

Period Current Draw Duration
during code execution ~ 15mA 1.2 sec
during sleep ~ 610uA 15 min

With a 1200mAh battery will potentially run for 78 days.

Dev DIP Switches

Switch Position Operation
U,D,D,D wait for active serial monitor then run
D,D,D,D 15 minute sample rate
D,U,D,D 5 minute sample rate
D,D,U,D 1 minute sample rate
D,U,U,D 10 second sample rate

Wrench/Socket Sizes (for my sanity)

Part Size
Antenna 5/16"
Aviation Connector 5/8"
Momentary reset switch 10mm
Toggle switch 10mm
Barrel jack 7/16"

To do

To remember

Version History

V0.1

Proof of concept. Lowest bar to entry.

clim-clam version 0

V0.2

V1

V2

V3.1

V3.2