Kankun smart plug OpenWRT upgrade

During my cleanups with all IoTs devices, I wanted to disable Kankun reporting to company servers (I’ve moved everything to Tasmota and House Assistant – so I don’t want any third parties) and also it seems to be a good idea to also upgrade OpenWRT on it.

If you haven’t seen this type of smart plugs it’s a little nifty device. Comparing to recent Sonoff type smart plugs – that utilize esp8266 (that I like a lot and use with all type of other projects – but mostly ESP32 now) – this plug has Atheros AR9330 rev 1 chipset with full OpenWRT Linux on it. If you want to do more, than just on/off operations it’s just perfect device.

Continue Reading

PIDKiln v1.2 update

I’ve just created v1.1 release of PIDKiln, and bumped development version to v1.2.

Most significant change in release 1.1 are:

  • replaced MAX31855 library with another one – it’s much cleaner and easier to modify
  • much better MAX31855 error handling, both with thermocouple and MAX31855 itself
  • introduced network logging with syslog protocol – so you can watch all debug information on remote host
  • all logging settings are now in Preferences
  • compressed local JS, and created separate Preference setting to allow remote downloading of JS scripts (Internet connection required – recommended to use)

And I have also (after some 1.2 changes) first, real Kiln test run.

With two termocouples and power meters.

Source like always on GitHub.

Candle cnc 1.2b on Linux

If you would like to test latest (yet already quite old) Candle on Linux machine, you could face the same problems as I did – so few tips how to make it work.

I still think UGS platform is a better choice in many cases – but sometimes Candle may be necessity (I have found problem with UGS and Fusion 360 gcode files)..

Anyway, you may face this kind of compilation errors and configuration problems with latest 1.2b source code: Continue Reading

PIDKiln 0.9 – update

It’s time to make it look better, I don’t dare to say good :). So I’ve printed a case with all holes required, and now I’m soldering everything up.

I thought about creating dedicated PCB for it, but it probably would require double side one, and so far I’ve been only making one side PCB on my CNC mill. Other problem I’ve seen was the WiFi antenna on TTGO board. With single PCB for all components, It would be shielded either by PCB or LCD or wires. This board does not have external antenna connector (some other does). So I’ve decided I’ll put ESP32 board separately and at 90deg angle close to the plastic case. This way signal should be not blocked anyway. Continue Reading

PIDKiln v0.6 development – update

So far so good – most of the stuff is done. Currently I’m tuning PID usage, and what’s left is traversing program in time – but that’s easy.

To tune PID parameters and test it, you can use simple halogen light bulb (or car light bulb) connected with thermocouple. This is a good heat source to around 100C and it’s easy to see when it’s working 🙂

You just have to switch SSR to DC-DC one (for kiln you probably will use DC-AC). For easy testing I’ve prepared “Quick program” in LCD menu – where you can set one program step. Provide desire temperature, time and dwell – and you can run it.

How to charge your Xiaomi Mija M365 scooter from car or power bank.

Actually this is about making quick (as quick to build – not fast charging) car charger for you scooter, but there is nothing (except timeeeeee 😉 ) that forbids using it with QC/PD power banks or chargers – it will work, simply it will take ages to charge it.

It should also work for every other scooter (not just Xiaomi) – just check the voltage and current.

Continue Reading

Mavic Air universal battery charger – USB/car

A quick update to my previous article about DIY DJI Mavic Air battery charger. Recently I’ve found quite interesting board on AliExpress, that can be used as universal all-in-one charger.

So first of all, as a reminder, to charge Mavic Air battery we have to supply somewhere around 13,2V. This voltage is usually not available both on USB and in the car lighter socket. With USB we could have, with some new Power Delivery capable one, above 12V – but they are still quite rare and expensive (I’m talking about power banks – not chargers). In car usually we have 12,2-12,4V – when charging it can go higher, but directly on battery – it should not in lighter socket. Continue Reading

PIDKiln – my new controller for ceramic kiln

After some experience with controlling my ceramic kiln with Linux over cron scripts, I’ve moved to Chinese PC410 controller. But (probably) because it was knock off, it had removed plenty of useful features (you can read about it, in Polish here) I’ve decided to do my own controller.

PIDKiln v0.2 - screens
PIDKiln v0.2 - main screen

I’ve looked around Internet for existing solutions, and found one – interesting enough, but still lacking very important future for me – Internet connectivity. I need to be able to monitor my kiln overt network, see what’s going on and be able to turn it off.

So this is how it came to life my controller – based on ESP32 chip, feature rich PID controller for kiln, with network connectivity, local LCD display and all possible safety features I needed.

You can download project sources from github and build your own. All required information you will find there. Here I’ll show how to build it in step-by-step process.

What’s done already (updated 19.09.2019):

PIDKiln assembled – all components
  • All common procedures and functions for LCD, input (encoder) and Webserver
  • Program handling like upload, delete, show
  • Program loading to memory and full sanitization
  • Preference handling, information screen, and graphs for WWW a tiny for LCD 🙂
  • MAX31855 + thermocouple readout and handling

What needs to be done:

  • PID control – now work in progress
  • testing… testing… and 🙂