Documentation sections
Accelerometer Range & Sensitivity
POSThttps://rftools.io/ api/ py/ v1/ calculate
Slug accelerometer-sensitivity. Calculate accelerometer output voltage, ADC resolution in mg per LSB, and full-scale range. Design MEMS vibration and motion sensor interfaces.
Inputs
Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.
| Name | Unit | Range | Default | Description |
|---|---|---|---|---|
| sensitivitynumber | mV/g | at least 0.001 | 300 | From accelerometer datasheet (e.g., ADXL335: 300 mV/g) |
| fullScaleRangenumber | g | at least 0.1 | 3 | Full-Scale Range |
| supplyVoltagenumber | V | at least 0.1 | 3.3 | Supply Voltage |
| adcBitsnumber | bits | 8 … 24 | 12 | ADC Resolution |
| accelerationnumber | g | any | 1 | The acceleration along the sensing axis: 1 g at rest with the axis vertical |
| frontGainnumber | V/V | 0.01 … 1000 | 1 | The gain between the sensor and the ADC, applied around the zero-g level, which sits at half the supply. 1 is a direct connection, which the per-LSB outputs assume. |
Outputs
Returned in values, by key. A value that is unbounded or undefined is null.
| Field | Unit | Description |
|---|---|---|
| fullScaleVoltage | mV | Full-Scale Output Swing |
| voltagePerCount | mV | Voltage per LSB |
| accelerationMgPerCountheadline | mg | Acceleration per LSB |
| outputVoltage | V | The sensor output at this acceleration: half the supply at 0 g |
| amplifiedVoltage | V | Half the supply plus the gain times the sensor swing |
| adcCode | none | The code an ideal ADC referenced to the supply reads: floor(V_amp / V_cc × 2^N) |
| resolution | g/LSB | The acceleration one ADC step spans, the amplifier gain included |
Calling it
- Calculate: one call, the request and response in full, and its errors.
- Batch: this calculator with others, or a sweep, in one request.
- Solve for a target: the value of one input that brings an output to a target.