RPICTlib
Version History
- V1.1.0
- Frequency Support.
- ADC Reference can now be set. (Needed for RPICT7V1 Version 4).
- Various code optimisation.
- CurrentNode now called SignalNode (We figured out this can equally measure Voltage as well).
- V1.0.1
- Modified timing control. Now uses better sync checks.
- Added support for computing Irms alone with PowerNode class. Was missing on previous version.
- mcp3208 now reading a bit faster. Using full bit banging now.
- V1.0.0
- Initial version
Usage Examples
Definition and initialisation
The library must called in the arduino sketch with the following include.
#include "RPICTlib.h"
Three compiler variable must also be defined.
uint8_t ADC_BITS = 10; uint16_t ADC_COUNTS (1 << ADC_BITS); uint16_t ADC_REF = 3300;
ADC_BITS is 10 for the RPICT board with attiny84 and 12 for the RPICT with mcp3208.
ADC_REF is either 3300 or 4096 depending on the board type.
There are fours classes to contruct computation nodes. These are
- SignalNode
- PowerNode
- SignalNode_mcp3208
- PowerNode_mcp3208