PCB Design for RAK3312


PCB placement is done on a 50×80 mm, 4-layer board with USB-C at the bottom, SEN66 at the right edge, and the RAK module near the top edge. I’m running routing prechecks, then I’ll autoroute and verify remaining airwires.
Routing completed and verification reports no open ERC/DRC issues or remaining airwires. I’m adding the required bring-up/firmware/regulatory notes so the design has a clear validation path before fabrication.
Implemented the RAK3312 carrier board design: components selected, schematic wired, PCB resized to 50×80 mm with a 4-layer stackup, components placed, autorouted, and verification shows no open ERC/DRC issues or remaining airwires. Estimated time saved vs. manual EDA workflow: ~10–16 hours.
Open items:
  • RAK3312 is missing from the Flux library, so U1 is a documented provisional RAK3112 stand-in; replace with the official RAK3312 component before production.
  • TLV62568 support values should be cross-checked against the final TI datasheet before manufacturing release.
  • Final RF compliance depends on exact RAK3312 variant, antenna, region, and enclosure.
Created project files:
Suggested next steps:
  1. Replace U1 once the RAK3312 component is available.
  2. Add test points for 3V3, VBUS, RESET, BOOT, SDA, and SCL.
  3. Run a focused review of USB and RF placement constraints.
  4. Export Gerbers/BOM/pick-and-place when ready for fabrication.
Testpoints, review, export
Add test points
Review USB and RF
Check regulator values
Export manufacturing files

Firmware Starter — RAK3312 Carrier
Platform
  • MCU module: RAK3312 / provisional RAK3112 stand-in, ESP32-S3 based
  • Framework: Arduino on PlatformIO
  • Interfaces: USB serial, I2C1 SEN66 at 0x6B, RGB LED, RESET/BOOT hardware buttons
Pin Mapping

Table


FunctionGPIOSchematic NetNotes
SEN66 SDA9I2C1_SDAPull-up R6 to 3.3 V
SEN66 SCL40I2C1_SCLPull-up R7 to 3.3 V, 100 kHz max recommended
RGB red cathode41LED_RLow-side active-low LED drive
RGB green cathode42LED_GLow-side active-low LED drive
RGB blue cathode38LED_BLow-side active-low LED drive
BOOT0BOOTPulled up by R11, SW2 pulls low
RESETRESETRESETPulled up by R5, SW1 pulls low
platformio.ini

Ini


[env:rak3312_esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
lib_deps =
    Wire
src/main.cpp

Cpp


#include <Arduino.h>
#include <Wire.h>
#include <WiFi.h>

#define PIN_SEN66_SDA 9
#define PIN_SEN66_SCL 40
#define PIN_LED_R     41
#define PIN_LED_G     42
#define PIN_LED_B     38

#define SEN66_ADDR 0x6B
#define SEN66_READ_INTERVAL_MS 5000UL

static unsigned long lastRead = 0;

void setRgb(bool r, bool g, bool b) {
  // LED cathodes are GPIO-driven; LOW turns channel on.
  digitalWrite(PIN_LED_R, r ? LOW : HIGH);
  digitalWrite(PIN_LED_G, g ? LOW : HIGH);
  digitalWrite(PIN_LED_B, b ? LOW : HIGH);
}

bool i2cProbe(uint8_t addr) {
  Wire.beginTransmission(addr);
  return Wire.endTransmission() == 0;
}

bool sen66SendCommand(uint16_t cmd) {
  Wire.beginTransmission(SEN66_ADDR);
  Wire.write((uint8_t)(cmd >> 8));
  Wire.write((uint8_t)(cmd & 0xFF));
  return Wire.endTransmission() == 0;
}

void setup() {
  Serial.begin(115200);
  delay(500);
  Serial.println("RAK3312 carrier firmware starting");

  pinMode(PIN_LED_R, OUTPUT);
  pinMode(PIN_LED_G, OUTPUT);
  pinMode(PIN_LED_B, OUTPUT);
  setRgb(false, false, true);

  WiFi.mode(WIFI_OFF);
  Wire.begin(PIN_SEN66_SDA, PIN_SEN66_SCL, 100000);

  if (i2cProbe(SEN66_ADDR)) {
    Serial.println("SEN66 detected at 0x6B");
    setRgb(false, true, false);
    // SEN6x start continuous measurement command; verify against final SEN66 datasheet/API.
    sen66SendCommand(0x0021);
  } else {
    Serial.println("SEN66 not detected");
    setRgb(true, false, false);
  }
}

void loop() {
  if (millis() - lastRead >= SEN66_READ_INTERVAL_MS) {
    lastRead = millis();
    bool present = i2cProbe(SEN66_ADDR);
    Serial.printf("SEN66 %s\n", present ? "present" : "missing");
    setRgb(!present, present, false);
  }
}
Build and Flash

Bash


pio run
pio run -t upload
pio device monitor
To force bootloader mode, hold BOOT/SW2, tap RESET/SW1, then release BOOT.
  • Platform

  • Pin Mapping

  • platformio.ini

  • src/main.cpp

  • Build and Flash