Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 to Arduino
#1
Hi. My first post on here.
 I am trying to send - receive Python3 <> Arduino.
I had this working with Python2.7 now would like to convert to Pyhon3.
python2.7 code that worked.
    ser.write('<')
    ser.write(RorD)
    ser.write('>')
python3 code
    ser.write(bytes(b'<'))
    ser.write(b'RorD')
    ser.write(bytes(b'>'))
I think the Arduino is now receiving b'<'
RorB is a int.

Arduino snip

char startMarker = '<';
char endMarker = '>';

How can I send just '<'
Thanks for any help.
Hope I used the python tag right.
Reply


Messages In This Thread
Python3 to Arduino - by holt24 - Oct-22-2016, 03:28 PM
RE: Python3 to Arduino - by metulburr - Oct-24-2016, 05:39 PM
RE: Python3 to Arduino - by holt24 - Oct-25-2016, 07:34 AM
RE: Python3 to Arduino - by sparkz_alot - Oct-25-2016, 01:53 PM
RE: Python3 to Arduino - by snippsat - Oct-25-2016, 02:32 PM
RE: Python3 to Arduino - by holt24 - Oct-25-2016, 09:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 5,048 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  show and storage real temperature data Arduino in Python3 linkxxx 0 1,901 Aug-21-2019, 04:07 PM
Last Post: linkxxx

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020