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...
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 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");...
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.
Need help?
Do you have a question about the SE-11 and is the answer not in the manual?
Questions and answers