Tomas McGuinness's Avatar

Tomas McGuinness

@tomasmcguinness.bsky.social

Software developer with an interest in DIY, smart home tech and home heating. I make videos on YouTube https://youtube.com/@tomasmcguinness and blog at tomasmcguinness.com

374 Followers  |  247 Following  |  1,114 Posts  |  Joined: 12.06.2023  |  2.1753

Latest posts by tomasmcguinness.bsky.social on Bluesky

Found this really good PDF on optimizing the nRF for long battery life in Matter devices. It includes a good explanation of Intermittent connected devices docs-be.nordicsemi.com/bundle/nwp_0...

08.08.2025 19:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Zigbee – Running Dual Temperature sensor on a ProMicroΒ nRF52840 I got back from my holidays today and found that my order of Promicro nRF52840 boards from Aliexpress had arrived! I was trying out these Promicro boards because the battery terminals are available via the header pins. The XIAO boards I was orignally hoping to use worked great, but the +/- battery terminals were underneath. I had a real go at…

In this post I tried to get my Zigbee sensor running on a new Pro Micro nRF52840 board, but had to admit defeat!

06.08.2025 06:15 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image Post image Post image

I think we have spuds!

05.08.2025 19:37 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

An alternative route would be to use Matter. This would avoid the Zigbee issue and allow me to use v3 of Nordic SDK.

05.08.2025 18:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’m starting to wonder if I shouldn’t try an ESP32 board for this. I really just wanted ten sensors up and running before Christmas. Perhaps my goal of designing my own PCB for this was too lofty??

05.08.2025 18:35 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Managed to flash some code onto these boards, but ended up needing my J-LINK. Turns out that I can’t use these boards with Nordic Connect. What a bloody mess.

05.08.2025 17:05 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

This got delivered today. It’s an ESP32 with POE support. Big bigger than I expected, but compact for what it is. I’m hoping the ESP Matter SDK will run on this.

05.08.2025 11:42 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

The alternative nRF52840 boards I ordered arrived whilst I was on holidays. Not as big as I thought they would be. Will try them out this week and fingers crossed they’ll serve as a viable replacement for the XIAO boards. The battery terminals are on the header pins, so I can socket mount these.

04.08.2025 13:23 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Stupid is as stupid does. β€œAlways and inevitably everyone underestimates the number of stupid individuals in circulation.”

03.08.2025 21:27 β€” πŸ‘ 43    πŸ” 0    πŸ’¬ 4    πŸ“Œ 0

The discovery aspect of my posts is something I’ve been trying. They aren’t the easiest to follow as I write them as I go as I go alone.

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

I can’t remember what level of detail I go into.

03.08.2025 10:10 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Depends. What are you trying to do? I would recommend Influx DB for better logging and interrogation/display.

03.08.2025 10:09 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Introducing and connecting my heat meter to Home Assistant
YouTube video by Tomas McGuinness Introducing and connecting my heat meter to Home Assistant

Mind you, I think I’ve done that. Introducing and connecting my heat meter to Home Assistant
youtu.be/0JyeLY9NURg

03.08.2025 10:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I’ve written a Python script that reads my heat meter via ModBus (over USB) and then publishes the readings via MQTT. I wonder if that would be a helpful YouTube video?

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

For MQTT, it’s straightforward. The payload will be JSON (probably) and you tell HA how to read it. You shouldn’t need SQL for anything in HA.

03.08.2025 10:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

🀣 I know the feeling.

03.08.2025 09:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
ESP32-POE - Open Source Hardware Board ESP32-POE IoT development board with 100Mb Ethernet, Power over Ethernet, WiFi, BLE, programmer

Ah, I see. The MQTT support is integrated. I figured it was just ModBus over TCP.

I found this little hoard: www.olimex.com/Products/IoT...

And also this thepihut.com/products/ard...

03.08.2025 09:55 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

You’ll need something to convert the ModBus into MQTT. I have used a standalone raspberry pi with a python script. I’d like to do a way with that and use something else. That DIN rail unit would replace the pi and the RS485 to USB converter.

03.08.2025 09:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Tell you what, Β£23 is cheap. The PoE support is amazing. Something like that would remove the need for a standalone controller. My controller could read the values directly….hmmmm

03.08.2025 09:43 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

ModBus over TCP by the looks of it. You’ll need another box to act as the controller. That little gizmo looks interesting! If that’s going into a consumer unit, you do need special Ethernet cable I think.

03.08.2025 09:39 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The baud I tested with is 9600. It might go faster. Not sure faster than once a second is useful though. Once I add the Matter code, I’ll have a better idea. Matter might be limited in how fast it can report,

03.08.2025 09:32 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I’m doing the same with my heat meter, an RPi sling under it with a python script reading the values and pushing to MQTT.

The sample code I’m using is reading once a second.

03.08.2025 09:31 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
ESP32 – Modbus interface with anΒ SDM120M In this post, I explore how to setup an SDM120M energy meter with an ESP32. The SDM120M is a DIN mounted energy monitor, which can work with currents up to 42A. My goal is to use one with my upcoming heat pump installation, as part of my monitoring plans. Ultimately, I want to add Matter smart home support for it, so I can use Matter for sending energy readings.

In this post I look at connecting an ESP32 to an SDM120M energy meter to read its values via Modbus.

03.08.2025 08:35 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0
Post image

Endianness is the bane of my life with low level programming! It’s amazing how much is just hidden under the surface with higher order languages. I’m glad I started my career with C programming. I think it’s given me a broader understanding.

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

I dropped an f-bomb in the first 30 seconds of one of my videos. Was eligible for monetisation. Didn’t think 7 seconds was a thing. Thanks!

29.07.2025 21:01 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

πŸ˜‚ I love hardware.

29.07.2025 20:59 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

That’s true of all developers.

28.07.2025 07:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

πŸ™‹ does anyone know about any interesting full-stack/frontend roles, which ideally would benefit from significant nuxt expertise?

asking on behalf of a very talented developer ...

27.07.2025 08:50 β€” πŸ‘ 24    πŸ” 5    πŸ’¬ 2    πŸ“Œ 0

Fuck my life. These idiots walk amongst us.

27.07.2025 15:41 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Hopefully it won’t be a 100 years before I retire πŸ˜‚πŸ˜‚πŸ˜‚

27.07.2025 15:40 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@tomasmcguinness is following 20 prominent accounts