-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ramps 1.6 enable pin 10 #29
Comments
Soon, by defining pin 10 as an aux output and using the eventout plugin to bind it to the mist on/off handler. Or if you do not want to wait for me to add it officially add the plugin manually and recompile with it enabled. |
Thanks so much for the reply! |
I tried to add the plugin but I get these errors!! I'm afraid I don't understand how to do it.... Arduino:1.8.19 (Windows 10), Scheda:"Arduino Due (Programming Port)" C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c: In function 'set_int': C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:201:14: error: 'Setting_ActionBase' undeclared (first use in this function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:201:14: note: each undeclared identifier is reported only once for each function it appears in C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:206:14: error: 'Setting_ActionPortBase' undeclared (first use in this function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c: In function 'get_int': C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:226:14: error: 'Setting_ActionBase' undeclared (first use in this function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:230:14: error: 'Setting_ActionPortBase' undeclared (first use in this function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c: At top level: C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:251:7: error: 'Setting_ActionBase' undeclared here (not in a function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:252:7: error: 'Setting_ActionPortBase' undeclared here (not in a function)
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:258:5: error: initializer element is not constant
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:258:5: error: (near initialization for 'event_settings_descr[0].id') C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:260:5: error: initializer element is not constant
C:\Users\Davide\Documents\Arduino\libraries\grblHAL_Due\src\Plugins_misc-main\eventout.c:260:5: error: (near initialization for 'event_settings_descr[1].id') exit status 1 Errore durante la compilazione per la scheda Arduino Due (Programming Port). Questo report potrebbe essere più ricco di informazioni abilitando l'opzione |
Your core (grbl folder) is too old. |
I downloaded grblhal 15 days ago!! Is this a change you recently made?? |
It is declared here.
Relatively recent, the references you get compilation errors for about 2 months ago. Are you sure you are compiling against a newer version? Check the |
[VER:1.1f.20240801:] This is the version I downloaded using GIT!! |
I just re-downloaded the firmware for SAM3X8E.....I checked in the settings folder and the parameter is present!! |
With the version downloaded today with git and with the plugin you provided me, it now compiles well!! |
HI I defined the exit: Then you should activate it by combining it with I would like it to be activated with the Mist enable (M7) What am I doing wrong?? |
So setting |
Sorry to bother you again! I have defined all outputs as "AUXOUTPUT". So the Nothing happens!! The Aux3 output (pin10) DOES NOT activate!! #define AUXOUTPUT0_PORT PIOC #define AUXOUTPUT3_PORT PIOC |
What are the $pins and $i outputs, after hard resetting the controller? |
Avvio streaming |
In theory other outputs should also be activated.... but nothing is activated.... |
You posted the $$ output, I want to see $pins and $i... |
Sorry I misunderstood!!
$pins This? Right? |
[VER:1.1f.20241113:] |
This is strange, I just added the plugin to the Due driver and it works for me. |
/* NOTE: board must be modified for 3.3V IO before use! Part of grblHAL Copyright (c) 2019-2023 Terje Io Mappings according to Re-ARM for NXP LPC1768 grblHAL is free software: you can redistribute it and/or modify grblHAL is distributed in the hope that it will be useful, You should have received a copy of the GNU General Public License #if (N_AUTO_SQUARED && N_AUTO_SQUARED < N_ABC_MOTORS) || N_ABC_MOTORS > 2 #define BOARD_NAME "Ramps 1.4" // Define step pulse output pins. // Define step direction output pins. // Define stepper driver enable/disable output pin(s). // Define homing/hard limit switch input pins. // Define homing/hard limit switch input pins. // Define ganged axis or A axis step pulse and step direction output pins. // Define ganged axis or B axis step pulse and step direction output pins. // Define driver spindle pins #if DRIVER_SPINDLE_PWM_ENABLE #if DRIVER_SPINDLE_DIR_ENABLE #if DRIVER_SPINDLE_ENABLE // Define flood and mist coolant enable output pins. // Define user-control CONTROLs (cycle start, reset, feed hold) input pins. #define AUXINPUT0_PORT PIOA #if PROBE_ENABLE #define AUXOUTPUT0_PORT PIOC #define AUXOUTPUT3_PORT PIOC |
I copied the contents of the ramps_1.6_map.h file into my_machine_map.h (which I use at the moment) and redefined some pin outputs.... So the ramps_1.6_map.h file remained unchanged. |
Your map file works for me, after erasing flash, flashing the binary and resetting plugin settings with
I have a genuine Arduino Due. |
I use Arduino IDE to load the firmware... Yes, I'm using an Arduino due but a clone! |
Good morning This seems to be working now! I did $RST=& (If I don't do this sometimes it seems to not save the parameters correctly!) Everything works except "Spindle enable (M3/M4)" Doesn't activate any output?
SPINDLE_ENABLE_PIN 26 // Two Digital Pin 4pin, in my case it is always set high except if M3 S (Greater than zero), Thank you for your support! |
Flashing the DUE clears all setting bytes to 0xFF, and this sometimes causes issues because the firmware is not always able to detect this and automatically reset to defaults. Grbl and grblHAL both uses an 8-bit checksum for detection, I should switch to 16-bit to improve it...
Spindle enable does not work when $32=1 (laser mode enabled), Laser enable should but does not due to a bug. I have attached a patched version that does and also adds binding information to the $pins report.
Signal inversion is done in the driver and this is not reflected in the aux outputs. You can invert the aux outputs separately with $372. Also be aware the spindle enable signa isl sometimes beeing controlled by setting spindle speed. Laser mode does that. There are two separate calls for this and I only trap the main one for now for setting the aux output. So e.g. in laser mode the aux output will stay enabled for as long as M3/M4 is active regardless of the spindle enable pin state. This so the aux output can be used for controlling a fan or a water pump without constantly switching on and off... |
OK, thank you so much for your support!! I have a question that doesn't focus on aux outputs.... I made the transition from ArduinoMega to ArduinoDue with ramps. |
Maybe. You have Aux 3 connected to D10 so that may explain activity on that. Connecting USB causes a reset so should behave the same as pressing the reset button. D13 is not linked to any reset circutry so will not lit up unless the bootloader (or grblHAL) does it from code - and IMO it should not. |
I don't think it's for this reason, I also tried to define Pin 10 (D10) with another Aux output and also not to define it.... |
Good morning I thank you infinitely for the support and time you dedicated to me!! |
Mine does not pull D10 high on a reset, but with no load it seems to do so - due to the pin beeing configured as input with pullup enabled. A 68K load brings it down to a little less than 2V. Ensure that any circuitry driven by D10 loads the pin enough to bring it down to a level below what is needed to switch the final output. |
So can you confirm that the original ArduinoDue also seems to pull all pins high when reset is pressed(Without ramps)?
Is there a method to change this type of setting and solve the problem? |
It is soft pulling via a weak pullup resistor, not hard pulling via the output stage. FYI when checking a STM32 PRM it specifies some pins as floating and some with pullup enabled on reset. So at least the behaviour is documented.
I do not need to buy a new one since I only use the one I have for bench testing. And I can design around it if needed. I had to do that when I made a breakout board for a FPGA device.
Load the pin - e.g. with a 10K resistor to avoid it. AFAIK you cannot change the reset state by configuring the MCU. |
Good morning
Sorry I expressed myself badly....I use Google Translate...
I'll try contacting the help center! I congratulate you on your GrblHal, it has many potentials and features that are useful! And you will surely add more! For the future, even if it is not a fundamental thing, together with the LEDs (which can also have a signaling function for safety on/off processing, etc...) a buzzer that signals the start and end of processing can be useful! :) As always, thank you for your support! |
Good morning
I'm working with a ramps 1.6...
I enabled "COOLANT_FLOOD" on pin 8 and "COOLANT_MIST" on pin 9.
Is it possible to also activate pin 10 in parallel with pin 9, to also activate the third mosfet of the ramps?
Is there a service pin that is enabled with the M2 command?
Thank you
The text was updated successfully, but these errors were encountered: