Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Public Member Functions | List of all members
modules::voltage::VCC Class Reference

#include <voltage.h>

Public Member Functions

void Step ()
 Reads the ADC, checks the value.
 
uint16_t CurrentBandgapVoltage () const
 

Detailed Description

We are measuring the bandgap voltage, Vb=1.1V To compute the threshold value: VAL = 1125.3 / AVCC So for:

Any lower and the board will probably die sooner than being able to report anything. The TMC will die, but the atmega32u4 seems to be a bit more resilient. It's still out of spec anyway since the atmega32u4 is rated for 16MHz only at >4.5V.

Member Function Documentation

◆ CurrentBandgapVoltage()

uint16_t modules::voltage::VCC::CurrentBandgapVoltage ( ) const
inline
Returns
the current bandgap voltage level, platform dependent.
Note
see VCC measurement setup in config.h

The documentation for this class was generated from the following files: