Jon Freeman / Mbed 2 deprecated Alternator2020_06

Dependencies:   mbed BufferedSerial Servo2 PCT2075 I2CEeprom FastPWM

Embed: (wiki syntax)

« Back to documentation index

FieldControl Class Reference

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.

Definition at line 17 of file field.h.