Download Print this page

Advertisement

Quick Links

SE-11 Development Kit Manual

Section 1: Learning About Your Development Kit

1.1 Connectors
There are four main connectors on the S11 Development Kit, each serving a different function.
1.1.1 Sensor Connectors
4-pin and 5-pin connectors to mount your S11 Sensor
4-pin Connector
a. Enable - Sensor Enable
b. DVCC - Digital Voltage Out
c. nRDY - Sensor Ready
d. COMSEL - UART/I
2
C Comm Select
1/12

Advertisement

loading
Need help?

Need help?

Do you have a question about the SE-11 and is the answer not in the manual?

Questions and answers

Summary of Contents for CO2 Meter SE-11

  • Page 1: Section 1: Learning About Your Development Kit

    SE-11 Development Kit Manual Section 1: Learning About Your Development Kit 1.1 Connectors There are four main connectors on the S11 Development Kit, each serving a different function. 1.1.1 Sensor Connectors 4-pin and 5-pin connectors to mount your S11 Sensor 4-pin Connector a.
  • Page 2 6/3/2019 5-pin Connector a. Ground b. V - Sensor Voltage Input c. V - Digital Input/Output Reference Voltage DDIO d. R D/SDA - Sensor UART Receiver and Sensor I C Data e. T D/SCL - Sensor UART Transmitter and Sensor I C Clock 1.1.2 USB Connector The Micro USB Connector allows you to connect your Development Kit to your PC and appears as an FTDI Cable.
  • Page 3 6/3/2019 README.md i. Ground ii. Enable iii. S11 Voltage Input iv. S11 DVCC v. S11 VDDIO vi. S11 nRDY vii. TX / SDA viii. COMSEL ix. RX / SCL 1.2 Switch Settings 1.2.1 Switch Functions 1: S11 RX Selector - Selects the source of transmit from USB or a microcontroller connected to the 10-pin Connector (Slide Up for USB and Slide Down for Microcontroller) 2: S11 TX Selector - Selects the source of the receiver from USB or a microcontroller connected to the 10-pin Connector (Slide Up for USB and Slide down for Microcontroller)
  • Page 4 6/3/2019 README.md 1.2.2 Typical Switch Settings To use via USB UART with GasLab or any other terminal application, keep all slide switch functions in the up position Simple Microcontroller UART To simply connect to a microcontroller via UART, slide switch functions 1 and 2 down, and leave the rest of the switch functions in the up position Simple Microcontroller I C with no Pull Up Circuit...
  • Page 5: Section 2: Connecting To Gaslab With Usb

    6/3/2019 README.md Full Microcontroller UART Support To attach a microcontroller that will control the S11 Sensor being integrated into a system, slide switch functions 1, 2, 5, and 6 to the down position, and slide switch functions 3 and 4 to the up position Section 2: Connecting to GasLab with USB 1.
  • Page 6: Section 3: Connecting To Arduino

    6/3/2019 README.md 3. Click the Connect Button and click Read CO2 to get readings Section 3: Connecting to Arduino 6/12...
  • Page 7 6/3/2019 README.md > Wiring Diagram for UART connections to Arduino #include <SoftwareSerial.h> #define S11_TX 12 #define S11_RX 11 SoftwareSerial s11 SoftwareSerial(S11_TX, S11_RX); void setup() { // put your setup code here, to run once: s11.begin(9600); Serial.begin(115200); void loop() { // put your main code here, to run repeatedly: byte co2Read[] { 0xfe, 0x04, 0x00, 0x03, 0x00, 0x01, 0xd5,...
  • Page 8 6/3/2019 README.md (millisec > 1500) break; delay(50); (s11.available() <= 0) { Serial.println("no data available"); return; s11ResponseSize s11.available(); byte s11Response[s11ResponseSize]; count while (count < s11ResponseSize) { s11Response[count] s11.read(); count++; (s11Response[3] << s11Response[4]; Serial.print("CO2 Concentration: "); Serial.print(co2); Serial.print("\n"); delay(2000); 8/12...
  • Page 9 6/3/2019 README.md > Wiring Diagram for I2C connections to Arduino #include <Wire.h> char FIND_ADDRESS 'F'; char READ_CO2 'R'; byte address 0x68; void setup() { // put your setup code here, to run once: Wire.begin(); Wire.setClock(10000); Serial.begin(115200); Serial.println("Type F to find all devices on I2C bus and type R to read CO2 from S-11");...
  • Page 10 6/3/2019 README.md delay(20); Wire.requestFrom(address, readCount); delay(10); nBytes Wire.available(); byte buff[nBytes]; while (Wire.peek() -1) { buff[i] Wire.read(); Serial.print(buff[i],HEX); Serial.print(" "); i++; //Serial.write(buff, nBytes); Serial.print('\n'); (buff[0] << buff[1]; Serial.print("CO2 Concentration: "); Serial.print(co2); Serial.print("\n"); void getAllAddress() { //Serial.println("Looking for addresses"); byte error, address; (address address <...
  • Page 11: Section 4: Connecting To Raspberry Pi

    6/3/2019 README.md Section 4: Connecting to Raspberry Pi > Wiring Diagram for UART connections to Raspberry Pi import serial import time import fcntl import binascii #for usb leave uncommented serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=1.5) #to usb the UART GPIO Pins, comment the above line and uncomment the line below #ser = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=1.5) ser.flush() ser.close()
  • Page 12 6/3/2019 README.md ser.open() ser.flush() ser.write("\xFE\x04\x00\x03\x00\x01\xD5\xC5") time.sleep(1.2) timeout=0 while ser.inWaiting() <= time.sleep(0.1) timeout timeout timeout > print("timed out with no data") break resp ser.read(ser.inWaiting()) ser.close() print("size of response: " str(len(resp))) len(resp) >= binascii.hexlify(bytearray(resp)) high ord(resp[3]) ord(resp[4]) (high*256) print(str(co2)) Contact us: We’re here to help! If the troubleshooting guide above doesn’t help you solving your problem or for more information, please contact us using the information below.