Atlas Scientific EZO-ORP Скачать руководство пользователя страница 39

I

2

C mode

To set your EZO

TM

 device into I

2

C mode click here

The I

2

C protocol is 

considerably more complex

 than the UART 

(RS–232) protocol. Atlas Scientific assumes the embedded 
systems engineer understands this protocol.

r 0.1

Settings that are retained if power is cut

Calibration
Change I

2

C address

Hardware switch to UART mode
LED control
Protocol lock
Software switch to UART mode

Find
Sleep mode

Settings that are 

NOT

 retained if power is cut

Settings that are retained if power is cut

Baud rate
Calibration
Continuous mode
Device name
Enable/disable response codes
Hardware switch to I

2

C mode

LED control
Protocol lock
Software switch to I

2

C mode

Find
Sleep mode

Settings that are 

NOT

 retained if power is cut

r 0.2

r 0.2

Содержание EZO-ORP

Страница 1: ...nt Calibration UART I2 C Data protocol 98 0x62 Default I2 C address 3 3V 5V Operating voltage ASCII Data format N A Temp compensation Reads ORP EZO ORP Embedded ORP Circuit V 4 8 Revised 8 13 19 This...

Страница 2: ...can be soldered at any time Once that decision has been made Atlas Scientific no longer assumes responsibility for the device s continued operation The embedded systems engineer is now the responsibl...

Страница 3: ...onse codes Reading device status Sleep mode low power Change baud rate Protocol lock Factory reset Change to I2 C mode Manual switching to I2 C I2 C mode Sending commands Requesting data Response code...

Страница 4: ...3 mA 13 3 mA ON OFF OFF 5V 3 3V Absolute max ratings MIN MAX TYP Parameter 65 C 125 C 85 C 25 C 40 C Storage temperature EZO ORP VCC Operational temperature EZO ORP 5V 5 5V 3 3V EZO TM circuit dimens...

Страница 5: ...can be positive or negative Just like a pH probe measures hydrogen ion activity in a liquid an ORP probe measures electron activity in a liquid The ORP readings represents how strongly electrons are...

Страница 6: ...ive metal it can silently observe the electron activity of the liquid without becoming apart of whatever reaction is occurring in the liquid Platinum tip Silver chloride Silver wire Reference wire KCL...

Страница 7: ...idly fluctuating readings or readings that are consistently off To verify that electrical noise is causing inaccurate readings place the ORP probe in a cup of water by itself The readings should stabi...

Страница 8: ...he 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 9V regardless of your input voltage Isolated ground is d...

Страница 9: ...I J A B C D E F G H I J 1 5 10 15 20 1 5 15 15 20 A B C D E F G H I J A B C D E F G H I J TM Atlas Scientific PWR RX TX 1 1 5 5 10 10 15 15 20 20 25 25 30 30 35 35 40 40 45 45 50 50 55 55 60 60 A A B...

Страница 10: ...10 15 20 1 5 15 15 20 A B C D E F G H I J A B C D E F G H I J NEVER EXTEND THE CABLE WITH CHEAP JUMPER WIRES DO NOT CUT THE PROBE CABLE WITHOUT REFERING TO THIS DOCUMENT 10 Copyright Atlas Scientific...

Страница 11: ...1 5 10 15 20 1 5 15 15 20 A B C D E F G H I J A B C D E F G H I J DO NOT MAKE YOUR OWN UNSHIELDED CABLES ONLY USE SHIELDED CABLES REFER TO THIS DOCUMENT 11 Copyright Atlas Scientific LLC...

Страница 12: ...de The most important part of calibration is watching the readings during the calibration process It s easiest to calibrate the device in its default state UART mode with continuous readings enabled S...

Страница 13: ...nsert the ORP probe directly into the 225mV calibration solution bottle and let the probe sit in the calibration solution until the readings stabilize small movement from one reading to the next is no...

Страница 14: ...Default state 9 600 Baud 1 000 ms Green Standby Cyan Taking reading Transmitting continuous 1 reading per second on Readings Speed LED UART mode 14 Copyright Atlas Scientific LLC...

Страница 15: ...SPI Analog RS 485 Mod Bus 4 20mA Available data protocols Unavailable data protocols Default r 0 1 15 Copyright Atlas Scientific LLC...

Страница 16: ...er is cut Baud rate Calibration Continuous mode Device name Enable disable response codes Hardware switch to I2 C mode LED control Protocol lock Software switch to I2 C mode Find Sleep mode Settings t...

Страница 17: ...ntrol 300 1 200 2 400 9 600 19 200 38 400 57 600 115 200 default 0V 0V VCC CPU TX RX RX TX TX RX Data type floating point Decimal places 1 Smallest string 2 characters Largest string 40 characters Rea...

Страница 18: ...r Hex Dec ASCII 32 50 2 0 6 9 30 48 39 57 2E 36 46 54 0D 13 CPU TX RX SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL 209 6 cr 9 600 baud default Receiver Advanced ASCII data str...

Страница 19: ...Sending commands to device CPU TX RX Short Short Sender Sleep cr Command not case sensitive ASCII data string Receiver Hex Dec ASCII 53 83 S l e e p 6C 108 101 101 112 65 65 70 0D 13 Advanced cr r 0...

Страница 20: ...Green UART standby Cyan Taking reading Purple Changing baud rate Red Command not understood White Find LED color definition r 0 1 LED ON 2 2 mA 0 6 mA 5V 3 3V 20 Copyright Atlas Scientific LLC...

Страница 21: ...formation n a i pg 30 change to I2 C mode not set I2C pg 37 enable disable LED enabled L pg 22 set show name of device not set Name pg 29 enable disable protocol lock disabled Plock pg 35 returns a si...

Страница 22: ...D control L 1 cr cr cr LED on L 0 LED off L LED state on off Command syntax default cr cr cr cr OK cr OK L 1 L 1 L 0 L 0 L Example Response cr cr cr L 1 or L 0 OK r 0 1 22 Copyright Atlas Scientific L...

Страница 23: ...L Find Find cr LED rapidly blinks white used to help find device Command syntax cr cr OK Find Example Response r 0 1 This command will disable continuous mode Send any character or command to terminat...

Страница 24: ...ous readings C continuous reading mode on off default Command syntax C 1 C 30 C 0 OK ORP 1 sec ORP 2 sec ORP n sec OK ORP 30 sec ORP 60 sec ORP 90 sec cr cr cr cr cr cr cr cr Example Response cr cr C...

Страница 25: ...Single reading mode 1 000 ms Green Standby Cyan Taking reading Transmitting R cr cr takes single reading Command syntax R 209 6 OK cr cr Example Response 800 ms r 0 1 25 Copyright Atlas Scientific LLC...

Страница 26: ...RP value Cal n cr calibrates the ORP circuit to a set value cr cr Cal clear Cal delete calibration data device calibrated Command syntax cr cr OK cr OK Cal 225 cr Cal clear Example Response cr cr Cal...

Страница 27: ...0 67 75 79 DONE cr Export cr Export cr Export cr Export cr Export 10 120 Disabling OK simplifies this process Export Example Response Responsebreakdown of strings to export Export strings can be up to...

Страница 28: ...Import 6F 6C 20 67 75 79 cr OK cr OK cr OK If one of the imported strings is not correctly entered the device will not accept the import respond with ER and reboot 10 120 1 2 3 4 5 6 7 8 9 10 10 120...

Страница 29: ...and syntax cr cr cr OK Name zzt Name Example Response _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1 6 2 7 3 8 4 9 5 10 11 12 13 14 15 16 n Up to 16 ASCII characters Name zzt OK cr cr OK OK cr cr Name Name zzt Nam...

Страница 30: ...Device information Responsebreakdown i Device ORP Firmware 1 97 i cr cr device information Command syntax i Example Response i ORP 1 97 OK cr cr r 0 1 30 Copyright Atlas Scientific LLC...

Страница 31: ...cannot be disabled under volt VCC 3 1V reset boot up complete ready entering sleep mode wake up OV UV RS RE SL WA 209 6 OK 209 6 OK 1 cr cr cr enable response OK 0 disable response OK response on off...

Страница 32: ...brown out watchdog unknown S B W U Status Reason for restart P Voltage at Vcc 5 038 Responsebreakdown Status cr Command syntax Example Response Status P 5 038 OK cr cr voltage at Vcc pin and reason fo...

Страница 33: ...device STANDBY SLEEP 16 mA 1 16 mA 0 995 mA 13 9 mA 5V 3 3V Sleep cr Sleep cr Command syntax enter sleep mode low power Sleep 1 16 mA Standby 16 mA r 0 1 Example Response wakes up device Sleep Any co...

Страница 34: ...dby Cyan Taking reading Purple Changing baud rate Red Command not understood White Find OK cr reboot Baud n cr Command syntax change baud rate n Example Response OK Baud 38400 Baud cr cr cr Baud 38400...

Страница 35: ...d rate Red Command not understood White Find OK cr ER cr Short Short cannot change to I2 C OK OK Plock 1 Plock 0 or Plock 1 cr cr cr enable Plock Plock 0 disable Plock Plock Plock on off Command synta...

Страница 36: ...ration LED on OK enabled 1 000 ms Factory cr RS cr OK cr RE cr 1 000 ms reboot Factory cr Command syntax Example Response OK enable factory reset Factory cr cr Baud rate will not change r 0 1 36 Copyr...

Страница 37: ...aking reading Pur Chan baud OK cr nowin I2 Cmode Green Blue I2C n cr Command syntax Example Wrong example Response Response OK reboot in I2 C mode ER n 127 sets I2 C address and reboots into I2 C mode...

Страница 38: ...D Confirm RX is disconnected Connect ground power on Wait for LED to change from Green to Blue Disconnect ground power off Reconnect all data and power CPU TX RX Short Short Wrong Example Example Disc...

Страница 39: ...cut Calibration Change I2 C address Hardware switch to UART mode LED control Protocol lock Software switch to UART mode Find Sleep mode Settings that are NOT retained if power is cut Settings that are...

Страница 40: ...sistor may be needed 0V 0V VCC CPU SCL SDA SCL SDA VCC VCC SDA SCL SCL SDA SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SCL Data format Data type floating point Decimal places 1 Smallest string 2 charact...

Страница 41: ...62 Stop Command Sleep Sending commands to device A6 SDA Start Stop SCL A5 A4 A3 A2 A1 A0 W ACK ACK ACK First letter of command Last letter of command The entire command as ASCII with all arguments Add...

Страница 42: ...l A6 A0 SDA SCL R ACK ACK ACK N bytes of data All bytes after data are Null Address bits ACK ACK NACK Response code Data Data N Null Null Start Stop R High Requesting data from device 209 6 1 0 ASCII...

Страница 43: ...lly Reading back the response code is completely optional and is not required for normal operation Example If there is no processing delay or the processing delay is too short the response code will a...

Страница 44: ...ading Purple Changing I2 C address Red Command not understood White Find SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL LED color definition r 0 1 LED ON 5V 3 3V 2 2 mA 0 6 mA 4...

Страница 45: ...nking white LED Find pg 47 device information i pg 52 change I2 C address I2C pg 56 enable disable LED L pg 46 enable disable protocol lock Plock pg 55 returns a single reading R pg 48 enter sleep mod...

Страница 46: ...l 1 Dec 0 Null SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL L 1 LED on L 0 LED off L LED state on off Command syntax default L 1 L 0 L 1 L 0 L Example Response 300ms processing delay or Wai...

Страница 47: ...pidly blinks white used to help find device Command syntax Find Example Response r 0 1 This command will disable continuous mode Send any character or command to terminate find 300ms processing delay...

Страница 48: ...Standby Green Taking reading Short SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL Wait 900ms Wait 900ms R return 1 reading Command syntax R Example Response 900ms...

Страница 49: ...ssing delay Wait 300ms Wait 300ms Wait 900ms Calibration SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL 209 6 mV 225 mV Cal 225 Cal n calibrates the ORP circuit to a set value Cal clear Cal d...

Страница 50: ...calibration string info Command syntax 7 more 1 of 10 Wait 300ms 59 6F 75 20 61 72 1 ASCII Dec 0 Null Export 2 of 10 Wait 300ms 65 20 61 20 63 6F 1 ASCII Dec 0 Null Export 10 of 10 Wait 300ms 6F 6C 20...

Страница 51: ...ill not accept the import and reboot 10 120 1 2 3 4 5 6 7 8 9 10 10 120 1 2 3 4 5 6 7 8 9 10 10 120 1 2 3 4 5 6 7 8 9 10 SDA TX RX SCL MCU SDA SCL SDA TX RX SCL SDA TX RX SCL MCU SDA SCL MCU SCA SCL 1...

Страница 52: ...rmation Wait 300ms i device information Command syntax i Example Response 300ms processing delay i ORP 19 7 1 ASCII Dec 0 Null Responsebreakdown i Device ORP Firmware 1 97 r 0 1 52 Copyright Atlas Sci...

Страница 53: ...rt Command syntax Status Example Response 300ms processing delay Status P 5 038 1 ASCII Dec 0 Null Restart codes P powered off software reset brown out watchdog unknown S B W U Status Reason for resta...

Страница 54: ...power Command syntax Sleep Example Response no response wakes up device Any command Send any character or command to awaken device SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL Sleep Sleep S...

Страница 55: ...Plock Example Response 300ms processing delay Wait 300ms Wait 300ms Wait 300ms Locks device to I2 C mode Short SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL Short SDA TX RX SCL SDA TX RX SCL SDA TX RX SC...

Страница 56: ...ple Response 300ms processing delay I2C 100 SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL reboot r 0 2 n any number 1 127 Changing the I2 C address will prevent communication between the circuit and the C...

Страница 57: ...y device reboot Example Response Factory SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL reboot I2 C address will not change Clears calibration LED on Response codes enabled r 0 2 Factory reset will not tak...

Страница 58: ...en Taking reading Purple Changing I2 C address Red Command not understood White Find SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL SDA TX RX SCL Blue I2 C standby Green Taking reading SDA TX...

Страница 59: ...TX RX SCL Manual switching to UART Make sure Plock is set to 0 Disconnect ground power off Disconnect TX and RX Connect TX to PGND Confirm RX is disconnected Connect ground power on Wait for LED to ch...

Страница 60: ...on header 2Place a 3 position header at both top and bottom of the 8 position 2 54mm 0 1 17 78mm 0 7 3 Delete the 8 position header The two 3 position headers are now 17 78mm 0 7 apart from each other...

Страница 61: ...sheet V 4 3 Revised isolation schematic on pg 10 Datasheet V 4 4 Revised calibration theory on page 12 and added more information on the Export calibration and Import calibration commands Datasheet V...

Страница 62: ...Datasheet V 3 6 Datasheet V 3 7 Added new commands Find pages 23 UART 46 I2 C Export Import calibration pages 27 UART 49 I2 C Added new feature to continous mode C n pg 24 Revised Plock pages to show...

Страница 63: ...April 26 2016 Fixed bug where EEPROM would get erased if the circuit lost power 900ms into startup V1 97 EEPROM Oct 10 2016 Fixed bug in the cal clear command improves how it calculates the ORP Added...

Страница 64: ...onents If the EZO class ORP circuit is being connected to a microcontroller the microcontroller must be running code that has been designed to drive the EZO class ORP circuit exclusively and output th...

Страница 65: ...on Atlas Scientific can no longer take responsibility for the EZO class ORP circuits continued operation This is because that would be equivalent to Atlas Scientific taking responsibility over the cor...

Отзывы: