Ivan Banha's Avatar

Ivan Banha

@banha.bsky.social

Software Engineer. I work with TypeScript, React, Node.js stack. Learn Golang and tinker with electronic and microcontrollers when have free time. Also, I like nature, πŸ—» mountains and picking mushrooms in a forest.

39 Followers  |  74 Following  |  46 Posts  |  Joined: 27.08.2023  |  2.3064

Latest posts by banha.bsky.social on Bluesky

Wow 😲

04.11.2025 18:34 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

What’s the use case of such setup?

06.10.2025 06:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
You will own NOTHING and be HAPPY! (SKG)
YouTube video by Jeff Geerling You will own NOTHING and be HAPPY! (SKG)

You'll own NOTHING and be HAPPY! That's what I've been hearing a lot, lately. Quick video: www.youtube.com/watch?v=rAsg...

01.07.2025 20:39 β€” πŸ‘ 158    πŸ” 46    πŸ’¬ 6    πŸ“Œ 5

1 + making tiny pet projects

05.05.2025 19:11 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Hey πŸ‘‹. I would like to clarify one thing about Core Time 2. Will it have barometer and compass as well as Core 2 Duo?

05.05.2025 07:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screw instead of a ranging sensor

A screw instead of a ranging sensor

Some time ago, I decided to buy and experiment with a Time-of-Flight (ToF) ranging sensor. I ordered it on AliExpress and ... received a screw instead of the sensor. πŸ˜… Never buy anything from the "HH HangHeng Electronics Store" store.
#scam #aliexpress

21.01.2025 07:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ubuntu 24.04 seems to be pretty stable.

I have AMD GPU and only Ubuntu (from relatively fresh distros)is supported by AMD’s official drivers.

24.11.2024 08:55 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

DDR3 πŸ€” It’s not that old πŸ˜„ I have an old laptop with DDR2. It still runs Debian perfectly with Home Assistant on it.

What’s the new purpose of that pc though?

23.11.2024 19:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Video thumbnail

For the first time, russians have attacked Ukraine with an intercontinental ballistic missile.

21.11.2024 11:31 β€” πŸ‘ 20    πŸ” 8    πŸ’¬ 0    πŸ“Œ 1

I believe you can assign static IPs for some of your devices on a router level. In my case, I use MikroTik router and my servers have assigned static IPs. So bulbs can't steal them.

Additionally, there is an option to assign IP for a device in ESP Home config. But I haven't tried it yet.

16.11.2024 16:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Video thumbnail

And the result πŸ˜„

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

If the config file is correct, the controller should connect to the Wi-Fi. All next updates will install as OTA. Now you can add your device to Home Assistant dashboard and create scripts and automations for it.

Moreover, there are other ways to control the device, such as #MQTT or via #HTTP.

15.11.2024 16:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Getting Started with ESPHome and Home Assistant Getting Started guide for installing ESPHome Dashboard as a Home Assistant add-on and creating a basic configuration.

Long story short.

The process of the first firmware is as follows:
1. Add a device to the dashboard and write basic config.
2. Compile the firmware and download its UF2 file.
4. Flash the file using ltchiptool.

Done! πŸ₯³

Guides:
esphome.io/guides/getti...
docs.libretiny.eu/docs/flashin...

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Then, install the initial firmware on the microcontroller. All further updates will be installed via OTA updates over Wi-Fi.

The documentation says that initial firmware can be flashed through a browser, but it didn't work for some reason. So I flashed it via the USB-TTL converter.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
GitHub - home-assistant/supervised-installer: Installer for a generic Linux system Installer for a generic Linux system. Contribute to home-assistant/supervised-installer development by creating an account on GitHub.

I chose option #2 because my 10-year-old Dell laptop doesn't have UEFI. However, its power is more than enough to run HAOS directly. Also, with turned off screen and unnecessary devices, it consumes only 10 watts!

Here is a description of how to install Supervised HAOS: github.com/home-assista...

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Below are some of the important details based on my experience.

There are several options to install HAOS:
1. Docker. Not suitable because add-ons won't work.
2. Supervised HAOS on #Debian (other distributions aren't supported).
3. HAOS as the main OS on a computer (UEFI required) or on VirtualBox.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
ltchiptool GUI manual - LibreTiny

Before installing the new firmware, you MUST back up the original firmware in case something goes wrong.
The firmware is compiled through the #ESPHome plugin.

The process is described here: docs.libretiny.eu/docs/flashin... docs.libretiny.eu/docs/flashin...

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
The module is prepared for flashing

The module is prepared for flashing

To flash the firmware, you need:
1. A soldering iron.
2. A laptop with #Windows.
3. USB-TTL converter based on #CH340G. Others may not work.
4. An app for flashing called ltchiptool.
5. Installed HAOS with the possibility to install add-ons.
6. Oscilloscope (optional) - just to see cool signals πŸ˜„.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

The rest of the pins are attached to the chip. I even managed to send a signal out of them using PlatformIO. I could not identify only a 2 or 3 pins. But I'll do that in the future.

Now it's time to flash the new firmware. Let's talk about required equipment.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

Now, some info about the module itself. It has 15 pins. The pins TP1 and TP2 are used for UART, TP3 and TP4 are used to power the module.

TP1: TX
TP2: RX
TP3: GND
TP4: +3.3V

TP12 - PWM. This pin controls current flow to the LED. It's named as PA14 in the config.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The only disadvantage is the need for a dedicated server with HAOS to control all devices. Luckily, there are many ways how and where to install the HAOS. Starting from installing it on an old laptop, virtual machine, Raspberry Pi or even running as a #Docker container.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
LibreTiny Platform Configuration for the LibreTiny platform for ESPHome.

Moreover, if you are using Home Assistant OS (HAOS), there is an add-on called #ESPHome. It allows connecting IoT devices to the #HAOS. In this case, all devices work within the local network. Therefore, there is no need for the internet connection to control devices.

esphome.io/components/l...

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Realtek AmebaZ - LibreTiny

There is an alternative Arduino compatible firmware made by #LibreTiny project. So, it's even possible to write own software for this chip using #PlatformIO.

Here is the link for the project: docs.libretiny.eu/docs/platfor...

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
The lamp's control unit with RTL8710BX microcontroller.

The lamp's control unit with RTL8710BX microcontroller.

So I decided to figure out if there is any alternative firmware which allows connecting the device to my own Home Assistant local server.

To achieve this, I had to disassemble the bulb and check what kind of microcontroller was used. Fortunately, I was lucky enough to find #Realtek #RTL8710BX

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

So I decided to sacrifice one bulb in the name of fun πŸ˜„ and research what are possible options to disconnect the device from the Internet.

Unfortunately, I could not find any useful info about the original firmware or about the built-in API, which could allow me to bypass TP-Link servers.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I don't really understand why manufactures require users to connect these devices to the internet and attach them to an account. Considering that, the Internet connection might be unstable or sometimes might not work at all. Therefore, a user just can't control the device anymore.

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

A few years ago, I bought two cheap smart bulbs. They can be controlled from a smartphone through Wi-Fi. However, there is a significant drawback: the bulbs can't be controlled if the Internet suddenly disappears.

Even though, a bulb and a smartphone are still connected to the same local network!

15.11.2024 16:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Smart lamp TP-Link Tapo

Smart lamp TP-Link Tapo

I've always been interested in #IoT, but never had enough time to look into the topic. And now the project I've been working on for more than two years is completed, which means I have some spare time. So I decided to dive into the IoT world and experiment with Smart Home and a bulb πŸ’‘. πŸ˜„

15.11.2024 16:32 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Post image

Also, I’ve got my new multimeter probes. On the left β€” old probes, on the right β€” new probes.

15.11.2024 13:29 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Package of Nucleo development board

Package of Nucleo development board

Nucleo development board

Nucleo development board

Look what I’ve got πŸ˜„

15.11.2024 13:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@banha is following 20 prominent accounts