

Be sure to install pySerial, otherwise this will not work. While this example will acquire data for a specific duration of time, Python can be used to interface directly with a microcontroller for any number of applications. The code actually does not need to be modified to receive 16-bit values. This simple code will receive a single byte of data over a virtual serial port and save it to a file. For example, I am currently using Python to interface with a Bluetooth Low Energy breakout board ( buy one now at our store!). While the example presented here is specifically for saving raw data to a file (to be read in MATLAB), it can be used in any application. The Python code below will allow us to log/acquire the temperature of our oven over a set duration (a few minutes). The next step for our toaster oven is to see how well it can follow a temperature curve.

In my previous post I discussed using a thermistor for our toaster oven based reflow oven. How many times have you wanted to connect a microcontroller based project up to the computer to either save data or control something via a simple program?

While I am definitely not a Python expert, I thought it would still be worthwhile to write this quick post. Step by Step Data-Driven Talent Acquisition Sourcing and Lead Generation Attracting and connecting with top candidates Engaging and Interviewing Making final selections for the best candidates Hiring and onboarding your new talents Having a reliable source of data, that you can tweak and adjust according to your preferences, comes quite handy. It is VERY easy to interface with hardware using Python.
