Hardware Documentation

Guides, pinouts, assembly documentation, and flashing manuals for CowPower Systems hardware.

CowESP

CowESP Documentation

Features, connectors, pinout, GPIO map, and notes for building a mote around CowESP.

Overview & features

CowESP is a remote oriented ESP32 "dev board" designed for making premium motes with cool features.

FILES

STEP / CAD files for designing your shell: Google Drive

  • 1.32" OLED DO0132FMST02
    • 466x466, 600 nits
    • CO5300 driver IC
    • FT3168 touch IC
  • SY6970 battery charging/management
    • Up to 14v 3a input (ie, 5v 3a USB)
    • Up to 5a battery side charge current
    • I have no idea if the PCBs will actually sustain this thermally. Most smaller (sub 2ah) pouch cells are rated for sub 3a charge currents.
    • Charge interrupt on ESP
  • DRV2605 LRA haptic driver
    • Advanced haptic driver with many built in vibration patterns.
    • Drives LRAs, those fancy haptic motors in your phone. Or ERMs if you really want inferior toothbrush haptics.
  • QMI8658A IMU
    • 6 axis IMU for IMU things, ie orientation detection
    • Interrupt on ESP for lift-to-wake
  • 3V3 rail with buck-boost converter
    • Most similar dev boards just buck battery to 3.3v, so the 3v3 rail is no longer 3.3v when battery voltage drops below 3.3v.
    • That can cause weirdness with joysticks or other hardware sensitive to consistent input voltage, or hardware that doesn't care since the ESP ADC is relative to input voltage.
    • Buck-boost means 3.3v is maintained down to 2.5v battery.
  • Switched thumbwheel 3v3
    • No need to worry about high quiescent current thumbwheels/thumbsticks. Power to the thumbwheel can be cut when the remote is asleep.
  • Remote USB port
    • USB lives on a panel mount connector with a short cable, so case design is more flexible than USB mounted on the PCB.
  • RGB LED edge lighting
    • 4 side facing LEDs around the edge of the PCB for lighting a translucent shell/midframe.
    • For baller RGB or status indication (warnings, charge status, etc).
  • Piezo buzzer
    • Buzzes. For buzzing purposes.

Connectors & pinout

Picoblade ("JST MX 1.25") connectors for everything.

  • 2p battery
  • 2p LRA
  • 4p thumbwheel/stick
    • Supports 1 axis and button, or 2 axis and no button.
    • Solder jumper to cut the button pulldown for 2 axis.
  • 3p button
    • Dedicated switched 3v3 for a button LED
  • 6p USB
    • Yes, CC lines are terminated for 3A sink.
  • 2p power input
    • Second VBUS power input. Not isolated from USB VBUS.
    • Could be used for a Qi charging module that outputs 5v, charge cradle pogo pins, etc.
CowESP V0.5 pinout

Battery

Is polarized. Duh.

LRA

Is "polarized". Doesn't really matter.

USB

  • GND / D- / D+: self explanatory.
  • 5V is SY6970 VBUS. It is the same as Qi In positive. They are not isolated from each other. Do not dumb.
  • CC are just resistors to GND to set USB C as a higher current sink. No fancy functionality. I'd add power delivery, but none of these mote sized cells can maintain power delivery currents.

Thumbwheel

  • 3V is the main switched 3v3.
  • W is the primary wheel axis input. It has no pullup. GPIO 10
  • B is for a button or second axis. It has a pullup. Cut JP1 to disconnect the pulldown and use it as a second axis instead of a button. Cut toward the connector so you don't cut a display trace by accident. GPIO 9
  • Button pin must be changed in [PubMote](https://pubmote.com) settings: Primary button.
  • Buttons go between the pin and ground.

BTN

  • B is the button. It has a pullup. Buttons go between pin and ground. GPIO 3
  • L is for an LED. Separately switched 3v3 for a button LED.
  • GND is ground. This should be self explanatory.

Qi In

  • + is SY VBUS, same as 5V on USB. Can be fed up to 14v. Is not isolated from USB.
  • - is GND.

CapTouch pad

Just an ESP GPIO capable of capacitive touch, for a touch spot on the thumbwheel or housing or something. No pullups/pulldowns. GPIO 1

Dimensions

See the cool CAD files.

Building a mote (PubMote notes)

  • Avoid display rotation. The 6 pin USB connector should face down so text on the screen is the right way up.
    • Software screen rotation sucks ass. Don't do it. It runs like shit. No, it can't be fixed.
  • The prebuilt PinguMote firmware expects a single thumbwheel axis on the "thumbwheel" connector, and the remote's primary button on the "button" connector.
    • This can be reconfigured with the web tool.
    • Thumbwheel W is GPIO 10
    • Thumbwheel B is GPIO 9
    • Button is GPIO 3
  • Buttons connect between pin and ground.
  • Thumbwheels should be 3v3 supply, output can be any range between 0 and 3v3. PubMote calibration is flexible. Most joysticks fit these reqs. We use hall effect PS5 sticks.
  • LRAs should be ~8 ohm, 0.8-2v "rated" units. Basically any standard one.
  • Cable on the USB port is ~50mm.
  • Connectors are Molex Picoblade. Often called "JST MX 1.25", Micro JST, etc.
ESP GPIO map

Only matters if you're writing your own firmware. PubMote users can skip this.

I2C (DRV2605 / IMU / touch)

SignalGPIO
SCL17
SDA18

Display

SignalGPIO
SPI016
SPI115
SPI27
SPI36
CLK4
CS5
RST12
"Backlight EN"11
Touch interrupt8
Touch reset13

Everything else

SignalGPIONotes
SY6970 interrupt14
IMU interrupt20x6B I2C address
Buzzer48
Main switched 3v339"On" is a #x signal
BTN switched 3v346"On" is a #x signal. Needs to be held #x
LED ring data42SK6812
DRV2605 enable45
BTN button3
Thumbwheel "W"10
Thumbwheel "B"9
CapTouch1