Go Down

Topic: Arduino Serial Monitor (Read 544 times) previous topic - next topic


I'm using python, on OSX, to send the Arduino some simple characters that only get received
if the serial monitor window is open in the Arduino app.

import serial
ser = serial.Serial(port='/dev/tty.usbmodemfd541', baudrate=9600)


Is there any way around that so I don't have to leave the Arduino app running?

Many thanks,




I dont know anything about OSX (MAC)...

but perhaps its because the Arduino is resetting upon serial 'open' in your script.. and you are sending the data 'too' fast? (before the Arduino is fully booted?)

I have done 'similar' on a PC using PHP (Flash GUI/front end with WAMP server installed locally) to send some serial data to be parsed by the Arduino..

and I either had to pause the script a bit before I sent any serial data.. 'or' manually disable the REST with a resistor on the Aruino board.. so that it doesnt reset upon serial open/close..



Spot on.  time.sleep(2) after you open the serial port usually does the trick.


Go Up

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview