Notifications
Clear all

GPIO how to article  

  RSS
Jakub Dolezal
(@jakub-dolezal)
Member Admin
GPIO how to article

Hi,

We've created an article about the GPIO board, complete with examples. We'll be adding more examples to the article in the future.

If you have any questions, feel free to ask them here or in the comments section of the article.

Link to the article

We look forward to seeing your GPIO-based projects!

Happy printing and hacking!

 

Assembly manuals

/ Knowledge Base
The guy behind Prusa assembly manuals...

Posted : 11/09/2024 11:16 am
1 people liked
Fil4ment
(@fil4ment)
Trusted Member
RE:

In the article, it doesn't mention M260 or M261 (despite being in the screencaps), but those are both now supported in the firmware, thanks to rbuehlma's github contributions. Does the GPIO board not support those commands? Is it possible to use a separate microcontroller, configured as i2c slave, to receive those commands?

This post was modified 1 year ago by Fil4ment
Posted : 19/09/2024 2:03 pm
Martin
(@martin-36)
Member
RE:

Hi,

After the initial feedback and subsequent internal discussion, we have decided not to directly mention the M260 gcode in the article, although it is still supported by both the firmware and the board. Instead, we prefer to use a more straightforward setup for individual pins using the M264 gcode.

The M261 gcode is described in the article.

At this moment, I am not aware of the possibility to connect a separate microcontroller as an I2C slave, and I do not recommend it either. However, the GPIO hackerboard supports these M260 and M261 gcode commands.

This post was modified 12 months ago by Martin
Posted : 24/09/2024 10:50 am
Fil4ment
(@fil4ment)
Trusted Member
RE: GPIO how to article

Thanks for replying! I must have missed the M261. Sorry about that. Can you explain the reasoning for not mentioning/documenting M260? I'm guessing to limit the liability for someone doing something dumb with that command.

Posted : 24/09/2024 10:38 pm
jurassic73
(@jurassic73)
Estimable Member
RE: GPIO how to article

Thanks for this! Ordered my board and now I have to wait for it to show up... 🙂

Could you perhaps add an example of how to wire a button to input on the hacker board to control an output pin? Is this possible? Would like to do this to control some enclosure lights/fans via button.

Posted by: @jakub-dolezal

Hi,

We've created an article about the GPIO board, complete with examples. We'll be adding more examples to the article in the future.

If you have any questions, feel free to ask them here or in the comments section of the article.

Link to the article

We look forward to seeing your GPIO-based projects!

Happy printing and hacking!

 

 

MK3s / My IKEA Lack enclosure

Posted : 01/10/2024 2:58 pm
Marek Wolf
(@marek-wolf)
Active Member
RE: GPIO how to article

The gcodes M262-M268 get me echo:Unknown command:

Prusa support told me those codes M262 and M268 are not listed among the compatible codes.   https://help.prusa3d.com/article/buddy-firmware-specific-g-code-commands_633112

 

So, how are you using gpio without them?

Posted : 20/12/2024 2:47 pm
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: GPIO how to article

You need firmware 6.2.0-alpha1 or newer. 

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 27/12/2024 8:02 am
Marek Wolf
(@marek-wolf)
Active Member
RE: GPIO how to article

M262 sets the pin mode to input or output

M262 P6 B0 - Configures pin 6 as an output pin

M268 reads the registers of the IO device

Posted : 27/12/2024 3:20 pm
Marek Wolf
(@marek-wolf)
Active Member
RE: GPIO how to article

So basically Prusa is selling unsupported hardware because the latest officially supported version is 6.1.4

Posted : 27/12/2024 3:24 pm
JAnger
(@janger)
Active Member
RE:

@jakub-dolezal

As of 2025-4-6 the article in English seems to be cut short as the Polish version has more content. Seems like something has gone wrong. Please check? 

 

 

Posted by: @jakub-dolezal

Hi,

We've created an article about the GPIO board, complete with examples. We'll be adding more examples to the article in the future.

If you have any questions, feel free to ask them here or in the comments section of the article.

Link to the article

We look forward to seeing your GPIO-based projects!

Happy printing and hacking!

 

 

This post was modified 6 months ago by JAnger
Posted : 06/04/2025 4:51 pm
Escrich
(@escrich)
Active Member
RE: GPIO how to article

Dear all, what you're proposing is more or less interesting, but in the whole cases means you need to add an I2c interface card, and that could be great if you are thinking about to control a lot of signals, but suppose you want to handle a single pin or as much as a couple of pins, I want to control a light while printing, and may be a relay to cut the power down ate print end, I think I have enough single pins in Einsy Rambo board, I mean the MMU ones, for example, my intention is to use one of those pins and simply connect a mosfet board, controlling this way, again, the light, does the system allow me to send a gcode to switch or on off the aforementioned pin?, could I use M42, or may be M226 if I need to read it, instead to write it?, this is my concern, will M42 work?, no interface, but the mosfet, no anything more only M42, will it work?, for me, that's the question.

https://github.com/Escrich . https://t.me/escrich . https://www.tiktok.com/@josemescrich

Posted : 06/05/2025 4:47 pm
CitaR
(@citar)
Active Member
RE: GPIO how to article

help site not working or missing most information

Posted : 08/06/2025 4:50 pm
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: GPIO how to article

Yeah https://help.prusa3d.com/article/gpio-module_734695 unfortunately English and German versions are truncated, it was reported before few weeks ago.

Switch to Polish version and use for.example translate.google.com

Or try another languages.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 09/06/2025 6:27 am
Share: