Search found 30 matches

by ozcar
Sat Aug 22, 2020 11:09 pm
Forum: STM32F1 based boards
Topic: STM32F103C8T6 + neopixels
Replies: 9
Views: 973

Re: STM32F103C8T6 + neopixels

Have you tried to g**gle stm32 + neopixel + library One of the results: https://github.com/rogerclarkmelbourne/WS2812B_STM32_Libmaple yes i have downloaded this library before and it works, but unfortunatelly uses spi, which in my project is already used by nrf24l01 module. Both cannot work togethe...
by ozcar
Tue Aug 04, 2020 10:19 pm
Forum: General discussion
Topic: Changing PWM duty cycle on BluePill produces wrong output
Replies: 9
Views: 1386

Re: Changing PWM duty cycle on BluePill produces wrong output

I started with the example in the GitHub wiki, made the timer variable global, and used it to call setPWM in the loop: They say that great minds think alike – that is exactly what I tried. My equipment does not run to an AVOmeter, but I do have an old analog meter. With 5HZ, and 10% as in the examp...
by ozcar
Tue Aug 04, 2020 11:14 am
Forum: General discussion
Topic: Changing PWM duty cycle on BluePill produces wrong output
Replies: 9
Views: 1386

Re: Changing PWM duty cycle on BluePill produces wrong output

I tried it, repeatedly setting the frequency and duty cycle to the same value. If I happen to call setPWM() when the pulse is high, then it goes low for around 35 microseconds. It does not appear to disturb or reset the overall pulse though?? The time of this low glitch seems to be independent of th...
by ozcar
Tue Jul 14, 2020 7:09 am
Forum: General discussion
Topic: How to get pin number based on known timer and known channel?
Replies: 8
Views: 1403

Re: How to get pin number based on known timer and known channel?

Well, it should be only match because there is only one pin associated with certain channel. I did test the sketch with serial output, and it worked for various timers and channels. So, if you comment out the “finished = true” you still get the same pin? If I try it on a F103 blue pill board just f...
by ozcar
Tue Jul 14, 2020 3:09 am
Forum: General discussion
Topic: How to get pin number based on known timer and known channel?
Replies: 8
Views: 1403

Re: How to get pin number based on known timer and known channel?

Bakisha wrote:
Mon Jul 13, 2020 7:04 pm
I managed to get pin number by searching all pins for a match with timer and channel.
Perhaps I do not understand exactly what you need to do, but....

How do you know that the first match you get for timer and channel is the one you want?
by ozcar
Tue Jun 30, 2020 11:05 pm
Forum: General discussion
Topic: BARTH STG with STM32F091xC
Replies: 11
Views: 2267

Re: BARTH STG with STM32F091xC

There are a lot of pixel LED libraries out there, but as you can see from the thread that Ray pointed you to, they might require some degree of tinkering to get them to work. Of the two libraries mentioned in that thread, I think Roger's WS2818B library would be best for a small number of LEDs, but ...
by ozcar
Tue Jun 16, 2020 3:50 am
Forum: STM32F1 based boards
Topic: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE
Replies: 13
Views: 2996

Re: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE

What problem did you have with the ST core and the Adafruit library? fpiSTM said it works, but I have not tried it. I don't really know what's wrong with it, but no matter what i try to do it just doesn seem to light leds. I tried now using the ST core and the Adafruit library. I think that dependi...
by ozcar
Mon Jun 15, 2020 1:07 pm
Forum: STM32F1 based boards
Topic: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE
Replies: 13
Views: 2996

Re: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE

As I mentioned above, on SP2 you can only get max 18MHz, that is why the pulses are twice as long. Due to the unusual way SPI is used by the WS2812B library, the maximum speed would be 6MHz (and 12MHz on SPI1), but the LEDs are nowhere near as fast as that, and there is no problem using SPI2 provid...
by ozcar
Sat Jun 13, 2020 7:24 pm
Forum: STM32F1 based boards
Topic: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE
Replies: 13
Views: 2996

Re: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE

I found I was using the WS2812B library included with the core, instead of WS2812B_STM32_Libmaple-master, and it turns out they are not the same (your guess is better than mine why). The version in the core does not have those #defines depending F_CPU , it just assumes F_CPU is 72MHz, but since my F...
by ozcar
Sat Jun 13, 2020 7:17 am
Forum: STM32F1 based boards
Topic: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE
Replies: 13
Views: 2996

Re: Using STM32F103C8T6 PWM pin to drive ws2812b Neopixel Ring in arduino IDE

So, you are still using Roger's core and WS2812B library? I lifted up your code and tried it - I commented out the nRF24L01 and RF24 because I don't have those. When I run it, I have no LED string connected, but I can see output on SPI2 - PB15. However, the timing is not as expected. It is in the 1/...

Go to advanced search