Welcome! Log In Create A New Profile

Advanced

how to upload firmware to melzi v2 board?

Posted by kkwong1951 
how to upload firmware to melzi v2 board?
June 10, 2016 11:54PM
how to change the melzi v2 atmega1284p setting (upload frimware)?
I have installed arduno 1.0.5-r2 but I don't know where to start first.
How do I write configuration.h ? where to find the setting.
the melzi board(attach photo) got one reset near the chip. do i need to reset first?
I want to change the setting because:
My 3d printer use repetier host v1.61. I click the arrow it go right but never go left and go front but not back. I change the motor wiring green,black,red,blue to blue,red,green,black also the same movement right not left ,front not back.
please help thank.
Re: how to upload firmware to melzi v2 board?
June 11, 2016 08:38AM
[reprap.org]


Most of my technical comments should be correct, but is THIS one ?
Anyway, as a rule of thumb, always double check what people write.
Re: how to upload firmware to melzi v2 board?
June 13, 2016 02:38AM
hello euxvis,
I have installed arduino and merlin and found the configuration.h. what can I do next?
Is that the correct step!
1) run merlin
2) select tool--> board-->arduino mega atmega 1284(my board reprap melzi v2 1284p from china)
3)connect use cable to the 3dprinter board
4) load the configuration.h---> change the baurate to 115000
5) press upload
please confirm thank
note: these few days I found out my printer problem as follow:
I start repetier -host and connected.
when I manually press the x-axis arrow to +1 it go right when press -1 no action,but when hold and press down the microswitch and press -1 it go left. The y and z axis the same.
I can't change the switch setting.
How do I add setting to configuration.h? thank
Re: how to upload firmware to melzi v2 board?
June 15, 2016 08:34PM
Hey KK, where was your config.h file. I have looked everywhere to no avail. Thanks.
Re: how to upload firmware to melzi v2 board?
June 15, 2016 08:44PM
First, use a continuity tester to find the (2) pairs of the motors. Connect them to the board, one pair on first two connectors and the other on the two lower connectors. Check which direction the motor moves. If backwards switch them or go into Repetier "Printer Settings", "Printer" and click "Invert Direction In Controls"
Re: how to upload firmware to melzi v2 board?
June 16, 2016 01:16AM
thank,
after I load merlin I go to tool board to find the configuration.h as attach.
Is that the correct configuration.h ?
I try to open other configuration.h file it show as attach.

I tested the stepper motors all can turn clockwise and anticlockwise.
only when fixed in the board melzi v2 and run repetier host in pronteface manually press +1 it go right -1 not moving. when hold down(not release) the microswitch press -1 it go left. please help thank
Attachments:
open | download - tool.png (339.4 KB)
open | download - config_h.png (49.2 KB)
open | download - config2.png (31.1 KB)
Re: how to upload firmware to melzi v2 board?
June 17, 2016 08:54AM
@kkwong1951

you need to invert your endstop

Load marlin into arduino ide, click on configuration.h tab

Fine the section that looks like

const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.

If yours says true make it false or if yours says false change it to true

Compile and upload the new firmware
Re: how to upload firmware to melzi v2 board?
June 19, 2016 11:52PM
hello,
thank , I got a problem I can't find the board melzi ver 2 1284p in merlin after loading the arduino and merlin.
What can I do ?
Re: how to upload firmware to melzi v2 board?
June 16, 2017 03:08AM
Hello, I can't to upload firmware onto Melzi Tronxy board. When I try to upload with closed 2-pin (autoreset switch) - Arduino IDE can't do it.
When upload without jumper then I see old firmware.
Can somebody help me?
Re: how to upload firmware to melzi v2 board?
February 13, 2019 05:37PM
I have a Melzi board and a ICP Programmer to go with it. I have downloaded your firmware. I have Arduino 1.06 installed and the Sanguino boards installed. Yet it will not install any idea what i am doing wrong. Thanks Richard
Attachments:
open | download - MY_Melzi_Board_Wih_ICP_Programmer.png (765.8 KB)
open | download - MY_Melzi_Board_V2_05_ICP_Header_01.png (767.3 KB)
open | download - MY_Melzi_Board_V2_05_ICP_Header_01.png (767.3 KB)
Re: how to upload firmware to melzi v2 board?
February 13, 2019 08:24PM
@Richard_Brown

and how are you plugging it in?

my guess is you saw the 10 pin plug and you plugged it in there. But this is just an IO expansion port

The ISP needs to go to the 6 pin connector on the board.

You need to make up a converter



or buy one like these



Edited 1 time(s). Last edit at 02/13/2019 08:29PM by Dust.
Re: how to upload firmware to melzi v2 board?
February 13, 2019 09:26PM
Dear Sir:
I have that.. just is the picture did not turn out so good do I left it off.. But I do that that.. Do I need the USB cable plugged in also at the same time? Just plug in the special board with that connector and it should work Correct??
Thanks for getting back to me.. I will send some more pictures in a moment. NOTE some of these pictures are not so clear... let me know if you need more.. Thanks

Richard

Edited 1 time(s). Last edit at 02/13/2019 09:45PM by Richard_Brown.
Attachments:
open | download - Bad_Picture_Of_six_pin_Connectot_01A.png (577.4 KB)
open | download - Computyer_Sertup_With_Special_ICP.png (642.8 KB)
open | download - Computer_Setup_with_Special_ICP_02A.png (650.9 KB)
open | download - Computer_Screen_09A.png (813.4 KB)
open | download - Computyer_Screen_07A.png (563.4 KB)
open | download - Computer_Screen_06A.png (585.7 KB)
open | download - Computer_Screen_004A.png (586.3 KB)
open | download - Computer_Screen_002A.png (563.4 KB)
open | download - Computer_Screen_001A.png (585.7 KB)
Re: how to upload firmware to melzi v2 board?
February 13, 2019 10:19PM
Yes you need usb to the controller for power.

Also on the controller in the middle is a jumper, J15, this needs to be on pins 1 and 2 to use 5v from usb

Edited 1 time(s). Last edit at 02/13/2019 10:24PM by Dust.
Re: how to upload firmware to melzi v2 board?
February 13, 2019 10:26PM
OK let me do that .. getting late here.. will let you know what happens.. Thanks... Need more pictures.. let me know.. I am using the downloaded code from above thanks again.
Richard

OK I did that and did NOT choose the Upload using Programmer..... I just choose upload.. then I got this message.. Getting close..

Edited 1 time(s). Last edit at 02/13/2019 10:32PM by Richard_Brown.
Attachments:
open | download - Screen_Print_001_A.png (114.9 KB)
Re: how to upload firmware to melzi v2 board?
February 13, 2019 10:41PM
there are two ways to upload

directly to the chip, you use the isp programmer.
This is normally used to install a bootloader only. (It can be used to upload the full firmware, but then you need to use a ISP every time you want to update the firmware)

secondly via the bootloader over usb/serial without a bootloader this give you errors like what your getting.

Install the bootload from [reprap.org]

Connect the AVR programmer to your PC, via USB. Connect the programmer to the Melzi, via the SPI pins. Connect USB to the Melzi - it needs power from the USB.
Open Arduino IDE. Under 'Tools | Board' menu, select 'Sanguino W/ATmega1284p 16 mhz'. From the 'Tools | Serial Port' menu, select the port your AVR Programmer is on. From 'Tools | Programmer' select your AVR Programmer type.
From 'Tools' menu, select 'Burn Bootloader'. You may receive an error; search the internet with the error message to troubleshoot what part isn't working properly. It mostly depends on the AVR Programmer you are using. Of course, there may also be a problem with your board
.

Edited 1 time(s). Last edit at 02/13/2019 10:43PM by Dust.
Re: how to upload firmware to melzi v2 board?
February 13, 2019 10:44PM
Ok then is worked.... correct?????? smiling smiley


I have two boards for my Tronxy 3S. I will install this one and test it.. NOTE: I have not put the bed leveling thing on yet. let you know what happens.

Edited 1 time(s). Last edit at 02/13/2019 10:46PM by Richard_Brown.
Re: how to upload firmware to melzi v2 board?
February 15, 2019 10:11PM
You know that did not update the EEProm... I will try to put a bootloader on it and see if that works. Note.. I tried that a while back and got the an error I then reduced the speed but did not try it.. Will let you know what happens. Thanks Also just to update you.. I am using the latest Arduino IDE to create a bootloader on the Melzi board. I have installed the USBasp drivers for the device I purchased. If I select that it does not work and get an error. What device should I select> Thanks gain..

Edited 1 time(s). Last edit at 02/15/2019 10:52PM by Richard_Brown.
Re: how to upload firmware to melzi v2 board?
December 03, 2019 09:21AM
Greetings,

I just purchased this board, and have those motor connectors (4-pin). Where can I get those? What are these connectors name/code? Thanks in advance
Attachments:
open | download - melzi 2.0 v5 motor 4-pin connector.png (66.8 KB)
Re: how to upload firmware to melzi v2 board?
December 03, 2019 01:20PM
Quote
davemaster
Greetings,

I just purchased this board, and have those motor connectors (4-pin). Where can I get those? What are these connectors name/code? Thanks in advance

They are these connectors:
[www.aliexpress.com]

No affiliate, I just bought these for my SKR v1.3 because they use the same connection I believe. Anyone who can confirm this?


http://www.marinusdebeer.nl/
Sorry, only registered users may post in this forum.

Click here to login