Skip to main content
4 votes
Accepted

How to ignore garbage values in serial communication between arduino and python

The effect that you see is type promotion, in the C++ standard called "integral promotion", which happens implicitly. Values of type char are cast to int. Commonly, and in your case too, the ...
the busybee's user avatar
  • 2,088
2 votes
Accepted

Reading serial data from Arduino in Python continually

I am puzzled why the Arduino code isn't simply stopping at "Serial.availableForWrite()" when I stop reading data on the Python side -- it keeps on running. This depends on the Arduino board ...
chrisl's user avatar
  • 16.3k
1 vote

Problems sending data to my Arduino from Python using pySerial

You didn't specify, what the problem actually is, but I already see an error, that is probably the problem here. You are sending the string "0" or the string "1" from python. This ...
chrisl's user avatar
  • 16.3k
1 vote

Micropython installation on Arduino nano

Welcome to Arduino StackExchange: Firstly your computer translates double dashes into single long dashes. the dashes should be double dashes (--) for options such as --offset, --port, etc. The ...
b1n3t's user avatar
  • 286

Only top scored, non community-wiki answers of a minimum length are eligible