Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Thanks, Luke. Indeed, Serial Inputs Basics was the foundation from which I wrote what I started with - looks like a lot more reading to do with Advanced! I have been using pyserial, but I tried your suggestion by transitioning to pySerialTransfer, using exactly the code in those examples (except the port # of course). After about 2sec, the Mega RX light flashes, but otherwise, I see no feedback on the python terminal; the error, nor the response received. I'm probably doing something wrong, but at the moment, at least pyserial gave some indication there was sending & rec'ving interspersed. Tx! Commented Apr 7, 2020 at 7:18
  • The example assumed the user was using a second, separate serial port on the Arduino for the Python comms while using Serial for debug prints. I updated the example code and should work flawlessly for you now! Commented Apr 7, 2020 at 18:25
  • Thanks - updated code based on your example, getting on the right path it seems, but still some issues. Updated question with new code. Commented Apr 7, 2020 at 23:39
  • I added some blinking of the LED on the board to determine that, despite the python terminal indicating it sent some text, the if statement never evaluates to true. Code updated to indicate what I've tested; in short, I never get to the blink(60; statement. Commented Apr 8, 2020 at 7:17
  • @DavidW See my edited answer for a working example that should work for your specific use-case. I successfully verified the exact code with Python 3.7 and one of my Megas. Commented Apr 8, 2020 at 8:01