Skip to content

Control an ERV/HRV and damper based on PurpleAir to limit wildfire smoke exposure

License

Notifications You must be signed in to change notification settings

jcdoll/purpleAirRelayControl

Repository files navigation

purpleAirRelayControl

Control an ERV/HRV and/or damper based on PurpleAir to limit wildfire smoke exposure.

Arduino requirements

Instructions

Arduino

  • Install the following libraries from in your Arduino IDE
    • Menu: Tools > Manage Libraries
    • Install WifiNINA
    • Install ArduinoHttpClient
    • Install ArduinoJson (not Arduino_JSON!)
    • Install Adafruit SleepyDog
  • Install support for your MKR 1010 board
    • Menu: Tools > Board > Board Manager
    • Install Arduino SAMD Boards
  • Select your board
    • Menu: Tools > Board > Arduino SAMD > Arduino MKR WiFi 1010
  • Create your personal secrets file
    • copy "arduino_secrets_sample.h" to "arduino_secrets.h" and fill in your details
  • Flash Arduino
    • Connect Arduino to your PC
    • Menu: Tools > Port > Select appropriate port
    • Compile (Control+R)
    • Fix any errors or missing dependencies
    • Flash (Control+U)

Case

The case is optional if you have another mounting method.

  • Generate STLs
    • install OpenSCAD if necessary
    • run exportSTLs.bat
  • Print box and shelf
    • print external perimeters first for dimensional accuracy
    • recommended settings: 0.3 mm layer height, 15% infill, slow enough perimeters to avoid overextruded corners

Installation

  • Fill box
    • attach arduino to the case with M3x4 screws (or longer if you have washers available)
      • the fasteners should self tap the holes if your printer is accurate
      • don't overtighten or you will strip the plastic
    • attach the switch to the case using included screws/washers
    • wire the switch to the board (see below)
    • wire the relay outputs to whatever you are controlling
  • Attach wall mount
    • install the wall mount (holds box) to a nearby wall using your preferred method (drywall fasteners, adhesive, etc)
  • Wiring
    • run wires from your HVAC equipment to the Arduino mounting location
    • i'd recommend using a quick disconnect (e.g. Wago) between the HVAC equipment and the Arduino to allow for easy box removal
    • connect a powered micro usb cable to the Arduino
  • Test
    • confirm that your HVAC equipment is controlled appropriately with the switch in the on/off/purpleair positions

Electronics

Switching hardware:

  • ERV
    • Any HRV/ERV with dry contact controls (tested on Lifebreath 170 ERVD)
  • Damper
    • Any 24VAC damper
      • Suncourt Adjustable Motorized Damper, Closed, 6" (includes 24 VAC transformer)
      • Honeywell EARD6TZ Round Fresh Air Damper, 6"
    • 24 VAC transformer to provider power
  • Wiring
    • Relay1
      • COM = ERV contact 1 (e.g. Lifebreath ON)
      • NO = ERV contact 2 (e.g. Lifebreath LO or HI)
      • Open -> do nothing
      • Closed -> connect two ERV contacts
      • Ensure that ERV is in standby mode (e.g. Lifebreath set to fan speed 0 or short the RED/ON contacts, see manual)
    • Relay2
      • COM = Damper contact 1
      • NO = 24 VAC transformer
      • Connect the other transformer lead to damper contact 2
      • Open -> do nothing
      • Closed -> close circuit to provide 24 VAC to damper
    • Switch
      • ABC / DEF on each side from top to bottom
      • A = GND
      • B = pin 3
      • C = NC (no connection)
      • D = NC
      • E = pin 4
      • F = GND
      • switch up (force on)
        • B = GND
        • E = NC (pulled high)
      • switch middle (purple air)
        • B = NC (pulled high)
        • E = NC (pulled high)
      • switch low (off)
        • B = NC (pulled high)
        • E = grounded

About

Control an ERV/HRV and damper based on PurpleAir to limit wildfire smoke exposure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published