Due Projects, continued.
Correction:
The Due PWM gives us more usable precision than the PWM
in the AVR-CAN, not due to the counter register length (or
so I have been informed), but just due to the fact that the
CPU clock is almost 6 times faster in the DUE.
Thus, with a 14 kHz period PWM output, we get 6000 clock
counts in the Due, but we had only about 1024 in the
AVR-CAN, just because of the slower CPU clock.
----------
Goals of the Due Programming Projects:
1.Control the power supply to regulate its output voltage
and current (usually only one at a time). Thus takes
adjustment and experimenting with each unique set
of hardware. However, the main control functions
are similar for most systems: achieve very reliable Safety,
and maintain satisfactory control.
2. Use the PC and the Due's Programming Port to monitor
the control and charging process in real time, and
adjust parameters as needed for experimentation.
3. Use the Native USB port to the PC for detailed
logging of all the QC CAN messages, and the power
supply's operational data, for later analysis,
particularly of the fast occurring processes that
are essentially impossible to observe manually.
Use CAN-Do to capture, log, and graph the data.
4. Use at least one, perhaps many PWM outputs
as the primary control of the power supply
regulation, usually controlling one or more
high voltage, high current switches in the
power supply.
5. When not attached to a PC, optionally use
the Native USB Port in host mode to write the
log data to a file on an SD chip, or micro-SD chip,
or perhaps even a fast flash drive.
6. Support a local display and at least Start and
Stop buttons on the "face" of the mini-QC device.
7. Design and integrate an Emergency-Off system.
8. Package and provide for adequate cooling,
handling fault conditions, like over-temperature,
safely, reliably, and quickly.
9. Oh yes, and charge the various LEAF versions
reliably, safely, and dependably.
----------
Modify the CAN Project described earlier:
Send the Log data to the PC via the Native USB Port,
not the Programming USB Port.
----------
Additional Projects:
1. Reliable use of the Native USB Port to send data out to the PC.
Others have observed very infrequent unexplained loss of data.
Investigate and find a fix, maybe not sending using the Due library,
which normally uses SerialUSB.print.
2. Send 14 byte binary pseudo-CAN Messages to CAN-Do via the
Native USB port, and achieve error-free transmission at
at least 115200 baud, sending at least 5000 messages per second.
3. Support logging to a USB memory device, using the Native
USB Port in Host mide. Write CAN-Do compatible files.
4. Support a local display on the mini-QC, type yet to be
determined. I am investigating the ColdTears Electronics
color touch TFT displays, with sizes from 3.2 inches, 3.5, 4,
5, and 7 inches. The smaller are 480x320, and the two larger
are 800x480. CTE also has a display shield for these displays.