6/3/2019
Diagram for UART connections to Arduino
#include
<SoftwareSerial.h>
#define
S11_TX 12
#define
S11_RX 11
SoftwareSerial s11
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[]
=
s11.write(co2Read, 8);
int
millisec
=
0;
while(s11.available()
delay(1);
millisec++;
=
SoftwareSerial(S11_TX, S11_RX);
{ 0xfe, 0x04, 0x00, 0x03, 0x00, 0x01, 0xd5,
<=
0) {
README.md
0xc5
};
> Wiring
7/12