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,31 @@
# SparkFun Humidity and Temperature Sensor Breakout - Si7021

SparkFun Product: [SEN-13763](https://www.sparkfun.com/sparkfun-humidity-and-temperature-sensor-breakout-si7021.html)

## Description

The Si7021 is a low-cost, easy-to-use, highly accurate digital humidity and temperature sensor communicating over I2C. This breakout board includes built-in 4.7kΩ pullup resistors for I2C and a 100nF decoupling capacitor.

## Features

- Si7021-A20 humidity and temperature sensor
- I2C interface (address: 0x40)
- 3.3V supply voltage
- Built-in 4.7kΩ I2C pullup resistors
- Board size: 0.6" × 0.6" (15.24mm × 15.24mm)

## Pinout

| Pin | Signal | Description |
|-----|--------|-------------|
| 1 | VCC | 3.3V power supply |
| 2 | GND | Ground |
| 3 | SDA | I2C data |
| 4 | SCL | I2C clock |

## Resources

- [Schematic PDF](https://cdn.sparkfun.com/datasheets/Sensors/Weather/SparkFun_Si7021_Breakout.pdf)
- [Hookup Guide](https://learn.sparkfun.com/tutorials/si7021-humidity-and-temperature-sensor-hookup-guide)
- [Si7021 Datasheet](https://cdn.sparkfun.com/assets/b/1/b/8/5/Si7021-A20.pdf)
- [GitHub Design Files](https://github.com/sparkfun/Si7021_Breakout)
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import { sel } from "tscircuit"
import { Si7021 } from "./imports/Si7021"

/**
* SparkFun Humidity and Temperature Sensor Breakout - Si7021 (SEN-13763)
* Si7021-A20 I2C sensor with 4.7kΩ I2C pullup resistors
* Board size: 0.6" x 0.6" (15.24mm x 15.24mm)
*
* Schematic: https://cdn.sparkfun.com/datasheets/Sensors/Weather/SparkFun_Si7021_Breakout.pdf
*/
export default () => (
<board width="15.24mm" height="15.24mm" routingDisabled>
{/* Si7021 humidity and temperature sensor */}
<Si7021
name="U1"
pcbX={0}
pcbY={0}
connections={{
pin1: sel.net.SDA,
pin2: sel.net.GND,
pin3: sel.net.GND,
pin4: "net.NC",
pin5: sel.net.VCC,
pin6: sel.net.SCL,
}}
/>

{/* 4.7kΩ I2C pullup resistors (built into board) */}
<resistor
name="R1"
resistance="4.7k"
footprint="0402"
pcbX={-4}
pcbY={2}
schX={-5}
schY={2}
connections={{ pin1: sel.net.VCC, pin2: sel.net.SDA }}
/>
<resistor
name="R2"
resistance="4.7k"
footprint="0402"
pcbX={4}
pcbY={2}
schX={-5}
schY={0}
connections={{ pin1: sel.net.VCC, pin2: sel.net.SCL }}
/>

{/* 100nF decoupling capacitor */}
<capacitor
name="C1"
capacitance="100nF"
footprint="0402"
pcbX={0}
pcbY={-4}
schX={-5}
schY={-2}
connections={{ pin1: sel.net.VCC, pin2: sel.net.GND }}
/>

{/* Header pins: VCC, GND, SDA, SCL */}
<chip
name="J1"
footprint="pinrow4_p2.54mm"
pcbX={0}
pcbY={6}
schX={5}
schY={0}
pinLabels={{
pin1: ["VCC"],
pin2: ["GND"],
pin3: ["SDA"],
pin4: ["SCL"],
}}
connections={{
pin1: sel.net.VCC,
pin2: sel.net.GND,
pin3: sel.net.SDA,
pin4: sel.net.SCL,
}}
/>
</board>
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import type { ChipProps } from "@tscircuit/props"

/**
* Si7021-A20 - I2C Humidity and Temperature Sensor
* DFN-6 package (3mm x 3mm)
* Used on SparkFun Humidity and Temperature Sensor Breakout (SEN-13763)
*/
const pinLabels = {
pin1: ["SDA"],
pin2: ["GND"],
pin3: ["GND2"],
pin4: ["NC"],
pin5: ["VDD"],
pin6: ["SCL"],
} as const

export const Si7021 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
{...props}
pinLabels={pinLabels}
manufacturerPartNumber="SI7021-A20-IMR1"
supplierPartNumbers={{
jlcpcb: ["C94258"],
}}
footprint="dfn6_w3mm_h3mm_pl0.65mm_pw0.4mm"
schPinArrangement={{
leftSide: {
direction: "top-to-bottom",
pins: ["pin6", "pin5", "pin4"],
},
rightSide: {
direction: "top-to-bottom",
pins: ["pin1", "pin2", "pin3"],
},
}}
/>
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import SparkFunHumidityTemperatureSensorBreakoutSi7021 from "./SparkFun-Humidity-Temperature-Sensor-Breakout-Si7021.circuit"

export default SparkFunHumidityTemperatureSensorBreakoutSi7021
Loading