Close

First code on GitHub, and the limits of circuit bending [solved]

A project log for Low-Cost Programmable Power Supply

Chinese "LM2596 DC/DC buck converter with voltmeter" + "some wires" + "Forth" = "programmable power supply"

thomasThomas 01/31/2017 at 06:274 Comments

The first working code is now on the GitHub develop branch.

The following features work:

When testing the code I noticed that the serial connection isn't always working reliably when I use the on-board LM317 power supply. I'll have to test if that's because of the very hacky Chinese-expert LED control without current limiting resistors, the "innovative" economization on the use of capacitors, or because of the rather poorly defined voltage threshold of the likewise Chinese CH340 USB-Serial chip I use for the very very hacky German single wire serial console in combination with all of the above.

I'll update this post as soon as I know the cause of the problem.

EDIT1: I tried an ARK3116 USB serial adapter: much better, very much better. Looking for that 10 years old mobile phone data cable in the basement is time well spent.

Lesson learned: if it works with a CH340 it works with about anything. If it doesn't work this doesn't mean much ;-)

EDIT2: the scope picture of my "multiplexed" serial interface doesn't look good: most likely I'm doing something wrong when changing the GPIO properties during LED MPX (which the CH340 isn't robust enough to handle). This will have to wait a bit, since for the next days I'll be on a business trip.

EDIT3: it's amazing what a small capacitor can do when it's no longer missing :-) I soldered a 100nF ceramics C between pin 2 of the LM317 and the adjacent ground. Now it works nicely.

Discussions

Eric Hertz wrote 02/05/2017 at 02:51 point

Shocking even something as "hackily-designed" as this can be purchased for so cheap... almost as shocking as the fact it'd be on the market in the first place. But, can't complain, what with its being recognizable parts instead of epoxy-blobs! Nice job fixing it up and making it even more useful.

  Are you sure? yes | no

Thomas wrote 02/05/2017 at 07:27 point

Thanks!
These guys spend a lot of time copying PCBs and BOMs. They even spend time figuring out how to lower the number of components, but almost always in the wrong places. It wouldn't take long to make this thing more reliable, more performant, more functional, or a combination of this without increasing the total production costs.

  Are you sure? yes | no

yongfeicao wrote 03/10/2017 at 15:20 point

I am a Chinese.All of these broads are made in China Shenzhen. Everyone in China can buy these on taobao(which is the largest online trading platform in China) .The people who designed the broad is not the professional electronic engineer.They are maybe just worker who worked for SMT factory. I think they will be very  happy if someone can help them Improve product quality.  

  Are you sure? yes | no

Thomas wrote 03/10/2017 at 18:13 point

Hi yongfeicao, thanks for your message! I've used taobao to identify some of those generic boards (most boards are also available abroad through AliExpress at sometimes significantly higher price).

It would be fun contributing to the improvement of these cheap boards, and it would be a win for everybody: better product for the end customer, a better margin for the manufacturer (at least initially), and more fun for the hobby electronics community. 

The only problem: I wouldn't know how to contact any of the manufacturers, or their electronics design engineers.

  Are you sure? yes | no