2023-07-26 07:54 PM
Hi I am running WS2812 addressable LED on stm32 bluepill without any problem.
I have used SPI to generate data for WS2812 led strip data pin is connected to PA7 (MOSI) pin on bluepill. till now everything is working perfectly fine.
So I design a custom board for the above explain setup.
but on Custom board LED strip not working, code and wiring is same as bluepill but LED works with bluepill not with my custom PCB.
I also try to test if PA7 is healthy or not by blinking LED, and its fine when I connect led to PA7 its blinks without any problem..
please anywone siggest what will be the possible reason.
I am attaching the PCB schematic see if I missed any part which effect SPI .
Solved! Go to Solution.
2023-07-26 11:51 PM
thanks thanks you solved my big problem its working I applied gnd to the load capacitors and boom its working .
thanks again friend.
now new schematic look like this
2023-07-26 09:55 PM - edited 2023-07-26 09:59 PM
I don't know if this is the case, but I've seen some users mentioning having purchased non-original chips, which can cause adverse functioning than expected.
It seems to me that your schematic has no grounding on the crystal capacitors, I found a Bluepill schematic with the same fault:
https://stm32-base.org/assets/pdf/boards/original-schematic-STM32F103C8T6-Blue_Pill.pdf
I found a Bluepill schematic without this GND error:
http://land-boards.com/blwiki/index.php?title=STM32_Blue_Pill#Blue_Pill_Card_Schematic
2023-07-26 11:51 PM
2023-07-27 01:31 PM
Nice, check in the manuals how to configure the external oscillator, this 1M resistor may not be used.