Hello,
I am using version 1.11 and I am trying to do calibrations from the command line and I ran into a strange snag.
It appears that "cal v" dose not work correctly, or i am using it wrong.
When I try and calibrate I get a adc_voltage_gain of 0, 1 or sometimes even crazy negative and positive numbers.
Here is what I input once booted
-----> version <-----
version 1.11
-----> cal x <--------------------0 Volts Applied
dac_low_gain 186
dac_high_gain 21157
dac_offset 0
opamp_offset_trim 36
adc_current_offset -63
adc_current_gain 599
adc_voltage_offset -5
adc_voltage_gain 0
vc_ratio 40
raw_current_usage -57
raw_voltage -70
ok
-----> read <-----
read 1 0
-----> cal x <---------------------9.99 Volts Applied
dac_low_gain 186
dac_high_gain 21157
dac_offset 0
opamp_offset_trim 36
adc_current_offset -63
adc_current_gain 599
adc_voltage_offset -5
adc_voltage_gain 0
vc_ratio 40
raw_current_usage 146
raw_voltage 5247
-----> cal v 9990 <-----
ok
-----> cal x <-----
dac_low_gain 186
dac_high_gain 21157
dac_offset 0
opamp_offset_trim 36
adc_current_offset -63
adc_current_gain 599
adc_voltage_offset -5
adc_voltage_gain 1
vc_ratio 40
raw_current_usage 145
raw_voltage 5246
ok
-----> read <-----
read 123 10
I also tried editing the source code but I cant get it to build correctly, i'm new to psoc.
Image here
Dose anyone have any tips?
Thanks!