EDA Display errors

Connection, ECG, EMG, EDA, etc.
Posts: 10
Joined: Mon Jul 20, 2015 3:39 pm

EDA Display errors

Postby Zeriscope » Thu Dec 31, 2015 3:08 pm

Our developer has found an issue with the available Java for displaying the EDA reading. The scaling that the code provides ranges from 0-1µS not the 1µS - ∞µS indicated in the EDA documentation.

Current code:

* Electrodermal Activity conversion.
* @param port
* the port where the <tt>raw</tt> value was read from.
* @param raw
* the value read.
* @return a value ranging from 0 and 1uS (micro Siemens)
public static double scaleEDA(final int port, final int raw) {
// need to round maximum value that otherwise is 1.05496875
final double result = raw * 1031.25 / 1000000;
return new BigDecimal(result).setScale(4, RoundingMode.HALF_UP)

Can someone provide code that reflects 1µS - ∞µS scaling?

Return to “Sensors”