This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Battery Indicator

Display the battery voltage level with LEDs on the TFC shield


Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield


This block controls the four LEDs on the TFC Shield to indicate the present level of the battery voltage. Each LED represents 25% of the battery voltage. When the input is between 0.75 and 1.0, all the four LEDs are on and when the input reduces to a value between 0.0 and 0.25, only one of the LEDs is on.

During simulations without the hardware, this block does nothing.

See Also