Welcome! Log In Create A New Profile

Advanced

Reprap Melzi version 2.3 board printer

Posted by konstantin.neo 
Reprap Melzi version 2.3 board printer
March 01, 2022 04:52PM
Hello.
I have a "3d printer" with the Reprap Melzi version 2.3 board in it, ATMEGA 1284P.
It is an acrylic construcion. Name is: Aurora 3D Z605

It connects and sometimes prints, but its a nightmare on so many levels, most due to me not knowing nothing about 3d printers and alot of frustration from "gremlins" sometimes it would not heat, not move, not connect, not print in the spot I need it to print, etc etc.
I would like to update the firmware (0.91 currently) to the latest available which is 1.0.4 on www.repetier.com/firmware/v100/ but I cant make sense of the interface.

Where can I obtain the Configuraion.h file for my printer? Is it possible to download it from the 3d printer directly? I am a bit lost with the whole process.

I have installed the Arduino IDE and when I get board info:
BN: Unknown board
VID: 0403
PID: 6001
SN: Upload any sketch to obtain it

I have got the repetier firmware files but which one Repetier.ino to use? The one from ArduinoDUE or ArduinoAVR?

Help is greately appretiated.

Edited 2 time(s). Last edit at 03/01/2022 04:53PM by konstantin.neo.
Re: Reprap Melzi version 2.3 board printer
March 01, 2022 08:40PM
You cannot download Configuration files form the running firmware. This is like asking for the ingredients back form a cooked cake.


I did however find [reprap.org] which has a Repetier configuration file

a 1284p is a ArduinoAVR
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 12:19PM
So I used the Configuration.h from the link you provided.
Funny thing my Z steps per mm is 407 instead of 400, travel does reflect that 113.36 mm actual movement vs 110 on the readout.

I tried to upload the configuration with the Arduino IDE but
Quote

Sketch uses 93784 bytes (72%) of program storage space. Maximum is 130048 bytes.
Global variables use 4249 bytes (25%) of dynamic memory, leaving 12135 bytes for local variables. Maximum is 16384 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x56
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x73
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x61
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x46
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x72
Problem uploading to board. See [support.arduino.cc] for suggestions.

I am doing it over the USB I dont own any arduino programmers, do I need it?

When I use "serial monitor" I can send M205 and receive the output, I guess that means I am connecting to it, right?
Dont know what to do.

P.S.
Actually tried to upload again but this time changed the AVR to 8MHz instead of 16 one.
Used verbose output, saw the Upload, then Read and then the 3d printer homed
Cannot connect to printer anymore, omg, serial monitor shows garbage with M205.
Printer "homes" when trying to connect to it.
Quote

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600
AVR Part : ATmega1284P
Chip Erase delay : 55000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :

Block Poll Page Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
eeprom 65 10 128 0 no 4096 8 0 9000 9000 0xff 0xff
flash 65 10 256 0 yes 131072 256 512 4500 4500 0xff 0xff
lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

Programmer Type : Arduino
Description : Arduino
Hardware Version: 2
Firmware Version: 1.16
Vtarget : 0.0 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9705 (probably m1284p)
avrdude: reading input file "C:\Users\konst\AppData\Local\Temp\arduino_build_817383/Repetier.ino.hex"
avrdude: writing flash (93758 bytes):

Writing | ################################################## | 100% 29.32s

avrdude: 93758 bytes of flash written
avrdude: verifying flash memory against C:\Users\konst\AppData\Local\Temp\arduino_build_817383/Repetier.ino.hex:
avrdude: load data flash data from input file C:\Users\konst\AppData\Local\Temp\arduino_build_817383/Repetier.ino.hex:
avrdude: input file C:\Users\konst\AppData\Local\Temp\arduino_build_817383/Repetier.ino.hex contains 93758 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 27.49s

avrdude: verifying ...
avrdude: 93758 bytes of flash verified

avrdude done. Thank you.

Edited 3 time(s). Last edit at 03/02/2022 12:30PM by konstantin.neo.
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 07:52PM
By selecting 8MHz, you told the program that it is 8 Mhz it set all internal clocks based on 8 Mhz, so now many timing based things are wrong including baud rates

you set 115200 for a 8 mhz chip, it is running on a 16 mhz chip, so the baud rate is 230400.

Many other timing related things will also be way off.

Don't use it like this
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 07:59PM
The above shows that what ever bootloader is installed on your controller is using a baudrate of 57600, where as the default for a 16mhz chip is 115200

You will need to edit the boards file.

eg
in .arduino15/packages/Sanguino/hardware/avr/1.0.3 is boarads.txt

This contains
## Sanguino W/ ATmega1284 or ATmega1284P 16MHz
sanguino.menu.cpu.atmega1284p=ATmega1284 or ATmega1284P (16 MHz)

sanguino.menu.cpu.atmega1284p.upload.maximum_size=130048
sanguino.menu.cpu.atmega1284p.upload.maximum_data_size=16384
sanguino.menu.cpu.atmega1284p.upload.speed=115200


You need to change 115200 to 57600

Make sure to restart arduino ide after saving this change.

Now select "ATmega1284 or ATmega1284P (16 MHz)" and upload

Edited 1 time(s). Last edit at 03/02/2022 08:01PM by Dust.
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 08:45PM
Thank you so much.
It worked as you described, uploaded and all, but.
Serial monitor still shows garbage and Repetier Host connects and the printer is just homing over and over again.
Quote

19:40:11.274 : Detected EEPROM version:20
19:40:11.274 : Z jerk was too low, setting to 0.70
19:40:11.274 : Free RAM:12130
19:40:11.680 : SD init fail
19:40:11.727 : SD initialization failed.
19:40:11.727 : Do not reformat the card!
19:40:11.727 : Is the card correctly inserted?
19:40:11.727 : Is chipSelect set to the correct value?
19:40:11.727 : Does another SPI device need to be disabled?
19:40:11.727 : Is there a wiring/soldering problem?
19:40:11.727 : errorCode: 32
19:40:11.727 : Printer reset detected - initializing
19:40:11.727 : start

Did I bricked it?
I tried uploading again with MitghtyCore 1284p, again as you indicated the comm speed, editet that and it does go through the motions of uploading but serial com shows only garbage.
Since the printer homes, is it the serial comm corrupted ?
What can I do?
I dont have an avr programmer but if needed id get one, hopefully cheap smiling smiley

Edited 1 time(s). Last edit at 03/02/2022 09:08PM by konstantin.neo.
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 09:20PM
you say Serial monitor still shows garbage, but then you show perfectly readable serial output?

I think Mighty core has some pins definitions moved around use Sanguino [github.com]
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 10:22PM
Ok, when programmed with 1284p 8MHz setings, right after in the window of Serial Monitor it would start to show this type of messages
21:04:57.523 -> m⸮⸮⸮8⸮q0S⸮y⸮y⸮d]
I send M205 and did not get the full info.
So I get these characters. Maybe it switched encoding or sending the replies in another format now?

If I connect to Repetier Host , i get repeaded messages:
9:40:11.274 : Detected EEPROM version:20
19:40:11.274 : Z jerk was too low, setting to 0.70
19:40:11.274 : Free RAM:12130
19:40:11.680 : SD init fail
19:40:11.727 : SD initialization failed.
19:40:11.727 : Do not reformat the card!
19:40:11.727 : Is the card correctly inserted?
19:40:11.727 : Is chipSelect set to the correct value?
19:40:11.727 : Does another SPI device need to be disabled?
19:40:11.727 : Is there a wiring/soldering problem?
19:40:11.727 : errorCode: 32
19:40:11.727 : Printer reset detected - initializing
19:40:11.727 : start


and the printer would cycle home command continuously
at least in Pronterface it did connect and moved.
I am breathing easier now, but still. Idk waht to do.

In pronterface :
M115
SENDING:M115
ok 0
FIRMWARE_NAME:Repetier_1.0.4 COMPILED:Mar  2 2022 FIRMWARE_URL:[github.com] PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
Captongue sticking out smileyROGRESS:0
Cap:AUTOREPORT_TEMP:1
Cap:HOST_RESCUE:1
Cap:EEPROM:1
Cap:AUTOLEVEL:0
Cap:Z_PROBE:0
Capconfused smileyOFTWARE_POWER:0
Cap:TOGGLE_LIGHTS:0
Captongue sticking out smileyAUSESTOP:1
Captongue sticking out smileyREHEAT:1
Cap:EMERGENCY_PARSER:1
Printed filament:515.12m Printing time:5 days 3 hours 27 min
PrinterMode:FFF


So it kind of works but maybe I messed up in the web config tool ? There is really nothing much to set but for the steps per mm and bed shape. I really did not move anything else.

Edited 2 time(s). Last edit at 03/02/2022 10:26PM by konstantin.neo.
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 10:28PM
"By selecting 8MHz, you told the program that it is 8 Mhz it set all internal clocks based on 8 Mhz, so now many timing based things are wrong including baud rates

you set 115200 for a 8 mhz chip, it is running on a 16 mhz chip, so the baud rate is 230400."
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 10:44PM
But is it reversible?
Do you mean that by selecting the Sanguino avr in 1284P in 8MHz and writing the firmware I have changed the baud rate?
Can I revert that?
I did reflash twice using the 1284P at 16MHz , doesnt it change it back to the previous baudrate?
I am lost in this.
Re: Reprap Melzi version 2.3 board printer
March 02, 2022 11:29PM
"I did reflash twice using the 1284P at 16MHz , doesnt it change it back to the previous baudrate?

This changes it back to correct baudrate


The information you have provided

M115
SENDING:M115
ok 0
FIRMWARE_NAME:Repetier_1.0.4 COMPILED:Mar  2 2022 FIRMWARE_URL:[github.com] PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:3
Captongue sticking out smileyROGRESS:0
Cap:AUTOREPORT_TEMP:1
Cap:HOST_RESCUE:1
Cap:EEPROM:1


Show the firmware is talking correctly.

Edited 1 time(s). Last edit at 03/02/2022 11:30PM by Dust.
Re: Reprap Melzi version 2.3 board printer
March 03, 2022 12:51PM
I have been tinkering with the firmware config tool.
I think all the basic functionality is there and working, it moves , its heats up, it blows the fan.
Repetier host now connects and does not reset the printer every 5 seconds. Does it have to do with the "watchdog" option I have checked in the firmware?
Now only this is the main concern:
SD init fail
SD initialization failed.
Do not reformat the card!
Is the card correctly inserted?
Is chipSelect set to the correct value?
Does another SPI device need to be disabled?
Is there a wiring/soldering problem?
No card is present btw.

Thank you so much for the help, you have been a real blessing.
Sorry, only registered users may post in this forum.

Click here to login