Documente Academic
Documente Profesional
Documente Cultură
0
Revised 3/1/17
pH
EZO
Circuit
Accuracy +/ 0.002
Calibration 1, 2, 3 point
PATENT PROTECTED
Written by Jordan Press
Designed by Noah Press This is an evolving document, check back for updates.
This is sensitive electronic equipment. Get this device working in
a solderless breadboard first. Once this device has been soldered
it is no longer covered by our warranty.
F F
G G
H H
I I
J J
1 5 10 15 20 25 30
r 0.1
Table of contents
Circuit dimensions 4 Calibration theory 7
Power consumption 4 Power and data isolation 9
Absolute max ratings 4 Correct wiring 11
EZO TM circuit identification 5 Available data protocols 14
Operating principle 6
UART I2C
UART mode 16 I2C mode 39
Default state 17 Sending commands 40
Receiving data from device 18 Requesting data 41
Sending commands to device 19 Response codes 42
LED color definition 20 LED color definition 43
UART quick command page 21 I2C quick command page 44
LED control 22 LED control 45
Continuous reading mode 23 Taking reading 46
Single reading mode 24 Calibration 47
Calibration 25 Slope 48
Slope 26 Temperature compensation 49
Temperature compensation 27 Device information 50
Naming device 28 Reading device status 51
Device information 29 Sleep mode/low power 52
Response codes 30 Protocol lock 53
Reading device status 31 I2C address change 54
Sleep mode/low power 32 Factory reset 55
Change baud rate 33 Change to UART mode 56
Protocol lock 34 Manual switching to UART 57
Factory reset 35
Change to I2C mode 36
Manual switching to I2C 37
Circuit footprint 58
Datasheet change log 59
Warranty 60
13.97mm
(0.55)
20.16mm
(0.79)
10.8mm
5.8mm 8.38mm
(0.4)
(0.22) (0.32)
5.0 5.0
Silver wire
Junction
Silver chloride
Reference wire
14
F F
G G
H H
I I
J J
Cal,mid,n
1 5 10 15 20 25 30
1:00 2:00
1 2 3 4 5
F F
G G
Cal,low,n
J J
1 5 10 15 20 25 30
Where "n" is any floating point value that represents the calibration midpoint.
5. Do not pour the calibration solution back into the bottle.
1:00 2:00
1 2 3 4 5
1 5 10 15 20 25 30
A A
B B
C C
D D
E E
F F
G G
H H
I I
Cal,high,n
J J
1 5 10 15 20 25 30
1 5 10 15 20 25 30
A A
B B
C C
D D
E E
F F
G G
H H
I I
Cal,low,n
J J
1 5 10 15 20 25 30
1:00 2:00
1 2 3
A
B
C
D
E
1 5 10 15 20 25 30
A
B
C
D
E
4 5
F F
G G
H H
I I
J J
Cal,mid,n
1 5 10 15 20 25 30
3 into a cup
1 5 10
1:00 2:00
15 20 25
4
30
A
B
C
D
E
5
3. Let the probe sit in calibration solution untill readings stabalize (1:00 2:00).
F F
G G
H H
I I
Cal,high,n
J J
1 5 10 15 20 25 30
F F
G G
H H
I I
Cal,low,n
J J
1 5 10 15 20 25 30
1 5 10 15 20 25 30
A A
B B
C C
D D
E E
F F
G G
H H
I I
Cal,high,n
J J
1 5 10 15 20 25 30
1:00 2:00
1 2 3 4 5
When electrical noise is interfering with the pH readings it is common to see rapidly
fluctuating readings or readings that are consistently off. To verify that electrical noise is
causing inaccurate readings, place the pH probe in a cup of water by itself. The readings
should stabilize quickly, confirming that electrical noise was the issue.
Correct Incorrect
B B B B
C C C C
D D D D
E E E E
1 5 10 15 20 25 30 1 5 10 15 20 25 30
A A A A
F F F F
Correct Incorrect
B B B B
G G G G
C C C C
H H H H
D D D D
I I I I
E E E E
J J J J
1 5 10 15 20 25 30 1 5 10 15 20 25 30
F F F F
G G G G
H 1 5 10 15 20 25 H 30 H 1 5 10 15 20 25 H 30
A A A A
I I I I
B B B B
Basic EZO TM J
1 C
D
5 10 15 20 25 30
J
C
D
J
1 C
D
5 10 15 20 25 30
J
C
D
This technology works by using tiny transformers to induce the voltage across an air gap.
PCB layout requires special attention for EMI/EMC and RF Control, having proper ground
planes and keeping the capacitors as close to the chip as possible are crucial for proper
performance. The two data channels have a 4.7k pull up resistor on both the isolated
and non-isolated lines (R1, R2, R3, and R4) The output voltage is set using a voltage
divider (R5, R6, and R,7) this produces a voltage of 3.7V regardless of your input voltage.
Isolated ground is different from non-isolated ground, these two lines should not
be connected together.
ISO-VCC
VCC
ADM3260
VCC VCC
ISO-VCC
VDDP VDDISO ISO-VCC
VIN VISO R5 R7
HDR_TOP R2 4.7K R1 4.7K
VCC
VSEL
1.5K 1.5K
HDR_BTM
RX/SCL SCL2 SCL1 VCC
TX/SDA
NC SDA2 SDA1 RX/SCL
TX/SDA
GND
VCC NC NC NC
GND
C1
GNDP
0.1uf R6
GNDP GNDISO
GND 1.5K
GNDP GNDISO R4 4.7K
10uF
C5
Non-isolated Isolated
10uF
ISO-GND
GND
TX
RX
VCC
B B B B PWR
C C C C RX
D D D D TX
E E E E
Atlas
F F F F Scientific
G G G G TM
H H H H
I I I I
J J J J
1 5 15 15 20 1 5 15 15 20
Part # COM-104
Part # Part #
ISCCB USB-ISO
Incorrect wiring
Extended leads Sloppy setup Perfboards or Protoboards *Embedded into your device
A B C D E F G H I J
1 1
5 5
10 10
15 15
20 20
25 25
30 30
35 35
40 40
45 45
50 50
NEVER
55 55
use Perfboards *Only after you are familar
or Protoboards with EZO TM circuits operation
60 60
A B C D E F G H I J
1 5 10 15 20
A A
B B
C C
D D
E E
F F
G G
H H
I I
J J
1 5 15 15 20
1 5 10 15 20
A A
B B
C C
D D
E E
F F
G G
H H
I I
J J
1 5 15 15 20
Default
Baud 300
1,200
2,400
9,600 default
19,200
38,400
57,600
115,200 TX RX
RX
Data in RX TX
TX TX RX
Data out
CPU
Vcc 3.3V 5.5V
VCC
0V 0V
Data format
Reading pH Data type floating point
Units pH Decimal places 2
Encoding ASCII Smallest string 4 characters
Format string Largest string 399 characters
Terminator carriage return
Baud 9,600
Readings continuous
LED on
1,000 ms
Green Cyan
Standby Taking reading Transmitting
9,600 baud
(default)
TX RX
CPU
9.56 <cr>
Receiver
Sender
Advanced
ASCII: 9 . 5 6 <cr>
Hex: 39 2E 35 36 0D
Dec: 57 46 54 53 13
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
TX RX
CPU
Sleep <cr>
Sender
Receiver
Short
Advanced
ASCII: S l e e p <cr>
Hex: 53 6C 65 65 70 0D
Dec: 83 108 101 101 112 13
Short
19 Copyright Atlas Scientific LLC
r 0.1
LED color definition
LED ON
5V +2.2 mA
3.3V +0.6 mA
Example Response
L,1 <cr> *OK <cr>
L,1 L,0
Example Response
C,1 <cr> *OK <cr>
pH (1 sec) <cr>
pH (2 sec) <cr>
pH (n sec) <cr>
1,000 ms
Green Cyan
Standby Taking reading Transmitting
Example Response
R <cr> 9.56 <cr>
*OK <cr>
1,000 ms
Green Cyan
Standby Taking reading Transmitting
1,000 ms
Example Response
Cal,mid,7.00 <cr> *OK <cr>
*OK <cr>
Example Response
Slope,? <cr> ?Slope,99.7,100.3 <cr>
*OK <cr>
Response breakdown
?Slope, 99.7, 100.3
99.7% is how closely the 100.3% is how closely the
slope of the acid calibration slope of the base calibration
line matched the ideal matches the ideal pH
pH probe. probe.
Example Response
T,19.5 <cr> *OK <cr>
T,19.5 <cr>
8.82 8.91
Example Response
Name,zzt <cr> *OK <cr>
Name,zzt Name,?
Example Response
i <cr> ?i,pH,1.98 <cr>
*OK <cr>
Response breakdown
?i, pH, 1.98
Device Firmware
Example Response
R <cr> 9.56 <cr>
*OK <cr>
Example Response
Status <cr> ?Status,P,5.038 <cr>
*OK <cr>
Response breakdown
?Status, P, 5.038
Reason for restart Voltage at Vcc
Restart codes
P powered off
S software reset
B brown out
W watchdog
U unknown
Example Response
Sleep <cr> *SL
STANDBY SLEEP
5V 16 mA 1.16 mA
Sleep <cr>
Standby Sleep
16 mA 1.16 mA
RX TX
Command syntax
Baud,n <cr> change baud rate TX RX
Example ResponseCPU
Baud,38400 <cr> *OK <cr>
300
1200
2400
n= 9600 default
19200
38400
57600
115200
CPU
Command syntax
CPU
Locks device to UART mode.
Example Response
Plock,1 <cr> *OK <cr>
Plock,1 I2C,100
Short
Purple
Green
*OK <cr> Red
Cyanto I2C
cannot change Purple
cannot change to I2C
Changing
UART standby Command
Taking reading
*ER <cr> Changing
baud rate not understood baud rate
34 Copyright Atlas Scientific LLC
Short
r 0.1
Factory reset
Clears calibration
Command syntax LED on
"*OK" enabled
Example Response
Factory <cr> *OK <cr>
Factory <cr>
(reboot)
35
1,000 ms
Copyright Atlas Scientific LLC
1,000 ms r 0.1
Change to I2C mode
Command syntax Default I2C address 99 (0x63)
Example Response
I2C,100 <cr> *OK (reboot in I2C mode)
I2C,100
(reboot)
Green
Green
Green Cyan
Cyan
Blue P
*OK
UART
UART<cr>
standby
standby now
Taking in I reading
Taking
2
C mode
reading C
b
Example
Short
Wrong Example
Short
Disconnect RX line
4.7k resistor
VCC may be needed VCC
SDA
SDA SDA
SCL
SCL SCL
SDA
(TX)
SCL
(RX)
0V 0V
CPU
SDA
SCL
VCC
0V 0V
Data format
Reading pH Data type floating point
Units pH Decimal places 2
Encoding ASCII Smallest string 4 characters
Format string Largest string 399 characters
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SCL
Start I2C address Write Command (not case sensitive) Stop
VCC
99 (0x63) ASCII command string
0V 0V
Example
Start 99 (0x63) Write Sleep Stop
I2C address Command
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL SDA
CPU
Advanced
Address bits The entire command as ASCII with all arguments
SDA
A6 A5 A4 A3 A2 A1 A0 W ACK First letter of command ACK Last letter of command ACK
SCL
Start I2C address Read Response code Data string Null Stop
99 (0x63) 1 byte "9.65" Terminator
(Dec 0)
SDA
(TX)
SCL
(RX)
SCL SDA
CPU
209.6
Advanced
All bytes
Address bits N bytes of data after data are Null R = High
SDA
A6 A0 R ACK Response code ACK Data ACK Data N ACK Null ACK Null
SCL
1 57 46 54 53 0 = 9.65
Dec Dec
ASCII
Send
command
SDA
(TX)
SCL
(RX)
CPU
Processing delay
Receiving
data
LED ON
5V +2.2 mA
3.3V +0.6 mA
Command Function
Example Response
L,1 1 0
Wait 300ms
Dec Null
L,0 1 0
Wait 300ms Dec Null
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
L,1 L,0
R return 1 reading
Example Response
R 1 9.65 0
Wait 600ms Dec ASCII Null
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
Wait 600ms
Green Blue
Taking reading Transmitting Standby
Short
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
Example Response
Cal,mid,7.00 1 0
Wait 300ms Dec Null
Cal,low,4.00 1 0
Wait 300ms Dec Null
Cal,high,10.00 1 0
Wait 300ms Dec Null
Cal,clear 1 0
Wait 300ms Dec Null
1 ?Cal,2 0 or 1 ?Cal,3 0
Dec ASCII Null Dec ASCII Null
two point three point
Example Response
Slope,? 1 ?Slope,99.7,100.3 0
Wait 300ms Dec ASCII Null
Response breakdown
?Slope, 99.7, 100.3
99.7% is how closely the 100.3% is how closely the
slope of the acid calibration slope of the base calibration
line matched the ideal matches the ideal pH
pH probe. probe.
Example Response
T,19.5 1 0
Wait 300ms Dec Null
T,? 1 ?T,19.5 0
Wait 300ms Dec ASCII Null
T,19.5
8.82 8.91
i device information
Example Response
i 1 ?i,pH, 19.8 0
Wait 300ms Dec ASCII Null
Response breakdown
?i, pH, 1.98
Device Firmware
Example Response
Status 1 ?Status,P,5.038 0
Wait 300ms Dec ASCII Null
Response breakdown
?Status, P, 5.038
Reason for restart Voltage at Vcc
Restart codes
P powered off
S software reset
B brown out
W watchdog
U unknown
Example Response
Do not read status byte after
Sleep no response issuing sleep command.
STANDBY SLEEP
5V 16 mA 1.16 mA
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
SDA SCL
(RX)(TX) (RX)
SDA
(TX)
SCL
(RX)
Sleep
Standby Sleep
Example Response
Plock,1 1 0
Wait 300ms
Dec Null
Plock,0 1 0
Wait 300ms Dec Null
Plock,? 1 ?Plock,1 0
Wait 300ms Dec ASCII Null
SDA
(TX)
SDASCLSCL
(TX) (RX) (RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SDASCLSCL
(TX) (RX) (RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SDASCLSCL
(TX) (RX) (RX)
SDA
(TX)
SCL
(RX)
Example Response
I2C,100 device reboot
Warning!
Changing the I2C address will prevent
communication between the circuit and
the CPU, until the CPU is updated with
the new I2C address.
I2C,100
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
(reboot)
Example Response
Factory device reboot
Clears calibration
LED on
Response codes enabled
Factory
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
(reboot)
300
1200
2400
n= 9600
19200
38400
57600
115200
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
Serial,9600 (reboot)
Blue
Green GreenPurple
Changing toBlue
UART Purple
Red
Green
mode
I2C standby
Taking reading Taking reading
I2C standby
Changing Command
ChangingTaking reading C
I2C ID# I2not understood
C ID# not
Green
Wait for LED to change from Blue to Green
Blue
Taking reading
Disconnect ground (power off) Transmitting Standby
Reconnect all data and power
Example
Short
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
Wrong Example
Short
Disconnect RX line
SDA
(TX)
SCL
(RX)
SDA
(TX)
SCL
(RX)
17.78mm
(0.7)
5.0
2.54mm
(0.1)
17.78mm
(0.7)
Datasheet V 3.9
Revised calibration theory on pg. 7
Datasheet V 3.8
Revised entire datasheet
It is important for the embedded systems engineer to keep in mind that the following
activities will void the EZO class pH circuit warranty:
Running any code, that does not exclusively drive the EZO class pH circuit and
output its data in a serial string.
2. All Atlas Scientific devices have been designed to run indefinitely without
failure in the field.
3. All Atlas Scientific devices can be soldered into place, however you do so at your
own risk.
Atlas Scientific is simply stating that once the device is being used in your application,
Atlas Scientific can no longer take responsibility for the EZO class pH circuits continued
operation. This is because that would be equivalent to Atlas Scientific taking responsibility
over the correct operation of your entire device.