-
Notifications
You must be signed in to change notification settings - Fork 199
How to change the serial port for melzi board #310
Comments
The serial for AVR is actually hard coded. But didn't use your melzi the serial 0 with the USB port? |
Hi @Wurstnase, thanks for the reply. Serial 0 is connected to USB and is used also used for flash updates. I would like to connect the melzi board to a rpi where the USB ports are all used. I have been looking at serial-avr and could change all references to uart0, but also uart1 seems to be used (intercom.c). I am not sure where I would need to make the changes to get everything working. |
I'm pretty sure, that you don't use the intercom board. This is a very special and today uncommon thing. Intercom is a board, where you split the extruder and the movement. The Melzi and 99.9% of all other board will do both jobs. You should keep care connecting the board directly to the RPi. The RPi is only 3.3V compatible and the Melzi will send 5V. You need at least a voltage divider for TX (Melzi) to RX (RPi). |
Serial is set up here: https://github.com/Traumflug/Teacup_Firmware/blob/master/serial-avr.c#L74-L88 |
Hi @Wurstnase and @Traumflug, I have been able to change the serial port from 0 to 1 by making changes in serial-avr.c. Thanks for the provided help. |
Can you please share your changes? So others could find it. |
Hi @Wurstnase, I have no problem with sharing. I wouldn't put it in the github tree because it might be confusing for others. |
Hi, I am trying to modify Teacup to serial port 1 instead of 0 on a melzi board (1284p). If I modify the pin numbers for RXD and TXD nothing changes. In the serial code I can also not find any references to these pins. How can I change the configuration so that serial port 1 is used ?
Thanks
The text was updated successfully, but these errors were encountered: