Skip to main content
Built-in Elements

<resistor />

Overview

A <resistor /> is an extremely common element of electronic designs. It limits the flow of electricity and is critical to making sure digital signals are properly "pulled up" or "pulled down" to set their default value as 1 or 0

A resistor element has two pins and is non-polar, meaning it doesn't matter if you place it on backwards (it resists electricity identically either way!)

When specifying a resistor, you'll usually want to give it a footprint string such as 0402 or 0603 to indicate it's size. You can see the most popular resistor sizes for different power ratings at jlcsearch

export default () => (
<board width="10mm" height="10mm">
<resistor
name="R1"
footprint="0402"
resistance="1k"
/>
</board>
)
Schematic Circuit Preview

Pins

A resistor has the following pins and aliases

Pin #AliasesDescription
pin1left, posThe left side pin in normal orientation
pin2right, negThe right side pin in normal orientation
note

For convenience, you can use the pos and neg aliases for the resistor. This can help to remember which pin is which for the purpose of pulling up or pulling down a signal, but the resistor is non-polar so pos/neg are meaningless.

Tolerances

Resistors can be made to different tolerances. In particular, you might care about the following resistor characteristics:

  • tolerance - a percentage given with a string, e.g. tolerance="5%". This specifies how accurate the resistance needs to be
  • powerRating - a wattage e.g. "5W" indicating how much power can transfer through the resistor for normal operation
  • temperatureOperatingRange - a string indicating the listed range for the resistor's operating temperature "-15F-150F"

Resistor Properties

PropertyDescriptionExample
footprintThe footprint or package size of the resistor."0402", "0603"
resistanceThe resistance value of the resistor. Can be a string with units or a number in ohms."1k", 1000
toleranceThe acceptable variance in resistance."1%", "5%"
pullupForThe pin or net this resistor is pulling up.".U1 > .GPIO1"
pullupToThe net this resistor is pulling up to."net.VCC"
pulldownForThe pin or net this resistor is pulling down.".U1 > .GPIO1"
pulldownToThe net this resistor is pulling down to."net.GND"
schOrientationThe orientation of the resistor on the schematic."vertical", "horizontal"
schSizeThe size of the schematic symbol."normal"

Automatic Part Selection

You generally don't need to specify supplierPartNumbers with a resistor, tscircuit will use the platform parts engine to automatically search vendors for a part matching your tolerances.