Skip to main content

Posts

Planned Obsolescence

Came across this Reddit topic about planned obsolescence of consumer products. I am sure we are all acutely aware of how we are forced to upgrade our gadgets every few years, whether it is your phone, tablet or laptop. The batteries are intentionally made not replaceable, and the hardware are deliberately made not repairable. Even if you luck out on the hardware, the software moves so quickly that very soon, you will find that your old operating system no longer run the latest version of your favorite software. So you say, so what, I will just make do with the old version. But soon enough, the backend protocol will change so your old software is no longer able to connect. Time to upgrade.  But I found that in every day consumer products, stuff are deliberately made crappy so that you will have to upgrade once past the warranty period. Frequently it is not the entire product that is crappy, just a tiny part of it so once the weakest link fails, most people won't find it worth their...

ESP-07 flashing issue on PlatformIO and solution

Recently, I decided to port the ESPClock project to PlatformIO , and kept encountering an intermittent error during flashing:  A fatal error occurred: Timed out waiting for packet header Took me a long time to research the issue and making no headway,  until I stumbled upon this rare gem . The file I needed to modify is:   C:\Users\<Username>\.platformio\packages\tool-esptoolpy\esptool.py I changed the values to:  DEFAULT_TIMEOUT = 100  START_FLASH_TIMEOUT = 40  CHIP_ERASE_TIMEOUT = 240  MD5_TIMEOUT_PER_MB = 8  ERASE_REGION_TIMEOUT_PER_MB = 60  DEFAULT_SERIAL_WRITE_TIMEOUT = 20 Originally, DEFAULT_TIMEOUT was set to 10. That made flashing the code reliable, but flashing the filesystem was still problematic. After increasing the value all the way to 100, I never encountered the error again. ESPCLOCK1  /  ESPCLOCK2  /  ESPCLOCK3  /  ESPCLOCK4

Drivinator Direct Drive Mod for Ender 3

I recently tried printing and installing the Drivinator , which is a direct drive mod for the Creality Ender 3. It makes use of all existing parts, so there is nothing extra to purchase (the stepper motor wire needs to be lengthened, which is easy done by a little splicing; an even easier route is to purchase an extension cable online). It is also compatible with the FreeABL bed levelling mod. Besides FreeABL, this is easily the best mod I have installed for the Ender 3, well worth the 1 hour or so I spent on the job. This was the YouTube video which helped me install the mod: Where before the extruder would sometimes skip and grind under the Bowden tube setup, the extrusion after the upgrade is just smooth as butter. The extra weight on the print head also doesn't seem to affect print quality or speed. With the enhanced extrusion, I was now able to crank up the print speed. But at higher print speeds, I discovered sharp corners were showing signs of over extrusion, so I needed to...

Compiling Marlin 2.x for the Creality Ender 3 using PlatformIO

 I had previously modded my Ender 3 to use the FreeABL for auto bed-leveling. This requires compiling and uploading a custom version of Marlin firmware with  AUTO_BED_LEVELING_BILINEAR enabled. Since this takes quite a quite of extra storage, it requires  SLIM_LCD_MENUS to be enabled. This removes the function to configure E-steps from the control panel.  As mentioned in my previous post , setting the right E-steps value is one of the most important operation to perform when changing filament or print nozzle. As a result of enabling  SLIM_LCD_MENUS , I can only configure E-steps by hooking up the Ender 3 to my laptop and issuing raw G-codes. This was getting old pretty fast. So the other day, I started poking around to see if there is a way to fit both  AUTO_BED_LEVELING_BILINEAR  and  SLIM_LCD_MENUS  in the limited storage on the plain-vanilla Ender 3. After much research and tinkering, I am glad to report this is indeed possible. Here ar...

PC Logger: AutoIt3 script for PC activity monitoring

Due to COVID-19, the kids had to do online learning for a couple of months. Unfortunately, they were constantly tempted to play games or watch YouTube during class time. Sometimes they became so immersed that they missed lessons, or forget to complete assigned tasks. I tried various solutions, such as parental control software, or lock down the router. None of them worked for me. There were just too many things to configure. Furthermore, some potential avenues for distraction (eg. YouTube) might sometimes be necessary for schoolwork (eg. YouTube being used for information or research by the teacher). The solution I eventually settled upon turned out to be quite simple. I hacked together an AutoIt script that logs details about the active window (title and executable) to a Google form periodically. By looking at the logs from time-to-time, it gives me a pretty good picture of what they have been doing on their computers, and have a chat with them when things get out-of-hand. Github repo...

DIY Roomba Virtual Wall, Part 5

After using the DIY Roomba Virtual Walls for a week now, I found something interesting that is rarely mentioned by the folks who have made this. The only mention I could find is from this blog post : "After examining the original virtual wall, with a webcam, I was able to see that it emits infrared light from its top round transparent ring and from a small hole above the switches. The light coming from the top ring prevents the robot from colliding with the virtual wall , if it comes from its sides or from behind. The front hole emits light as a beam. This beam of light is directional and stops at the nearest obstacle, probably a real wall, preventing the robot from crossing it to the other side." Indeed, when using the DIY version, the first thing I noticed is that the unit has to be strategically placed because the Roomba will knock into it more often than expected.  So a more robust DIY version will need to have another IR LED pointing at some kind of conical reflector mo...