Adapter for gang-flashing CB2S modules

A few weeks ago I needed to stock on smart power outlets for my lab. I ordered known WiFi-controlled outlets that have been known by me to contain esp8266, so that I could flash them with esphome. To my surprise, instead of a very well-known esp8266 module. They had some weird CB2S module from Tuya.

Well, shit happens. Seems that I’ve missed yet another round of cheap IoT modules. These have Beken BK7231N modules inside. And are somewhat supported by OpenSource software stack. So our options are: replace the module with an esp8266 one, like what this guy did or deal with it.

(more…)

Adding enclosure for Xiaomi Aqara light switches

There are some pretty good smart light switches called Xiaomi Aqara. It’s basically a light switch with a relay and Zigbee wireless interface inside. They are integrated with Xiaomi zigbee gateway and can be remotely controlled. Zigbee gateway uses them as a proxy in case the battery-powered sensor is not in the direct range. This post will be about adding a better wall-mount box for those little things.

(more…)

Getting rid of wireporn in the bathroom

I have four devices in my bathroom: electric razor, phs sanitary bins, trimmer for my beard and an electric toothbrush. Each of them comes with its own power brick and compete for a single 220v outlet. As a result I caught myself multiple times when at as one item of these is completely out of charge. Or, worse, the power bricks end up in a huge mess-o-wires you have to untangle. (like, the one you see on the left side of the photo below). Installing a glass direct shower can make the bathroom look more spacious and organized. And, since I deal with this in the morning when I’m in a rush to get myself out to work it’s even more annoying. At some moment I decided to fix that. I didn’t want to add more 220v outlets, since:

a). It’s quite difficult in that particular case
b). I didn’t want to keep all power bricks plugged all the time any way – I never really trust cheap power bricks and for a reason!
c). The total length of the wires gathering dust would re
main intact
d). I needed a shelf for these anyway 😉

Therefore,  armed with a 3d-printer or three d pens and aliexpress I decided to make it a bit different. The result you can see on the right half of the photo below. Build details follow.

Besides, if you liked this design, you can grab it on my thingiverse (link at the very bottom of this post).

(more…)

Cloning complex 2d shapes with inkscape, freecad and 3d-printer

This small tutorial will cover how to clone complex 2d parts with a flatbed scanner, inkscape and freecad. You may use this for any complex shapes that are too tough to measure using calipers. This technique can also be used to reverse-engineer complex PCB shapes to aid in creating custom enclosures. As a small example I’ll clone part of my archery fingertab.

 

(more…)

An EasyCAP Box with V-Slot mount

Okay, I admit, adding a webcam to watch how your print is doing in nothing new, but since I plan on hooking 4 cameras, that might be considered novel. Anyway, in the earlier post I described the analog camera modules I’ve found in the attic and added a nice 3d-printed camera mount, in this post I will describe the other hardware part of my capture setup. But before the lengthy details – here goes a test capture from one of the cameras.

As you see the quality is not of the best and high temperature in the printing chamber contributes a lot to the noises from the camera matrix.

(more…)