accelerometer/i2c ports pinout / M42 gcode parameters
 
Benachrichtigungen
Alles löschen

accelerometer/i2c ports pinout / M42 gcode parameters  

  RSS
me
 me
(@me-2)
Eminent Member
accelerometer/i2c ports pinout / M42 gcode parameters

I'm planning to build a diy enclosure for my new-ish Mk4 with automatic active heating and ventilation.

I have the correct cables to plug into the accelerometer and i2c expansion ports on the Xbuddy board, and I know I'm going to want to use M42 to switch the gpio pins exposed by them to communicate with the arduino that controls the enclosure.

The thing is i can't seem to find a actuall pinout diagram for the ports (not that big of a problem) or (slightly bigger problem) what to put in the "p" parameter for the M42 command.

Also i would like to know if the exposed gpio pins can do pwm (6 bytes > 6 bits).

Thanks!

Veröffentlicht : 17/12/2023 6:12 am
codeH0
(@codeh0)
Mitglied
RE: accelerometer/i2c ports pinout / M42 gcode parameters

Thats funny! I'm doing the same thing. Although I try to do all the work on an Arduino and try to do the "talking" with M260. Unfortunately though, the command is not enabled in the firmware... I probably have to modify the code myself and cut the "user firmware wire block" on the xBuddy board and lose the warranty. Shame it will be not possible to turn the lights on an off over prusa connect since you can not send custom commands 🙁  I probably have to use octoprint instead.

Veröffentlicht : 21/12/2023 12:32 am
Fil4ment
(@fil4ment)
Trusted Member
RE: accelerometer/i2c ports pinout / M42 gcode parameters

Just FYI, there is further discussion of GPIO and communication options here, and a github question here. Please leave a comment in either or both. I'm trying to get the dev's attention, because there are several similar projects, all stalled at the same point, which would be a relatively easy fix for any of the devs.

Veröffentlicht : 01/01/2024 6:17 pm
Fil4ment
(@fil4ment)
Trusted Member
RE: accelerometer/i2c ports pinout / M42 gcode parameters

Just FYI, there's been an update to the above thread, with i2c control being implemented in a recent merge

Veröffentlicht : 10/05/2024 4:58 pm
Teilen: