Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
pin1: ["GND"],
pin2: ["VDD", "V3_3", "3V3"],
pin3: ["SDA"],
pin4: ["SCL"],
} as const

/** SparkFun Qwiic right-angle JST-SH, 4-position, 1.0 mm pitch. */
export const JST04_1MM_RA = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
schWidth={0.7}
pinLabels={pinLabels}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: ["SCL", "SDA", "VDD", "GND"],
},
}}
supplierPartNumbers={{
jlcpcb: ["C160404"],
}}
manufacturerPartNumber="SM04B_SRSS_TB_LF_SN"
footprint={
<footprint>
<smtpad
portHints={["pin2"]}
pcbX="-0.4998720000000958mm"
pcbY="2.0005166999999346mm"
width="0.5999987999999999mm"
height="1.5500095999999999mm"
shape="rect"
/>
<smtpad
portHints={["pin1"]}
pcbX="-1.4998699999999872mm"
pcbY="2.0005166999999346mm"
width="0.5999987999999999mm"
height="1.5500095999999999mm"
shape="rect"
/>
<smtpad
portHints={["pin4"]}
pcbX="1.5003779999999551mm"
pcbY="2.0000086999999667mm"
width="0.5999987999999999mm"
height="1.5500095999999999mm"
shape="rect"
/>
<smtpad
portHints={["pin3"]}
pcbX="0.5003800000000638mm"
pcbY="2.0000086999999667mm"
width="0.5999987999999999mm"
height="1.5500095999999999mm"
shape="rect"
/>
<smtpad
portHints={["pin6"]}
pcbX="-2.800096000000053mm"
pcbY="-1.8750152999999727mm"
width="1.1999975999999999mm"
height="1.7999964mm"
shape="rect"
/>
<smtpad
portHints={["pin5"]}
pcbX="2.800096000000053mm"
pcbY="-1.8755233000000544mm"
width="1.1999975999999999mm"
height="1.7999964mm"
shape="rect"
/>
<silkscreenpath
route={[
{ x: -2.019960400000059, y: -2.397467900000038 },
{ x: 1.8800063999999566, y: -2.397467900000038 },
]}
/>
<silkscreenpath
route={[
{ x: -1.9400266000000101, y: 1.8624676999997973 },
{ x: -3.019958400000064, y: 1.8624676999997973 },
{ x: -3.019958400000064, y: -0.7374763000001394 },
]}
/>
<silkscreenpath
route={[
{ x: 2.040000999999961, y: 1.8624676999997973 },
{ x: 2.9600143999999773, y: 1.8624676999997973 },
{ x: 2.9600143999999773, y: -0.7443089000000782 },
]}
/>
</footprint>
}
cadModel={{
objUrl:
"https://modelcdn.tscircuit.com/easyeda_models/download?uuid=96ff162c26934a308e7bbf01d083d593&pn=C160404",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0, y: -1.5, z: 0 },
}}
{...props}
/>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SparkFun Micro Temperature Sensor - STTS22H (Qwiic)

A tscircuit recreation of SparkFun SKU **SEN-21273**.

## Source material

- Product page: https://www.sparkfun.com/sparkfun-micro-temperature-sensor-stts22h-qwiic.html
- SparkFun schematic: https://cdn.sparkfun.com/assets/c/2/6/1/9/SparkFun_Micro_Temperature_Sensor-STTS22H-Schematic.pdf
- SparkFun hardware repository: https://github.com/sparkfun/SparkFun_Temperature_Sensor-STTS22H
- STTS22H datasheet: https://www.st.com/resource/en/datasheet/stts22h.pdf
124 changes: 124 additions & 0 deletions boards/SparkFun-Micro-Temperature-Sensor-STTS22H-(Qwiic)/STTS22H.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
pin1: ["SCL"],
pin2: ["INT", "ALERT"],
pin3: ["VDD", "V3_3"],
pin4: ["ADDR"],
pin5: ["GND"],
pin6: ["SDA"],
pin7: ["EP", "GND_EP"],
} as const

/**
* STMicroelectronics STTS22HTR in SparkFun's UDFN-6L land pattern.
*
* The exposed pad is represented as pin 7 so it can be tied to GND, matching
* the official SparkFun Eagle library and board design.
*/
export const STTS22H = (props: ChipProps<typeof pinLabels>) => (
<chip
manufacturerPartNumber="STTS22HTR"
supplierPartNumbers={{
jlcpcb: ["C2969838"],
}}
pinLabels={pinLabels}
schWidth={2.4}
schHeight={1.45}
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: ["VDD", "GND"],
},
rightSide: {
direction: "top-to-bottom",
pins: ["INT", "ADDR", "SDA", "SCL"],
},
bottomSide: {
direction: "left-to-right",
pins: ["EP"],
},
}}
footprint={
<footprint>
<smtpad
portHints={["pin1"]}
pcbX="-0.89mm"
pcbY="0.65mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin2"]}
pcbX="-0.89mm"
pcbY="0mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin3"]}
pcbX="-0.89mm"
pcbY="-0.65mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin4"]}
pcbX="0.89mm"
pcbY="-0.65mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin5"]}
pcbX="0.89mm"
pcbY="0mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin6"]}
pcbX="0.89mm"
pcbY="0.65mm"
width="0.7mm"
height="0.27mm"
shape="rect"
/>
<smtpad
portHints={["pin7"]}
pcbX="0.01mm"
pcbY="0mm"
width="0.65mm"
height="1.45mm"
shape="rect"
/>

<silkscreenpath
route={[
{ x: -0.99, y: 1.05 },
{ x: 1.01, y: 1.05 },
]}
/>
<silkscreenpath
route={[
{ x: -0.99, y: -1.04 },
{ x: 1.01, y: -1.04 },
]}
/>
<silkscreenpath
route={[
{ x: -1.2, y: 0.88 },
{ x: -1.2, y: 1.18 },
{ x: -0.9, y: 1.18 },
]}
/>
</footprint>
}
{...props}
/>
)
Loading
Loading