-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RGB plugin & WS2812 #67
Comments
Good morning, @terjeio, I still haven't been able to get it to work. |
See this comment - can you provide the code? |
Good morning Terjeio, I tested with a strip of rgb leds that only have one signal pin and it would be good to modify the plugin to work with those rgb leds because they only work with a signal pin and we save pins that can be used for other functions, also note that when adding the plugin fans to choose the 4 gives an error and only shows 2 in io sender configuration here I send you the code with the tests I'm doing because I plan to make a pcb that has several inputs and outputs for certain functions thanks .... |
I only need the rgb.c file not the whole project...
Compile time error? Which? With |
What is your $pins output (for the aux out pins)?
What is that supposed to do?
Spindle sync is not implemented for the RP2040 and I have no plans for adding it since the processor does not have a floating point unit (FPU). |
Good day Terjeio, the fans are already working .... and aux outputs, the rgb plugin still can not make it work .... |
Again, what is your $pins output (for the aux out pins)? |
Good morning Terjeio, this is the configuration that I have. |
I have modified and renamed rgb.c as my_plugin.c for you, it outputs pulses on pin 16 so it might work: I leave it to you to debug, if required, as I do not have a WS2812 at hand for testing. Configure as for the first test I made for you. |
good morning terjeio, tonight I'll try it and let you know thank you very much. |
Good evening terjeio, I tell you that I installed the prugin and it works fine but for some reason when I restore the driver with $rst=* it keeps thinking and it crashes I will check and let you know .... |
Good day terjeio, I downloaded your new code but I do not understand how this new rgb plugin works, how to configure a specific pin output led.... stay tuned thanks |
Add to the map file: The RGB plugin uses Marlin style M150 command to control the LEDs. Note that for the RP2040 a free PIO state machine is required which may not be available. And I just updated the plugin - I forgot to do that earlier - after a core change. |
I am more confused, because I have already added #define NEOPIXELS_PIN 16 to the map |
M150 returns an error? |
good morning terjeio, I do not understand what you mean rp2040 pio, and I get this error : error:20 - Unsupported or invalid g-code command found in block. |
RGB plugin (my_plugin.c) is not compiled in? You have to add it to the build. If compiled in and showing up in the |
Good morning terjeio, I made it "Add my_plugin.c to build" OFF and |
PIO state machines are used to handle step timings etc. and there are eight of them. Driving neopixels requires one and if none is available the driver code is not activated. The number of state machines used is dependent on board configuration, e.g. the SKR Pico configuration uses one for each axis and may thus run out of free state machines leaving none for the neopixel code. Does the RGB plugin show up in the |
shows nothing $I... |
The controller is dead and does not respond to any commands? |
the controller responds with the $i command, it shows the firmware version grbl etc, but with the M150 command it shows nothing, it connects well with iosender, but does not connect with candle and lasergrbl.... thanks for your attention |
If M150 does not respond with anything then your controller has crashed? No commands are accepted after it? |
Good morning, it does not show anything with the M150 command, it does not turn on the rgb led.... but the controller works fine in iosender moves the motors and in $i shows all the firmware information, does not show anything of the rgb plugin as if it were not attentive. |
M150 should generate an error if the plugin is not activated - here is my
Note that the RGB plugin is a new one, and it has a setting for the LED strip length - $536. This should default to 1 - check that it is not set to 0. If a valid M150 command is issued, e.g. Why Candle and Lasergrbl does not comuunicate could be due to not setting the DTR handshake signal correctly on connect. Both communicate with some other grblHAL controllers such as STM32 Nucleo based or ESP32, but not the Teensy 4 (iMXRT1062). Differences in the USB stack? |
for some reason it was at zero, now the LED is blue, |
You mean the words/parameters that can be used by M150? Or how the machine state can be output to the LEDs? |
good morning tejeio... yes sir, to send the status of the machine to the leds.... |
Follow the second link in my previous comment to find one implementation. You may also write your own plugin that uses the hal.rgb0 interface to control the LEDs. |
I have searched for hal.rgb, but did not find any information, thank you. |
Here are a few instances. |
hummm, now I'm more confused, I see this plugin more complicated than the previous one, thanks for your help ... |
Originally posted by @Juank23 in grblHAL/Plugin_fans#2 (comment)
The text was updated successfully, but these errors were encountered: