Category: Programming

  • What are JWT tokens? Modern authentication and authorization for microservices

    JSON Web Tokens, or JWT, are a great and modern way to handle User identity, authentication, and authorizations. All modern user management systems like Keycloak, AWS Cognito, or Auth0 are issuing JWT tokens! And remember, with microservices, session-based authentication and authorization is a no-go.

  • Can you sell Open-Source software?

    Many companies are afraid of Open-Source software. There are myths and misunderstandings. One of them is: can I sell open source (GPL, MIT, Apache License) to my clients? The answer is both yes and no. There is nothing that prohibits issuing an invoice for Open-Source software. However, license transfer can be tricky. You will learn…

  • How to use stepper motors with Arduino

    How to use stepper motors with Arduino

    Stepper motors are the workhorse of modern automation and mechatronics. You want something to more and move precisely how much wanted it to move? You use a stepper motor. This is why, we use steppers in cars, robots, all kinds of automation, 3D printers, CNC machines. You name it. The main difference between a stepper…

  • Artificial intelligence for developers – GitHub Copilot

    Artificial Intelligence, aka Skynet, is very often overhyped by companies and underhyped by developers (there is no AI, it’s just another IF in the code). It does not change the fact, that AI is used in more and more places. Just look at Tesla autonomous pilot. And for years you can hear that very soon…

  • GitHub Actions changes to fight cryptocurrency miners

    GitHub actions are a great CI/CD setup for every open-source project. Of course, as long, as the project is hosted on GitHub. It turned out, however, that cryptocurrency miners started to take advantage of that and propose abusive pull requests that were mining cryptos using GitHub computing power. This changed somehow. Yes, if you really,…

  • How to generate PPM signal with ESP32 and Arduino

    How to generate PPM signal with ESP32 and Arduino

    The PPM protocol for encoding Remote Control channel values is now a legacy. Still, it is widely accepted by different hardware and when tinkering with Arduino, remote control, and working on own accessories for flight controllers, PPM is still a valid option. A few years ago I presented a code that allows generating PPM stream…

  • ESP32, Arduino and Timer/Alerts

    Because of completely different architecture, ISR and Timer solutions known from other Arduino compatible platforms, especially AVR/ATmega does not work on ESP32. They don’t. At all. If you would like to port any code that uses timers from AVR Arduino to ESP32 Arduino, you would have to rewrite them completely. However, timers and alarms with…

  • ESP32 and multiple I2C buses

    One of the advantages of the ESP32 microcontrollers over the competitions is dual-core architecture and two I2C buses. Yes, the I2C bus allows connecting multiple slave devices to single pair of SCL SDA wires. As long as slave device addresses are unique, everything will work just fine: OLED display, LM75 temperature sensor, MPU6050 gyroscope. However,…

  • How to connect GPS to ESP32

    How to connect GPS to ESP32

    Thanks to a very versatile Input/Output matrix, it is quite simple to connect NMEA GPS modules to ESP32 MCUs. Not only ESP32 boards have 3 serial ports you can choose from, they can be assigned to almost any pin you want. In this example we will connect a popular Ublox NEO-M8N like Beitian BN-880 or…