Search found 784 matches

by OutoftheBOTS_
Tue Apr 28, 2020 9:03 pm
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 1383

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: 1383

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: 26
Views: 2516

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: 26
Views: 2516

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: 26
Views: 2516

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: 158
Views: 66253

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: 26
Views: 2516

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 ...
by OutoftheBOTS_
Sun Apr 26, 2020 6:39 am
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 1383

Re: help with WS2812B LED

The data (values of Red, green and blue for all LEDs) is sent via a pin where if it is high for a certain length of time followed by low for a certain length of time this will be seen as a binary 1 and if the pin is high for a different length of time followed by low for a different length of time i...
by OutoftheBOTS_
Sun Apr 26, 2020 3:43 am
Forum: General Discussion and Questions
Topic: help with WS2812B LED
Replies: 21
Views: 1383

Re: help with WS2812B LED

I have always been able to get any addressable RGB LED strip to work without needing a 3.3v to 5v level shifter but I haven't used every single LED strip ever made so some out there may have problems with 3.3v. Every single time I have had trouble with getting an addressable RGB LED strip to work it...
by OutoftheBOTS_
Fri Apr 24, 2020 8:26 am
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 158
Views: 66253

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

I wrote the code quite a while ago so without sitting down and reading the reference manual and looking at the code to remember what I did I couldn't be certain but that looks about right :) I got it running. ILIDriver now in micropython. But when I want to implement a ILI9341 grafic class, I' run ...