Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all 12103 articles
Browse latest View live

Re: Sending Message to LCD screen

$
0
0
M117 calls lcd_setstatus(parser.string_arg); This puts what ever you want on the last line of the display.

so all you need to do is add something like the above to the main loop in Marlin_main.cpp and pass it the analog port
eg just before the idle() change it to

  lcd_setstatus(analogRead(ANALOG_PIN_YOU_WANT_TO_READ));
  idle();


Nb this is just hack.. if the controlling software sends a M117 it will over write this, till the next loop
and the code should have checks, to make sure you have a lcd defined and such things...

Also I have no idea how much of an impact this will have on the controller, could make it crawl and be unusable.

Re: Sending Message to LCD screen

$
0
0
Thanks for the advice, I have tried lcd_setstatus, but have some trouble with set_status.

It works if I just pass in a cstring directly, but I can't get it to work with floats or doubles. Is there a way to print out a float or double with lcd_setstatus? Here's what I have:
int sensorValue = analogRead(MFC_SENSOR);
double voltage = sensorValue * (5.0 / 1023.0);
char message[25] = "Voltage: ";
sprintf(message, "%f", voltage);
lcd_setstatus(PSTR(message));

I really appreciate your help!

Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
Hey all,

i have a Creality CR-10s and wanted to use BlTouch so i followed the tutorials out there and tried to compile a working firmware for it to work.

The issue is when i try to compile the firmware the Arduino software spits out following error lines:

Quote

SanityCheck.h:791:4: error: #error "Please enable only one probe option: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo."

#error "Please enable only one probe option: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo."

^

#error "Please enable only one probe option: PROBE_MANUALLY, FIX_MOUNTED_PROBE, BLTOUCH, SOLENOID_PROBE, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or Z Servo."

I've tried a lot of things but i can't manage to get it to work.

As you can see from this guides comment section on Thingiverse, some others have had the same problem: [www.thingiverse.com]

Please help me guys. I'm broken. I have no hope. I feel lost.


This is the line i use to get BlTouch to work:

Quote

#define AUTO_BED_LEVELING_BILINEAR
#define BLTOUCH
#define SERVO0_PIN 11
#define Z_SAFE_HOMING

As well as uncommenting
Quote

//#define CUSTOM_PROBE
and setting up the probe offset to -40 -10

Re: Sending Message to LCD screen

$
0
0
Furthermore, if I just say lcd_setstatus("string"), the last line of the LCD screen becomes blank and doesn't output the message properly.

Re: Sending Message to LCD screen

$
0
0
currently I have

  endstops.event_handler();
  lcd_setstatus("I am a fish");
  idle();

and my printer thinks is a fish, without any issues

Z axis gains 2MM at print start

$
0
0
My Cartesian printer is gaining 2-mm on Z after homing and moving into the print area. Needless to say the prints aren't sticking.

This is a new built printer and all other features are working now that I have gone to Marlin 1.1.7 See attached configs.

Re: Z axis gains 2MM at print start

$
0
0
NM Figured it out. I am dumber than my own cat some days.

Re: Sending Message to LCD screen

$
0
0
Looking at your code, there are some issues.... mostly with sprintf, It over writes message, and doesnt convert the %f correctly.

  int sensorValue = analogRead(MFC_SENSOR);
  char message[25]; 
  char voltagechararray[6+2]; 
  double voltage = sensorValue * (5.0 / 1023.0);
  dtostrf(voltage, 6, 2, voltagechararray); 
  sprintf(message, "Voltage: %s", voltagechararray); 
  lcd_setstatus(message);

works for me...

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
Please post your configuration.h

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
Quote
Dust
Please post your configuration.h

Here i've added it to the attachments.

[2.0.x] Axis is not displayed normally.

$
0
0
The y-axis is not output and the z-axis is only partially visible.

(ender-3, marlin 2.0.x)

[attachment 107708 sd.jpg]

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
That is not standard a standard marlin configuration.h

seems to be a really bastardized version from TH3D Unified Firmware Package

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
I downloaded the latest TH3D firmware. Like i said, other people have had the same problem as well.
I am willing to try the normal marlin firmware but the issue is i have no clue how to properly configure Marlin for it to work with a CR-10s with the new 2.0 motherboard properly without getting something horribly wrong.

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
That code is truly horrible.... and clearly doesn't work for your combination.

load up Configuration_backend.h

find

#if ENABLED(EZABL_ENABLE)
  #define RESTORE_LEVELING_AFTER_G28
  #define FIX_MOUNTED_PROBE
  #define Z_PROBE_OFFSET_FROM_EXTRUDER 0
  #if ENABLED(PROBING_MOTORS_OFF)

and disable FIX_MOUNTED_PROBE like the following
(line 1634 on the version I have just downloaded)

#if ENABLED(EZABL_ENABLE)
  #define RESTORE_LEVELING_AFTER_G28
  //#define FIX_MOUNTED_PROBE
  #define Z_PROBE_OFFSET_FROM_EXTRUDER 0
  #if ENABLED(PROBING_MOTORS_OFF)

It now compiles.

NB I dont have the right hardware to test this, good luck.

Re: Trying to get BlTouch to work, Compiling doesn't work :(

$
0
0
Quote
Dust
That code is truly horrible.... and clearly doesn't work for your combination.

It now compiles.

NB I dont have the right hardware to test this, good luck.

Dude it seems to have worked !

Thank you so much, i'll report back when i have managed to get BlTouch working and printed a successful print with it until then i'm not really sure if things are in the green.

Thank you again.

Custom command remove filament

$
0
0
Hello All!
I'm trying to add an "unload" command to the custom command menu that would retract 400mm filament from the PTFE tube, but whatever command I use, does not work. I tried heated, cold, but extruder motor does not move (all OK otherwise)
I used G10, also G1 E-400 F60 with M92 and without, with M83 and without... Nothing.
How could I make it work? Please help.

Re: Custom command remove filament

$
0
0
how about posting at least one eg, so we can see how your trying to implement this?

Also please take a look at [github.com] ADVANCED_PAUSE_FEATURE might already do what you want.

Re: When single nozzle is used for multicolor printing, hold another extruder.

Re: Custom command remove filament

$
0
0
The latest attempt:

#define CUSTOM_USER_MENUS
#if ENABLED(CUSTOM_USER_MENUS)
#define USER_SCRIPT_DONE "M117 User script done"
#define USER_SCRIPT_AUDIBLE_FEEDBACK
#define USER_SCRIPT_RETURN // Return to status screen after a script

#define USER_DESC_1 "Home all"
#define USER_GCODE_1 "G28"

#define USER_DESC_2 "Preheat 200/60"
#define USER_GCODE_2 "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)

#define USER_DESC_3 "Preheat 210/60"
#define USER_GCODE_3 "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)

#define USER_DESC_4 "Cooldown"
#define USER_GCODE_4 "M140 S0\nM104 S0"

#define USER_DESC_5 "Unload"
#define USER_GCODE_5 "G10"


It was...

#define USER_DESC_5 "Unload"
#define USER_GCODE_5 "G1 E-400 F200"

...and...

#define USER_DESC_5 "Unload"
#define USER_GCODE_5 "G92 E0/nG1 E-400 F200"

...and...

#define USER_DESC_5 "Unload"
#define USER_GCODE_5 "M83\nG1 E-400 F200"

I get the beep and the "User script done" message, but no movement on E motor.

add button in marlin firmware

$
0
0
Hi everyone.
I need to do this: modify a reprap hardware add 2 buttons, one is for execute 3 gcode commands and the other is to go back to last position. Does someone know in which libray can i add the 2 buttons?.
Viewing all 12103 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>