Search found 847 matches

by OutoftheBOTS_
Wed Apr 29, 2020 12:25 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

Maybe the API for these addressable needs to be moved to the correct hardware class for the port becuase they are so hardware related e.g Good question... I can see good reasons for both approaches. Would you be interested in writing up your findings on that PR I linked to before (it's still not me...
by OutoftheBOTS_
Wed Apr 29, 2020 12:20 am
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 11669

Re: help with WS2812B LED

This is what I found so far with these addressable LEDS. You have to supply the LEDs with 5v but once you get correct timing then they are happy with 3.3v signals on the data pin. Yup, this has been my finding too. This is also temperature dependent -- I noticed that a micro:bit neopixel board (htt...
by OutoftheBOTS_
Tue Apr 28, 2020 10:45 pm
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

One difficulty with timers though is that now the API becomes a bit more complicated because it doesn't just work on any pin. So coming up with a Python API might have some challenges, but definitely not impossible. This is the same reason why defining a machine.PWM API for stm32 is tricky. Maybe t...
by OutoftheBOTS_
Tue Apr 28, 2020 9:03 pm
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 11669

Re: help with WS2812B LED

I would be interested to know if once you got the correct timings do you still need the voltage level shifter or will it work fine running the data pin at 3.3v No you will not need a voltage level shifter, but you have to connect you voltage supply to the VIN Pin which will supply 5V to your LED st...
by OutoftheBOTS_
Tue Apr 28, 2020 8:10 am
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 11669

Re: help with WS2812B LED

i made the led works, so i had a timing problems with the code. all i did is follow this code and changed the timing to one that worked with my LED. Thank you for the help here is the code i followed and all you need to change is line 13 to 16 and 24: https://gist.github.com/nevercast/9c48505cc6c56...
by OutoftheBOTS_
Tue Apr 28, 2020 6:42 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

One difficulty with timers though is that now the API becomes a bit more complicated because it doesn't just work on any pin. So coming up with a Python API might have some challenges, but definitely not impossible. This is the same reason why defining a machine.PWM API for stm32 is tricky. I think...
by OutoftheBOTS_
Tue Apr 28, 2020 6:12 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

I have neopixels driving very well using timers and interrupts. That's cool! Neopixel support for STM32 is a long outstanding item for MicroPython. But I think the OP was using ESP32? Also FYI you may be interested in https://github.com/micropython/micropython/pull/5318 (which adds an STM32 driver ...
by OutoftheBOTS_
Tue Apr 28, 2020 5:55 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

A quick google of micropython RMT neopixel yeilded this https://gist.github.com/nevercast/9c485 ... 4a22062795

It declares the timing at the top as constants but could easily be modified to accept timing parameters to be passed to it.
by OutoftheBOTS_
Sun Apr 26, 2020 11:26 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 307015

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

Ok 2 things

1. if you use CONST() for the values of the registers then it doesn't use ram, it works much like the #define in C

2. there is a viper mode that will run much faster than using the machine.mem8[] function
by OutoftheBOTS_
Sun Apr 26, 2020 9:39 am
Forum: Programs, Libraries and Tools
Topic: Can't get my NeoPixels to turn on
Replies: 27
Views: 17593

Re: Can't get my NeoPixels to turn on

Now here is my question. I understand how the length of the timing of both the high and low will govern whether a 1 or 0 is sent. Iam wondering if the same method I use for generating stepper motor pulses might be able to be used for generating the pulses for the NeoPixels. i.e you use a timer and ...