Wow π²
04.11.2025 18:34 β π 0 π 0 π¬ 0 π 0@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.
Wow π²
04.11.2025 18:34 β π 0 π 0 π¬ 0 π 0Whatβs the use case of such setup?
06.10.2025 06:06 β π 0 π 0 π¬ 0 π 0You'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 π 51 + making tiny pet projects
05.05.2025 19:11 β π 0 π 0 π¬ 1 π 0Hey π. 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 π 0A 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
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.
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?
For the first time, russians have attacked Ukraine with an intercontinental ballistic missile.
21.11.2024 11:31 β π 20 π 8 π¬ 0 π 1I 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.
And the result π
15.11.2024 16:32 β π 0 π 0 π¬ 0 π 0If 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.
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...
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.
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...
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.
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...
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 π.
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.
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.
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 π 0Moreover, 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...
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...
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
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.
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 π 0A 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!
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 π 0Also, 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 π 0Package of Nucleo development board
Nucleo development board
Look what Iβve got π
15.11.2024 13:17 β π 0 π 0 π¬ 0 π 0