Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed BufferedSerial Servo2 PCT2075 I2CEeprom FastPWM
FieldControl Class Reference
Functions to control alternator field. More...
#include <field.h>
Detailed Description
Functions to control alternator field.
void set_pwm (double d) { Range 0.0 to 1.0 This PWM used to limit max duty ratio of alternator field energisation. With R25=33k and C4=100n controlling ramp input to CS pin of MCP1630 (not MCP1630V), ramp terminates fet 'on' pulse after a max of approx 980 us. With const int PWM_PERIOD_US = 2000 , duty ratio is thus limited to approx 50% max. This is about right when using 12V alternator on 24V systems A 1.225V reference (U7) is fed to the MCP1630 error amp which compares this to fed-back proportion of system voltage. This adjusts final PWM down to zero % as needed to maintain alternator output voltage.
Generated on Fri Jul 22 2022 15:22:19 by
1.7.2