I'm new to Industruino, (great product though), I'm using it to recieve GPS strings from a Ublox6 via Serial1 Tx/Rx, D5/D10 assuming that is an appropriate way of doing so. I have done this with Arduino Uno but there are plenty of Libraries that make it a pretty easy task. Hopefully I'm not duplicating another question on here and I've read plenty of serial communication posts but I'm still having trouble wrapping my head around the Industruino Coding for Serial Communication and recieving a string. I'm wondering if anybody would be able to kickstart me in the right direction? Parsing will be the next step but just happy to start with recieving the GPS messages.
Hi, if you got it working with an Arduino UNO then i should be easy to port to Industruino D21G keeping this in mind:
- Serial output over USB is 'SerialUSB'
- D10/D5 is 'Serial1'
If you want to see raw output, you can use something like
if (Serial1.available()) SerialUSB.write(Serial1.read());
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!