Blue Pill STM32 Clones Brown Out or Become Unresponsive

The Problem:  The STM32 Blue Pill sometimes dies for no apparent reason.  On the PSU, it’s pulling 30mA and then for now apparent reason, the current draw reduces to 10mA (for the power indicator LED, presumably) and the microcontroller appears dead.  It only seems to occur when powered from a power supply to the 5V … Read more

Trace Width vs Length Inductance Table for PCB Traces

I need to know the inductance of the traces I’m creating.  It’s too slow to use the inductance calculator at All About Circuits.   Unfortunately, the equation has any given variable on both the numerator and the denominator.  I refuse to invest the brainpower to develop a rule of thumb, so I’m resorting to a table.  … Read more

Microchip 25LC256 EEPROM on STM32 Blue Pill and Arduino

For the big, bad synth project, I needed an EEPROM.  I selected the Microchip 25LC256 from Digikey simply because it had excess capacity (256k) and was thru-hole.   (I always recommend this approach when jumping into a new arena of unpolished prototyping).  I had never worked with external EEPROM before.   It turns out that EEPROM is … Read more

Why Are All These Resistors Thru-Hole? Isn’t SMD Cooler?

SMD is cooler….when a machine does all the work. At the prototyping phase (and assuming you don’t have all the fancier tools specific to the tiny world of SMD), SMD parts take longer to solder, often require a heat gun to remove, and offer no convenient place to hook your oscilloscope probe to. Bodge wires … Read more

Serial USARTs On STM32 Blue Pill With Arduino Code in PlatformIO

Here’s the “Hello World” edition of getting access to USART2 and USART3 on an STM32 Blue Pill in PlatformIO using the Arduino framework. /* lib_deps = NONE # Using a library name ——– Platform.ini Settings———- [env:bluepill_f103c8] platform = ststm32 board = bluepill_f103c8 #board = bluepill_f103c8 framework = arduino upload_protocol = stlink lib_compat_mode = soft */ … Read more

Genuine STM32 Blue Pill vs CS32F103C8T6 Clone

I’m troubleshooting a synth design and looking at the data on the SPI bus.  I have 10 STM32 clones (CS32F103C8T6) of the STM32F103C8T6 around and decided to try them out since they have the correct USB resistor. I was getting the following error in PlatformIO. Warn : UNEXPECTED idcode: 0x2ba01477 To get the clone to … Read more

bCNC Safe Z

bCNC comes with a feature to move the spindle up to a safe z height.  If you right-click on the “Safe Z” button it looks like this. G90 G0Z(safe) The default is 3.  In my case, it was 3 millimeters.  I wouldn’t call that safe at all.  I use clamps that are much thicker/taller than … Read more

My Saga With PLCs – Part1

I didn’t learn PLCs in school.  My gig was Engineering Physics and if the homework didn’t use Calculus to think about the atomic level, I didn’t learn it.  Granted, I didn’t learn to use Calculus to think about the atomic level, either, but that’s another rant.  So, I’m learning PLCs.  Here are some thoughts for … Read more

PCB Routing Tip

This one is common sense.  I don’t have common sense so I had to learn it the hard way.  When routing tough boards, we have to push the tolerances of our clearances from the trace to the enemy pads.  I’ll define “enemy pads” as those pads we don’t want our current pad to touch.  When … Read more

Trump Screws Electronics Enthusiasts

This is not a political thing I’m doing. I have no dog in the hunt over gay rights or the upcoming Russian invasion. I’m just a bad maker and worse engineer. However, I just heard today on the Macrofab Podcast that my unpopulated PCB orders will face a new government tax of 25%. A kit … Read more