How to install Home Assistant in Docker?

Home Assistant is a powerful open-source home automation platform that allows you to control smart devices, automate tasks, and monitor your home environment. Running Home Assistant in Docker on Linux provides flexibility, easy updates, and isolation from the host system. This guide walks you through installing Home Assistant in a Docker container on a Linux machine. Prerequisites Before you begin, ensure you have: How to install Docker? For detailed instructions and troubleshooting, see the official Read more…

How to use DigiTemp to set up USB Thermometer

DigiTemp is a lightweight solution for monitoring 1-Wire temperature sensors on Linux. It is one of many apps that let you read USB Thermometer sensor. By following these steps, you can set up DigiTemp on Debian, Ubuntu, or Raspberry Pi OS and automate data collection for long-term monitoring. Installation Ubuntu / Raspberry Pi OS / Debian Execution of this command will install three programs: into the /usr/bin/ directory. For usage with the USB Thermometer we Read more…

How to remove noise from accelerometer data

Do you have a problem with noisy data obtained from your accelerometer sensor? Learn how to remove noise from accelerometer in short practical example. You will understand digital filtering and learn how to make your measurements smoother. Digital Filters In general, we distinguish two kinds of digital filters FIR (filters with Finite Impulse Response ) and IIR (recurrence filters with Infinite Impulse Response). FIR filters are easier to implement so we try to use them Read more…

USB accelerometer – F.A.Q.

How to plot data from the accelerometer sensor? Arduino IDE (Windows / Linux) SerialPlot (Windows / Linux) How to read accelerometer data in Python? Source code (Linux) How to read accelerometer data in C ? Don’t worry, It will be answered soon! 😉 How to read serial data in MATLAB / OCTAVE? Don’t worry It will be answered soon! 😉 How to use SerialPlot? Don’t worry It will be answered soon! 😉

Six accelerometer sensor applications that you didn’t know

MEMS accelerometers are powerful tools which let you measure not only acceleration but much more. If you need to measure acceleration, mechanical vibrations or detect movement this post is for you! Here are some examples what you actually can measure with the accelerometer. VEHICLE DRIVER SAFETY MONITORS Linear acceleration measurement can be useful in the transportation area. Everyone can tell that traveling on a bumpy road makes the car break down faster. Imagine that you Read more…

How to configure Ubuntu to program STM32

OpenOCD installation The Open On-Chip Debugger (OpenOCD http://openocd.org/) aims to provide debugging, in-system programming and boundary-scan testing for embedded target devices. If you using Ubuntu or any Debian like OS, OpenOCD could be installed by running following command: sudo apt-get install openocd ARM toolchain installation Now we need compiler, linker and assembler (toolchain) for ARM Cortex architecture (https://launchpad.net/gcc-arm-embedded). sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa sudo apt-get update sudo apt-get install gcc-arm-embedded Eclipse First install Eclipse IDE (https://eclipse.org/). After installation run Eclipse Read more…

How to plot data from UART

Sometimes there is a need to visualize data from serial port in real time, like I had in my USB Accelerometer sensor. The goal can be reach hard way by writing your own software but there is no need to do so. Smart people already write many good and free solutions and in this post I want to show you how to use them in your electronic project. For these who want to code this Read more…

USB accelerometer sensor, tilt sensor

Nowadays everyone has accelerometer sensor in its own smartphone. It’s there for several reasons. First of all it’s used for detection of screen orientation relative to the gravity field. This is the sensor which gives your phone information when the screen should be switched from landscape mode to portrait. Beside this there are many other ideas how to use accelerometer. One of them is pedometer. An app or device which uses accelerometer to track your steps. Read more…

How to chose resistor for LED diode

LED diodes are non linear elements whom I-V characteristic depend from many external parameters such as temperature and manufacture. Mathematically I(U) dependence is described by Shockley diode equation. Unfortunately this exponential dependence, after adding resistor in series, becomes implicit function of current and supply voltage witch can be only solve numerically. That is why we have to simplify things for practical purposes. Here is useful table witch I use for fast choice of resistor for Read more…