Main Content
Battery Read
Read the battery voltage of a battery connected to the TFC Shield
Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-KL25Z Board add-on.
Library
Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield
Description
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.
Parameters
- Sample time
Specify how often the block reads the battery voltage level, in seconds.