Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Sending data from ChipKIT UNO32 to Python3 via serial interface

In many projects we want to have connection to PC. In most cases a serial interface works fine. Using it we can read data, send commands or simply debug program running on chip. Embedded programmers are looking for simple way controlling serial data flow. In many cases simple terminal is enough, but if you want to add some intelligence to program, then you need something more. One of great choices is Python. It is free, multiplatform tool that enables running programs using smart scripting language. Strong community has written tons of handy modules – libraries to do various tasks. One of these modules is called pyserial which allows accessing serial ports using simple functions. Pyserial is successfully used in many great projects so why not continue using it. Things changed… Continue reading