Main Content

Battery Read

Read the battery voltage of a battery connected to the TFC Shield


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

  • Battery Read block


Read the voltage of the battery connected to the TFC shield. The block output emits a value in the range 0.0 –1.0 to indicate the current voltage level of the battery as a percentage of an assumed 7.2 Volt battery.

During simulations without the hardware, this block emits zeroes.


Sample time

Specify how often the block reads the battery voltage level, in seconds.