mtu-most / franklin

3D printer controlling software
GNU Affero General Public License v3.0
48 stars 17 forks source link

Unable to communicate with RAMPS 1.4 board using RPi 4 #75

Open bxpqxd opened 1 year ago

bxpqxd commented 1 year ago

Hi there! I'm doing a school project based on https://www.appropedia.org/Open-source_syringe_pump. I am new to RPi and RAMPS. While I've gotten franklin to run successfully, it does not seem to be able to communicate with RAMPS. Please provide guidance.

Background:

During Server Startup:

When navigating to website:

When clicking on the Upload button:

wijnen commented 1 year ago

Thanks for the detailed report.

The problem I see is that the dropdown does not show an option for the atmega2560 (which is the microcontroller on the RAMPS board), so uploading will never work. I'm not sure why that is missing. It may have to do with changes in the Arduino libraries.

A complication is that I recently changed the underlying system away from the Arduino libraries; I now use my own system ( https://github.com/wijnen/amat ). While this is better in general, I haven't written the microcontroller description file for the atmega2560, so that doesn't currently work at all anymore. Also, I haven't updated the upload system in Franklin's interface, so currently the way to upload the firmware to the microcontroller is by running "make upload" in the firmware directory (with some options on how to upload). This new system is all in the "broken" branch; nothing is in stable yet.

I'm hoping to get both of those issues fixed soon. I don't want to work on tracking the changes in the Arduino code, especially because I'm moving away from it. However, if you want to try to get stable to work, my guess would be that you need to either move the boards.txt file from the Arduino code to the place where it is searched for, or better: search for it in the place where it is now.

wijnen commented 1 year ago

Update: I have now added support for the atmega2560 to amat, and also to Franklin. Plus I have implemented the firmware uploading code again. So things should just work with the broken branch now.

I'm planning to release it as stable soon, so please let me know if there are any problems with it.