@typecad/rd_esp32s3 v1.0.9
rd-ESP32S3
The reference design for the ESP32-S3-MINI-1-N8. A module that provides 2.4 GHz b/g/n WiFi and BLE 5 connectivity, MCU, and PCB antenna.
Installation
npm i @typecad/rd_esp32s3
Input Connections
- vin:
Power
- 3.3 volt power supply
Output Connections
- None specified in the package, refer to the datasheet for a listing of pins.
- The ESP32-S3 GPIO pins are available as
::U1.IO*
, see Accessing Outputs below for more details
Components
- U1:
ESP32_S3_MINI_1_N8
- Main IC - C1:
_0603.Capacitor
- Bulk capacitor - C2:
_0603.Capacitor
- Part of RC circuit for U1.EN - C3:
_0603.Capacitor
- Decoupling capacitor - C8:
_0603.Capacitor
- Debounce for SW1 - R1:
_0603.Resistor
- Part of RC circuit for U1.EN - R7:
_0603.Resistor
- Debounce for SW1 - SW1:
Component
- Button to reset IC
Use
- Import the package
import { Schematic } from '@typecad/typecad';
import { Power } from '@typecad/passives/power';
import { rd_esp32s3 } from "@typecad/rd_esp32s3";
- Declare a
Power
object to power the ESP32-S3
let vin = new Power({
power_name: 'vin',
schematic: typecad,
});
- Make the package.
let esp32s3 = new rd_esp32s3(typecad, vin);
::create()
it
esp32s3.create();
Default Layout
This package contains a default layout for all the components. The PCB
class can be shared between multiple packages.
import { PCB } from '@typecad/typecad';
let board = new PCB('[your_board_name]');
esp32s3.pcb = board;
esp32s3.create();
board.create();
After building, there will be a .kicad_pcb
file in the build
directory. Keep in mind that each time esp32s3.pcb = board
is set, the layout will be updated with the default component locations, discarding any changes you may have made. Setting it once, building, then removing it is the recommended workflow.
Accessing outputs
Any of the pins can be accessed, they must be exported with ::ext
first.
Attach any pin to a named net.
esp32s3.sheet.ext(esp32s3.U1.IO10.net, esp32s3.U1.IO10.pin);
Subsequent Use
typecad.net(esp32s3.U1.IO10.pin, ...);
Passives
The default size for the passive components is 0603, but it can be changed by passing a different set of passives.
import * as $0805 from '@typecad/passives/0805';
let esp32s3 = new rd_esp32s3(typecad, vin, 'U1', $0805);