and get the docs and example code (also for javelin) for the StampPLC board.
This board utilizes a MAX1270.
The javelin example code has a read routine and conversion routines.
There appears to be an error in the PLC code for the javelin as it relates to selecting the ADC range. There is a set of variables for identifing the ADC mode. In the original code, the ADC_UP10 and ADC_BP10 are reversed. They should read as follows
static final int ADC_UP5 = 0; // unipolar, 0-5 volts
static final int ADC_BP5 = 1; // bipolar, +/- 5 volts
static final int ADC_UP10 = 2; // unipolar, 0-10 volts
static final int ADC_BP10 = 3; // bipolar, +/- 10 volts
static final int ADC_420 = 4;
Comments
http://forums.parallax.com/showthread.php?p=585808
You can send a private message to that member.
Also see
http://forums.parallax.com/showthread.php?p=508752
In one of the posts there is talk about a Nuts & Volts magazine that
explains javelin code regarding the max1270.
regards peter
http://www.parallax.com/detail.asp?product_id=30064
and get the docs and example code (also for javelin) for the StampPLC board.
This board utilizes a MAX1270.
The javelin example code has a read routine and conversion routines.
regards peter
static final int ADC_UP5 = 0; // unipolar, 0-5 volts
static final int ADC_BP5 = 1; // bipolar, +/- 5 volts
static final int ADC_UP10 = 2; // unipolar, 0-10 volts
static final int ADC_BP10 = 3; // bipolar, +/- 10 volts
static final int ADC_420 = 4;