Smoothieware GPIO configuration

26 views
Skip to first unread message

Satya Gupta

unread,
Sep 23, 2024, 11:44:47 PM9/23/24
to Smoothieware Support
I am building rather modifying existing pnp. 

I am using SKR1.4 Turbo (comes with 1769) flashed with smoothieware P= 5 axis (https://makr.zone/smoothieware-new-firmware-for-pnp/500/
It works flawlessly. 

The controller board I am using is SKR1.4 Turbo which was build for 3D printer. Most of the ports are for controlling Extruder and heating of the bed. But we required few more for controlling few other things. 

SKR board has some pins which can be used for this purpose and we are doing so using Smoothie's switch extension, works flawlessly. 

The pins which we are using are as follows:

0.28
1.18
1.19
1.20
1.21
1.22
1.23
1.30
 
The issue I am facing is 2 pins are giving PWM signals (1.19 & 1.20) any config changes we do in config.txt the output does not changes. 

Also most of these pins are HIGH by default, we have to execute the switch turn off g_code. Which is ok but its kind of annoying, think about it when we start the machine the pumps goes brrr for a while, led blinks and then everything turns off.

So I want to know, how can we change the behaviour of these GPIO's i mean when SKR boots we dont have to execute g_code to turn them off. 



Arthur Wolf

unread,
Sep 24, 2024, 12:02:05 AM9/24/24
to smoothiewa...@googlegroups.com
For getting pins to stay on or off, you should try configuring them as pull up or pull down, see https://github.com/Smoothieware/smoothieware-website-v1/blob/main/docs/pin-configuration.md

About the pins with PWM signals, that's a bit strange, it might be something specific to that board / how those pins are wired there, would you mind sharing your config file please?

Thanks.



--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smoothieware-support/5104913e-19c1-406e-b259-3db5941a8cd6n%40googlegroups.com.


--
勇気とユーモア

Satya Gupta

unread,
Sep 24, 2024, 12:08:18 AM9/24/24
to Smoothieware Support
Sure attached is the config file: 

About the pin-configuration do i need to write those at the start of config files? 

pin_1_18 1.18v # pin 1.18 to be as pull down
config
on_boot.gcode

Arthur Wolf

unread,
Sep 24, 2024, 12:11:42 AM9/24/24
to smoothiewa...@googlegroups.com
On Tue, Sep 24, 2024 at 6:08 AM Satya Gupta <3.s...@gmail.com> wrote:
Sure attached is the config file: 

About the pin-configuration do i need to write those at the start of config files? 

pin_1_18 1.18v # pin 1.18 to be as pull down


no, you change where you use the pin, for example 

alpha_step_pin                               2.2

becomes

alpha_step_pin                               2.2!v

etc
 

Satya Gupta

unread,
Sep 24, 2024, 12:14:31 AM9/24/24
to Smoothieware Support
Tried this but did not worked. 

I will try again, 

Just to confirm:

If this is how its added right now:
switch.n1vac.output_pin                        2.4

Needs to be changed to: 
switch.n1vac.output_pin                        2.4v

Am I right? 

Arthur Wolf

unread,
Sep 24, 2024, 12:23:21 AM9/24/24
to smoothiewa...@googlegroups.com
yes that looks right.



--
勇気とユーモア

Satya Gupta

unread,
Sep 24, 2024, 12:51:38 AM9/24/24
to Smoothieware Support
Nope, it does not works. 

GPIO stays high until the boot.g_codes are executed. Strange. Schematic does not have any pull up register on those pins. 
BTT SKR V1.4-SCH.pdf

wolfmanjm

unread,
Sep 25, 2024, 10:15:17 AM9/25/24
to Smoothieware Support
Some of the pins you are using are hardcoded LED pins on smoothieboard, so there is nothing you can do about them turning on or off during boot. However if you set leds_disable  true which is currently commented out in your config you can use them after booting.

Satya Gupta

unread,
Sep 25, 2024, 10:48:35 PM9/25/24
to Smoothieware Support
That's good information. Thanks for that, i will do the changes and let you know how it goes. 

BTW is there any wiki or any doc where I can see which pins are used for which purpose by smoothie, only hard coded ones. 

Arthur Wolf

unread,
Sep 25, 2024, 11:52:59 PM9/25/24
to smoothiewa...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.


--
勇気とユーモア

Satya Gupta

unread,
Sep 25, 2024, 11:56:49 PM9/25/24
to Smoothieware Support
Thanks a lot, Arthur.

Appreciate it :)

Reply all
Reply to author
Forward
0 new messages