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!
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
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)
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