Skip to content

Firmware: LED duty cap, low-duty off, 31 kHz PWM #2

Backlog

Description

@CameronBrooks11

Three firmware items the hardware in #1 (6e2b0e8) relies on. firmware/ holds only a placeholder today.

  • Duty cap when warm. At full scale (66.7 mA, 67.5 mA with hysteresis) the INL-5AMIR15 dissipates about 137 mW typical against its 160 mW Pd. The datasheet derates IF linearly from 30 °C to about 10 mA at 85 °C, so full scale is inside the curve up to about 50 °C ambient, or about 39 °C if Pd derates like IF. Cap the duty above that.
  • Treat duty under 3.2 % as off. Below the comparator threshold (3.17 % in the bench) the BC858 bypass passes only about 1.2 mA, so the LED still carries about 0.87 mA at 3 % duty. The figure rests on the BC858 stand-in's assumed reverse beta of 3; a bench reading of LED current at 2-3 % duty settles it.
  • 31 kHz PWM. The DAC filter is sized for it: bench ripple at 50 % duty is 0.068 mApp at 31.4 kHz against 5.01 mApp at the Nano's default 490 Hz.

Bench checks still owed on the hardware (from #1): LED on/off ground shift, photodiode direction, RS scope at about 67 mA and about 5 mA.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions