Engineering Calculators
Motor Shunt Resistor
Notes
For BLDC motor controller shunt resistors, using a bi-directional current sense amplifier.
- The amplifier reference is the 'mid' or 0-current voltage (the average of vref1 and vref2 in -for example- TI amps).
- If no amplifier is used set the gain to 1 and reference to 0
I2C Pull-up
Notes
- Source TI SLVA689: I2C Bus Pullup Resistor Calculation
- According to TI SLOA013 traces on a PCB with a ground and power plane will be about 1-3 pF/in. and low capacitance cables about 20-30 pF/ft conductor to shield.
- According to NXP UM10204 each device can add up to 10pF of bus capacitance. STM32 MCUs have a typical capacitance of 5pF per IO.
- Low-level output current for Standard (100kb/s) and Fast (400kb/s) modes are min. 3mA, 20mA for Fast-mode Plus (1Mb/s) at 0.4V.
- For a more detailed guide on trace capacitance see: I2C Design Mathematics: Capacitance and Resistance
- Rise times: max. 1000, 300, 120ns for Standard, Fast, Fast+ modes respectively. Min 20ns only for Fast mode.
TODO
- Add some power estimations, for example by providing a data size in bytes, determining the clock pulses required, then the energy to create those based on the bus capacitance and 'low' duration (resistive losses)
CAN-Bus Termination
Notes
- Source: Designing CAN-Bus Circuitry: CAN-Bus PCB Layout Guidelines
- Rated power based on square (half-on, half-off) wave
Gate Drive Resistor
Notes
- See TI's take on ringing.
- Does not include any diodes for asymmetric control.
- Takes the minimum of the sink / source currents.
TODO:
- Use gate capacitance to determine average power rating
- Suggest a resistor size based on current and power limits (0805 ~ 1A, 1206 ~2A, etc)
- Separate out sink/source
- Support diodes
Effective Sinusoidal Frequency for PWM signals
Skin Depth for PWM signals
Notes
TODO:
- Adopt better effective area calculation from here
Passive Low-pass Filter
Notes
TODO:
Passive 2nd order Low-pass Filter
Notes
TODO:
Switched Passive Low-pass Filter
Notes
TODO:
Filtered Resistor Divider
Notes
TODO:
Power Supply
Buck converter resistor divider
Notes
TODO:
Boost converter
Notes
- TI Basic Calculation of a Boost Converter's Power Stage Application Note
- StackExchange Filtering capacitors
- Capacitance should be derated value
TODO:
- List input currents and powers
- Determine more of efficiency by ESR, etc
Texas Instruments TPS65261
Notes
Calculations based on the datasheet values
- Datasheet
- Product Page
- The lower feedback resistor should be 10k in most cases
TODO
- Loop compensation, etc.
STM32 Clock Config
Notes
To quickly find the right clock configuration for an STM32(G4), without the tedious drop-downs in CubeMX.
TODO:
STM32 ADC
Notes
Vishay SiC471 Calculator
Notes
Calculator for design parameters for the TI BQ51013B Wireless Qi / WPC v1.2 Power Receiver.
- Source for most equations: datasheet
TI BQ51013B Design Calculator
Notes
Calculator for design parameters for the TI BQ51013B Wireless Qi / WPC v1.2 Power Receiver.
- Source for most equations: datasheet
LED resistor calculator
Notes
Calculate a LED current limit resistor
- An STM32 can handle up to 20mA per GPIO
- For most 3.3V MCUs a GPIO will output approx 3.2V
TODO
- List / select standard resistor values
Battery Pack
Planetary Gearset calculator
Notes
Calculate a some base parameters of a planetary gearset.
- The tip clearance is the space between between the individual planetary gears
- The ring OD needs backing 'thickness'
BLDC calculator
Notes
Ball Screw Drive calculator
Timing belt calculator
Notes
- Common issue with suppliers: GT2 and GT3 are Gates tooth shapes and come in several sizes, they don't indicate pitch, but Chinese suppliers sometimes do use the digit for pitch.
- A typical belt breaking strength for common Chinese 2M GT2 is 85N per mm of width. Approx. 150N for 3M HTD & 300N for 5M HTD.
- MIT list of belt strengths. These need dividing by 25.4 as they're using a 1" reference belt width. Warning: The ultimate strength figures here are much higher than regular Chinese OEMs.
- Belt surface speeds: General / large pitch 28m/s, HTD 33m/s, GT2 38m/s, T[n] 20m/s. Source: SDP/SI
- In general a gear or pulley with an odd tooth-count will have better vibration characteristics than even ones, especially for the smaller pulleys.
Encoder calculator
Notes
Calculator for hall encoders, with a focus on hand-over encoders
Flight-time and added drag
Notes
- For reference: A Mini Talon (Pro) does approx 55-90 mAh/km with a 4S battery pack
Packing of Two Sphere sizes
Notes
- Implementation of Multi-Sized Sphere Packing.
- Imperfect spheres pack slightly better
Assumptions
- Using RCP, 'Random Close Packing', not compressed, but shaken or vibrated to pack