Another day working a bit for my SA818 radio node project. Today I tried active cooling with a 5V fan driven from RPIs 5V rail and controlled from GPIOs with a MOSFET (2N7002).
Python: not enough values to unpack
While creating some code for the Arduino and C struct post, I ran into this issue “not enough values to unpack” and this has to do with Python’s struct format.
Arduino serial data transfer with C structs
While doing some tests with a 9-axis sensor I wnated to read all the values and send them all via an Arduino (or any other μ-controller) serial interface. You generate that data at point “A”, the sensor, and you want that data to arrive at point “B” with minimal delay, for example a computer software […]
Genetic algorithm mutation coded in Python
This example is adapted from Clinton Sheppard’s excellent book “Genetic Algorithms with Python“, a book that I encourage you to buy and read. The very simple example shows how easy is to design in Python a simple mutation algorithm that merges to the optimal solution in 24 iterations. The example below uses romanian language accents […]
KiCAD, Python and PyCharm
I am not a huge fan of KiCad. However, given the limited and abysmal options that we have for free EDA packages, KiCad is quite ok, although terribly flawed in some areas. Maybe the development team should focus on some simple functionalities like support for rounded traces, net group routing, zones, a simple way to […]
How to install Python 3.7 on Raspberry Pi
This short guide explains how to install Python version 3.7.0 on a Raspberry Pi running Raspbian. First, get rid of old versions: Ensure system is up to date: Install the dependencies needed for building the distribution: build-essential tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev Get the python src distribution: […]