Welcome to a new Voltlog, in this video I’m gonna show you how I built this project where an ESP32 based smart wristband allows me to track the progress of my 3D printer in real time. So I thought about how I could solve this problem and I came up with a project where I’m using a LILYGO T-Wristband which is basically an ESP32 development platform built into this smart bracelet form factor. The bracelet connects via Wifi to the local network where Octoprint runs and manages the 3d printer.
Author: voltlog
Designing A T10 LED Bulb With Constant Current Driver | Voltlog #319
Welcome to a new Voltlog, in this video I’m gonna walk you through the design process of this small but important piece of circuit which is a T10 LED based lamp. We’ll go through why I need a T10 LED lamp, why I made the various design choices and in the end we will test the resulting PCB to see if it functions according to our specs.
So I started thinking about designing my own T10 LED bulb. First I picked some high quality Cree LEDs that would fit the purpose. These have a forward voltage of 3V, they have a high CRI of over 95 and I can pick from a variety of output colors, after a bit of experimenting, I ended up going with 4000K which is this nice neutral white.
Next I had to figure out how to drive these at constant current and really here I needed to decide between a switch mode drive and a linear driver. A switch mode driver would be more efficient, generating less heat but it will need more parts, which would increase the cost and complexity so in the end I went with a linear driver, which is the AL5809, this is a nice two terminal device, it comes in a variety of current presets and you just place it in series with your LEDs.
There is one constraint though, it needs 2.5V over the LED string voltage to operate correctly. That means that with our 3V rated LEDs, we can place two of those in series, plus the driver, which raises the min voltage to 8.5V. It might be possible to add a third led on board to bring it up to 11.5V and it would still work in the car but installing that 3rd led would be difficult so I decided to stick to just 2 LEDs.
CH341A Programmer 3.3V Fix | Voltlog #318
Welcome to a new Voltlog, if you watched the previous mailbag video I showed getting this CH341 programmer tool for EEPROMS and FLASH chips and my viewers were quick to point out this actually has a design problem regarding the voltage levels it puts out. So it appears there is a 3.3V regulator on board for providing power to the eeprom or flash chip via the zif socket but the CH341 itself is running at 5V which means it outputs 5V signals on the SPI bus.
Someone has reverse engineered this little board and put together a schematic which clearly shows pin 28 VCC connected to 5V but I want to make sure nothing has changed and this still present. And checking with a multimeter, pin 28 is still connected to 5V USB.
Connecting a 3.3V rated part for programming might result in damaging that part. You might get lucky, you might have a chip that will tolerate that but in general that’s bad practice and so we’re going to attempt to fix it by simply cutting the 5V line going into the CH341 pin 28 and supplying it with 3.3V from the onboard regulator instead. And the datasheet also specifies that V3 pin 9 should be connected to VCC and 3.3V as well.
InTheMail | Voltlog #317
Welcome to a new InTheMail, the series that will touch both your passion for electronics and your bank account at the same time. We have a selection of different electronics related items in this mailbag video and I’m going to start with this 2.2 inch TFT panel which I got for the Gopher NPS1601 project, as you may know I am working together with other people to produce an open-source plug&play replacement control panel. This is a bit of a spoiler but something like this 2.2 inch panel is an option we are considering with the biggest decision factor being available space on the front panel, as you know the NPS1601 has quite a compact form factor and there are other things that need to fit in there like rotary encoders and output jacks.
This particular panel has the ILI9225 driver IC and apparently 176×220 pixels resolution. When I ordered this it was labeled differently with ILI9341 and 240×320 resolution so they must have made a mistake when shipping this to me. After a bit of googling, it appears there are indeed two variants of this module floating around, they look almost identical, same form factor but use different lcd panels. This is one of those situations where Murphy got me right when I needed to get this part faster and couldn’t wait for anymore delays. Luckily I have another order placed a few weeks after this one so I’ll wait and see how that one shows up.
LILYGO T-Wristband ESP32 Smart Watch Development Platform | Voltlog #316
Wearables have always been this cool niche of electronics, people have always been building electronic projects meant to be worn by the user and over the years we’ve seen a lot of nice ideas of watches and other types of bracelets but there’s always been the issue of the enclosure and form factor.
Most of these projects were only some stacked PCBs with no enclosure and those that had an enclosure were usually not easy to build with common tools. The 3D printing revolution kinda solved that but not entirely because 3d printing at that lower scale is difficult and results are often not waterproof or dustproof.
And here comes the gadget i want to show you today, this is smart bracelet, it’s called a T-Wristband from LILYGO and I somehow feel like this is the result of the smart bracelet boom we’ve had in the past years which pushed the industry forward and you can now get something like this manufactured for cheap.
This is based on the ESP32 Pico D4 so it has built-in Wifi and Bluetooth because of that. It’s got an IPS 0.96inch screen, an RTC for keeping the clock accurate, it’s the PCF8563. A touch button for user input with that special defined area moulded in the case, this is handled by a dedicated touch IC the TTP223. An inertial measurement unit the MPU9250 which combines an accelerometer, gyro and magnetometer. A built-in 80mAh lipo battery and a TP4054 charger. There is also a window for a heart rate sensor on the back but there isn’t one fitted So the specs are not bad at all considering the hardware there is a bunch of projects you can build on this hardware.
The Curious Case Of A Very Sensitive PIR Light | Voltlog #315
This is a portable PIR activated LED light, it ships with some double sided adhesive backing and it’s pretty convenient to use around the house or when going camping I quite like it. It works with 4 AAA batteries and personally I use this inside a wardrobe to help me find stuff. If positioned correctly it turns on as soon as I open the wardrobe door. Because I like it so much I decided to order another one to place in a different closet for the same purpose. I don’t know if I ordered from the same seller, probably not, I just went on Aliexpress, did a quick search and ordered another one.
And here it is, after a long wait it finally arrived, at first sight they look identical, apart from a minor difference in the LED output color but that’s to be expected because whatever they can find at the market that particular day right? But in practice I also noticed something different, the new one is much more sensitive in picking up movement, to the point where it turns on even if it’s behind a closet wall and I walk past by, or even behind a wall. I know it doesn’t make much sense, because these are supposed to be infrared sensors so they can’t pass through walls. But it must be bouncing the IR rays off the walls and it’s so sensitive that it is picking up those reflections, I would have no other explanation for this but if you do, let me know in the comments.
Identifying & Replacing A Fake FTDI FT232R Chip | Voltlog #314
Lately I’ve been getting a few of these serial interfaces from aliexpress, this is just a RS232 to TTL level converter while this one is a USB to RS485 interface and it’s great that we can buy these for cheap for we are getting exactly that, something cheap. This converter chip is likely not of the best quality and not to mention this FT232 chip is certainly not a genuine one.
There is nothing worse than having to deal with communication issues and debugging your tools instead of the actual project you are working on so I’ve decided to replace these chips with some genuine, good parts because the pcb and the rest of the circuit should be fine as long as we have a good conversion chip in there.
You might be wondering if there is any way to tell for sure that you’ve got an FTDI FT232R clone. There are at least 2 methods that I know you can use. First one is to install an older version of the driver which FTDI released in 2014, after plugging your fake FTDI depending on the driver version it will either disable the FT232 chip by writing something to it’s internal EEPROM or it will modify it so that it shows a custom alert message over serial instead of your actual data. I don’t like this method, because there is a better, simpler way, you can simply check for the serial number of the FT232 which you can get from the device manager under windows or by using the FT_Prog utility. If your serial number is A50285BI or 00000000 then you most certainly have a fake chip because that is a popular serial number which is written to fake chips. They don’t bother changing the serial number on the fakes, they mostly write the same number or set it to zero.
Choosing, Placing and Routing A Shunt Resistor | Voltlog #313
If you are looking for the correct way to select, place and route your current measuring shunt resistor on a PCB then stick around as I will be sharing a bunch of tips & tricks that I learned while designing and building my own boards over the past years.
A shunt resistor can be used in multiple ways but for the purpose of this video we are interested in using it for measuring current, this means it needs to be inserted in series with the device under test. It can either be inserted in a high side configuration as shown in this example but it can also be inserted in a low side configuration. These two typologies have their advantages and disadvantages.
Here is a side by side comparison, when used in a low side configuration there is a ground offset which depending on your application may or may not pose problems. When used in a high side configuration, you must use a differential input amplifier for sensing the voltage drop while in a low side configuration you can get away with single ended.
Another thing that might be important, in a high side configuration you have the ability to detect a short on the load, while on the low side configuration you can’t do that. Also in a low side sensing configuration, you are not able to sense and account for additional leakage currents through stray secondary paths from the load to ground. This list might not be complete, there might be other differences to consider, these are just the ones that I had to consider in my designs.
But let’s say you’ve figured out the topology you want to use and you are now faced with choosing your current shunt resistor. Can you just pick your typical metal film 1ohm resistor from your favorite distributor? You can, but you won’t get the best results. Probably the most important factor you want to consider when choosing your shunt resistor is the temperature coefficient or the temp co as engineers like to refer to it. This will tell you how much your resistor value is going to change with variations in temperature.
Every system you build will probably see a variation in temperature at board level and so if you calibrate your system to calculate the current for a given resistor value and that resistor value changes with temperature, you are going to introduce significant errors in your measurement.
Why Did I Get A New 3D Printer? Ender 3 Pro | Voltlog #312
If you would like to hear why I switched from the Creality CR10 to a Creality Ender 3 pro join me in this video, I’ll share the reasons for which I made the switch as well as talk about the improvements Creality made to the standard Ender 3 to become the Ender 3 pro. But first, let’s do the unboxing.
Inside the box everything is well packaged and protected with foam but compared to the CR10, the Ender 3 is less assembled to say so, there is more assembly work for us to do, if you are in a hurry that might be an issue but for me I actually like doing a bit of assembly work on a new gadget.
While doing the assembly I took a look at the supplied sd card and I also found an assembly video with english captions, it was well made and easy to follow. There are two extra steps I did during the assembly, #1 was to take off the power supply protection cover and made sure all connections are nice & tight and the voltage selection switch is in the right position #2, the lead screw comes already greased but in my experience with the CR10 that type of grease will attract dust on the lead screw which will turn into this black gunk over time. So I cleaned the existing grease with some isopropyl alcohol and a toothbrush and at the end I applied some dry PTFE lube to the lead screw which in my opinion is better suited for this application.
InTheMail | Voltlog #311
Welcome to a new InTheMail, the series that will touch both your passion for electronics and your bank account at the same time. We have a selection of different items in this mailbag video and before we get started I would like to mention that packages started flowing in around 1st of May and things are moving, certainly not as before but there is some movement at least and I hope you guys are benefiting from the same improvement where you are located.
I’m gonna start with this multi-functional charger from LiitoKala, it’s model number Lii-402 and I actually have another one of their chargers but it’s the model with an LCD. I’ve been using that one for the past few years, it’s been working great but I needed a second one to increase the number of cells I can charge at the same time. I picked a simpler model this time, with just some LED indicators, it’s good enough for me, I mostly just plug in the cells and let them sit in there for a few hours before I return and take them out so I don’t usually check the information on that screen anyway.
This model takes a micro usb input 5V 2A so those 10W can then be distributed as mentioned on the packaging, 0.5A times 4 or something in between if you charge less cells at the same time. It can charge Ni-MH, Li-ion, Li-Fe and the battery slots are universal, they can hold a bunch of different types of cells so it’s a pretty useful charger to have. I got this one from banggood because it was in the EU warehouse but you can probably get it cheaper if you are willing to wait 1-2 months for delivery from China.