Arduino MKR WAN 1300 with SpecSensors (UART): digital data read problem

Hi everyone,

I have a question about the Arduino MKR WAN with the UART (TX, RX) port. I bought the "SpecSensors digital gas sensors IoT developer kit" and now I want to read the data with my MKR WAN 1300. The SpecSensor board has 4 pins (VCC, GND, RX, TX) and it should send the data via this UART port. Now when I want to read this data with my Arduino, nothing happens.

I connected it correctly: the picture is attached.

SpecSensors -> MKR WAN 1300

VCC -> VCC
GND -> GND
TX -> RX
RX -> TX

Maybe someone has the same issue or can solve this easily.

If someone could help me out or could give me an example sketch, I really would be thankful!

Thank you.

Regards

Mario

Can the sensor handle 3.3V, or does it need 5V logic?
But I'm having the same problem with an Honeywell HPMA115s0

the sensor only can handle 3.3V

I tried several basic "communication" codes but nothing will work. I need to solve that as fast as possible because I need the UART for my bachelor thesis and in 4 weeks I have to hand it out :smiley:

Hey, I haven't tried it yet, but I asked the same question here (MKRWAN 1300 not receiving uart - MKRWAN1300 - Arduino Forum)

And there someone gave an answer: "Pins 13 and 14 are mapped to Serial1, not Serial (that is USB).
So you are sending codes to USB and not to the sensor. "

Edit: I tested it now and it works. (just replace Serial with Serial1 in your code)

1 Like

Great.

Thank you very much! It wors now.

Hi, I'm trying to use a rs485 anemometer with a MKR 1300 Lora, but the sensor works at 4800 bps. Can I set the serial port 1 velocity at 4800? I cannot get readings of that sensor, but It's work fine with a Mega.
Thanks