1 / 2
Mệt Chết - DIY BedJet Cooling Fan and Bed Frame Mount — image 1
1 / 2

Mệt Chết - DIY BedJet Cooling Fan and Bed Frame Mount

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

A low-cost cooling fan and bed frame mount for the BedJet flat hose and mattress paddle.

Rating
0 / 5
Likes
4
Downloads
22
Makes
0
Views
606
Reviews
0

Updated at source:

Model information

Category
Bedroom
License
Creative Commons — Public Domain

Introduction

"Mệt chết" is Vietnamese for "dead tired." I was recently diagnosed with sleep apnea, and while I have a CPAP machine and got surgery to open my airways, I'm a warm sleeper, which presents a different challenge.

BedJets aren't terribly expensive compared to similar systems, but I thought "how much could it cost to pump air under a blanket?" I also live by the saying:

We do these things not because they are easy, but because we thought they were going to be easy.

When you factor in mattress size, box springs, bed frames, room size, and everything else about a bed, you quickly realize why so much work goes into designing a single product that can work for everyone.

If you have the money and the right bed setup, the BedJet isn't terribly expensive when you factor in everything, especially if it means you get a better night of sleep. 

Fan

Cost: $55

Getting the right airflow, pressure, noise, size, and price is a difficult optimization. There's a good reason why there's an entire field of study on moving air. The Fan Performance Database by Cybenetics Labs helped.

I ended up getting both the Noctua NF-A14 industrialPPC-3000 PWM and NF-A14x25 G2 PWM. Their claim to fame is low noise and high efficiency, but I'm still going back and forth on which one is better for me.

Currently, running the iPPC-3000 at 50% has been the optimal balance of airflow and noise. Want to investigate running two NF-A14x25 G2 PWMs in series.

Hose

Cost: $69

The official flat hose accessory with free shipping is kinda hard to beat at that price.

I tried a couple flexible ducts at 3", 4", and 6" in diameter. They're bulky, noisy, and tough to wrangle.

Interestingly, a CPAP machine's hose is kinda perfect for pump high pressure air into an environment with resistance. Vacuum cleaner hoses could work, but the difference in diameter from the fan wouldn't be ideal.

Finding a fabric cover for the hose would also be needed to match the BedJet's. It's probably mainly for insulation, but it's also unpleasant brushing up against a metal duct when walking around the bed.

One non-ideality is the flexibility of the hose introducing additional resistance. If a person designed a printed custom ducting, they'd get better airflow and pressure. I started off with that route, but since I was still in development, the flexibility won out.

Mount

Cost: $41

The official adjustable mount bracket isn't great, and it's easy enough to reverse engineer or design around, as others have already. But since I already bought it, I made an adapter to mount it more sturdily on my bed frame.

Controller

Cost: $36

I set up an Adafruit Sparkle Motion ESP32 microcontroller with ESPHome.

  • Supports USB-C PD or DC barrel jack for power, up to 5 A

  • Integrates a logic-level shifter and a USB-to-serial converter

  • Screw terminal blocks

  • 3D printed case

Seems overbuilt for what I'm doing here, but I've found it's the most convenient way to get PWM from a microcontroller when comparing to Arduino or Raspberry Pi.

ESPHome integrates with Home Assistant and Apple HomeKit Bridge, so I can control the fan speed from my watch after crawling into bed.

To connect the Noctua 4-pin connector to the Sparkle Motion, I repurposed the NA-SEC1 extension cable using the wiring diagram below. I also had this lying around from another fan purchase; the iPPC didn't come with any accessories in the box. Twisting the wires by hand should be good enough for most. I crimped the 26 AWG stranded wires with these Weidmuller wire-end ferrules using the iCrimp HSC8 6-6 hexagonal crimper. For the Sparkle Motion's pre-soldered terminal blocks, wires insert about 5 mm deep.

Here is the Pretty Pins diagram for the Sparkle Motion:

Thus, the Noctua wiring to the Sparkle Motion terminal block looks like the following table:

Noctua

Sparkle Motion

Blue

GPIO 19, 22, or 21

Green

GPIO 19, 22, or 21

Yellow

V+

Black

V-

Whichever GPIO is used to connect PWM, ensure that the YAML config uses the same number. In my case, I used GPIO21.

esphome:
  name: fan
  friendly_name: Fan

esp32: board: esp32dev framework: type: esp-idf

logger:

Home Assistant API

api: encryption: key: "REMOVED"

ota:

  • platform: esphome password: "REMOVED"

wifi: ssid: !secret wifi_ssid password: !secret wifi_password

ap: ssid: "Fan Fallback Hotspot" password: "REMOVED"

captive_portal:

PWM Output Configuration

output:

  • platform: ledc id: fan_pwm pin: GPIO21 frequency: 25000 Hz

Fan Speed Control

fan:

  • platform: speed name: "Fan Speed" id: fan_speed output: fan_pwm speed_count: 100

Tachometer

sensor:

  • platform: pulse_counter name: "Fan RPM" id: fan_rpm pin: number: GPIO18 mode: input: true pullup: true count_mode: rising_edge: INCREMENT falling_edge: DISABLE update_interval: 5s unit_of_measurement: "RPM" accuracy_decimals: 0 filters:
    • multiply: 0.5

Had issues getting the tachometer to read properly until I found this blog post by Paul Keeble. For some reason, using the internal weak pull-up resistor just didn't work, so I used the same external voltage divider as Paul and now I can get an RPM reading. Useful for detecting a stalled fan or for when I eventually integrate a temperature and humidity sensor.

Power Supply

DC Barrel Jack

Charger

It's not hard or expensive to find a 12 VDC or 24 VDC power brick with 1 A output current. Most would have a 2.1 mm x 5.5 mm DC barrel jack connector to plug into the Adafruit Sparkle Motion.

Edit: I'll caution that using a 24 VDC PSU via the Sparkle Motion's DC barrel jack introduces a risk of damage to the voltage regulator on the rev. D board, so using USB-C PD (or whatever the hell I decided to do below) is safer and prevents the PCB from giving up the magic smoke.

USB-C Power Delivery

Charger

The Sparkle Motion also supports USB-C PD for power input, but the voltage selector switch only has three positions. Because each USB-C PD charger has a different set of voltages and currents it supports, it's a matter of trial-and-error to see what voltage you get with each switch position. For example, the Anker 511 supports 4 voltages (5V, 9V, 15V, and 20V).

USB-C PD to DC Barrel Jack

Most people would be well-served by the above two options. But instead of buying a new DC wall wart coupled with an AC extension cord to reach the foot of my bed or buying a new USB-C charger that the Sparkle Motion's PD selector switch could set to 12 VDC, I decided to save myself the money but give myself more of a headache.

I used a CentyLab PPSTrigger since I had one on hand already. It uses the USB-C PD Programmable Power Supply feature to set an arbitrary voltage with the trimpot on component side or a solder bridge underneath the PCB.

I made a simple enclosure: 

I already had a USB-C charger with PPS, the Anker 511 Nano 3, but you may want to check this handy page before you buy a new one. It's very helpful that someone tested a bunch of different chargers and power banks to help navigate the mess of the USB-C protocol.

Cable

Not all USB-C cables are built equally, with some offering faster data transfers but slower charging, others faster charging and slower data transfers. We only need a charging cable in this case.

For the USB-C PD input cable to the PPSTrigger, there are a few options.

The Noctua NF-A14 iPPC-3000 fan only draws 0.55 A @ 12V, so I didn't need the most advanced USB-C cable. I ran a 2 m male USB-C to male USB-C cable to the foot of the bed, tucked under the mattress and above the slats of the bed frame.

If you find the topic of USB cables confusing, that's normal! This handy page does a pretty good job of simplifying the complexity: The USB Situation.

For the DC output, I used bare wire and a 2.1 mm x 5.5 mm DC barrel plug [Amazon] to connect from the PPSTrigger's output to the Sparkle Motion.

Design Discussion

I investigated different options for "easily" recreating the BedJet, but it ultimately didn't lead anywhere. However, I thought it would be worthwhile to share my notes.

Finding an equivalent motor is likely more costly than buying a used/refurbished BedJet.

Custom Fan

A fan is "just" a set of blades mounted to a motor with a driver, controller, power supply, and mechanical housing.

Blades

This squirrel cage model seems like a great start. You can buy replacement squirrel cages for as low as $20.

Motor

From this teardown video, we can see the following information on the custom motor used in the BedJet 3.

  • Part number: 77ZWT10-5760-001L

  • Vmax: 24 VDC

  • Imax: 2.3 A

  • Power: 55 Wmax

  • Speed: 2250 RPM

  • NEMA Class: E

Wiring:

  • Red: Vu

  • Black: Vss

  • Blue: Speed

  • White: Frequency Generator

Searching online for a similar motor proved fruitless. Seems nigh impossible to find all of the following characteristics in one package.

  • Single phase brushless DC motor (not stepper, servo, planetary, etc.)

  • 24 VDC

  • Integrated controller/driver with PWM

  • Between 2000 RPM and 3000 RPM

  • Lower cost than a BedJet

Heater blower motors/fans for SUVs and RVs may be a good match. Can be purchased from multiple sources locally and online, runs on 12 VDC, built to last for a long time, e.g., Toyota 4Runner 87103-60400 (Amazon.ca)(RockAuto). However, usually these motors are set to fixed speeds with resistors in a dial.

Whatever deal BedJet struck to make custom motors at scale, it seems to be a lot better than what you can get commercially off the shelf.

Driver

BLDC motor drivers exist in endless configurations on Amazon, AliExpress, etc.

Controller

Similar to the driver, there are countless 12VDC PWM fan controllers for desktop PC fans.

BedJet comes with a remote control and app, which is hard to compete with. There are ESP32 remote controls and apps for smart home controllers like Home Assistant, HomeKit. Interestingly, WLED can also run a PWM fan, though to control the speed, you'd move a slider for the colour of a single LED from white to black.

Mechanical Housing

The blower fan housing probably isn't hard to design at first blush, but it's probably hard to make it efficient and quiet, especially if you don't have it in front of you to measure or 2D/3D scan.

Conclusion

At this point, it's clear that you'd be hard pressed to match the BedJet's hardware at a lower price point. Thankfully, everything described before this section works just fine for me despite the reduced feature set.

Reference

  1. Microcontroller guide: PWM setup and RPM monitoring of your Noctua fan

  2. ESP32 12V PC 4 Pin Fan Tachometer reading that works

  3. Noctua PWM specifications white paper

  4. 4-Wire Pulse Width Modulation (PWM) Controlled Fans

Tags