top of page

Support

Public·24 members

Proper syntax to control 3D Chameleon digitally

I've successfully connected the 3D Chameleon control board to the Power Control port of my BTT E3 Mini V3. It's connected to pin PC13, translated to pin 45 in g-code. The commands that work and have been tested are:


M42 P45 I1 T1 S1 ; Initialize 3D Chameleon (off)
M42 P45 S0 ;Activate Command Mode
M42 P45 S1 ;Deactivate Command Mode

Now I tried writing a short G-Code script to set the pulse time to 100ms. The above commands work, but when I execute the G-Code below, the control board just pulses every half second until I manually issue the M42 P45 S1 command. Is this command no longer supported or am I doing something wrong?


M42 P45I1T1S0 ;Initialize Pin and set
G4 P7500 ;Pause for 15 pulses 
M42 P45S1 ;Release Pin
G4 S3 ;Wait 3 seconds
M42 P45S0 ;Set Pin for delay 
G4 P100 ;100ms
M42 P45S1 ;Release Pin
G4 S3 ;Wait 3 seconds
M42 P45S0 ;Set Pin for delay*2
G4 P200 ;200ms
M42 P45S1 ;Release Pin

Thanks!

202 Views
las_vegas
May 15

Just a quick update! With the Chameleon controlled digitally, there's no convenient way of testing it. I've writen the following script to place on your SD card to load macros to accomplish this. Name the file auto0.g to have it automatically load the macros when starting the printer.


You'll need to change the pin (P45) to the pin you're using on your control board.


Once loaded, entering the macro code in a terminal connection will execute the following commands:


G810 - Select 0 (filament 1)
G811 - Select 1 (filament 2)
G812 - Select 2 (filament 3)
G813 - Select 3 (filament 4)

G815 - Feed or retract 10 Seconds (Use after Select command)

G816 - Initialize Port (Do first before other commands)

G817 - Reset 3D Chameleon

UPDATE: I've revised the code to be more practical for testing.

You may have to recompile Marlin to allow Macros.



About

Need help... check out this thread for advice from the exper...

Members

  • mayuri kathade
    mayuri kathade
  • Ben Conner
    Ben Conner
  • BOSS SUB
    BOSS SUB
  • Kendall Leake
    Kendall Leake
  • Lalo Puma
    Lalo Puma

For the latest information on product availability, be sure to follow us on twitter!  @3DChameleon

For more installation videos, be sure to follow us on Youtube!

  • Facebook
  • Twitter
  • YouTube

©2023 by 3D Chameleon

bottom of page