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
RK Tolli 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 4 months ago by Fil4ment
Posted : 19/09/2024 2:03 pm
Martin Jeník
(@martin-jenik)
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 4 months ago by Martin Jeník
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_)
Prominent 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
Share: