Re: LPC port of RepRapFirmware December 17, 2019 04:24AM |
Registered: 13 years ago Posts: 224 |
Re: LPC port of RepRapFirmware December 17, 2019 11:12PM |
Registered: 11 years ago Posts: 341 |
Re: LPC port of RepRapFirmware December 18, 2019 01:21AM |
Registered: 7 years ago Posts: 110 |
M558 P1 H5 F120 T6000 ; DID NOT WORK set Z probe type to modulated and the dive height + speeds
M558 P4 C2 F360 T6000 H3 R0.5 ; SET IR PROBE AS AN ON-OFF SWITCH G31 P500 X0 Y31.5 Z1.5 ; set Z probe trigger value, offset and trigger height
//RRF equiv X Y Z E0 E1 E2 //RRF C Index 0 1 2 3 4 5 // Xmin Ymin Zmin Xmax Ymax Zmax endstop.pins = {1.24, 1.26, 1.29, 1.25, 1.27, 1.28}; // Z Probe pin // Probe pin can be NoPin and select from an "EndStop Pin" // (which are digital input) // using the C parameter of M558. // Note: Expected to be an ADC pin for certain modes, // if needed then a spare A/D capable pin should be used and set zProbe.pin below. Beware that pins configured for // ADC are **NOT** 5V tolerant zProbe.pin = 1.29; zProbe.modulationPin = NoPin;(I know that we only use 3 of the endstops as defined and the nMAX is redundant, but I left them as originally written)
Re: LPC port of RepRapFirmware December 18, 2019 02:44AM |
Registered: 11 years ago Posts: 341 |
endstop.pins = {1.24, 1.26}; zProbe.pin = 1.29;
Re: LPC port of RepRapFirmware December 18, 2019 10:39PM |
Registered: 7 years ago Posts: 110 |
M558 P1 H5 F120 T6000 ; set Z probe type to unmodulated and the dive height + speeds
M558 P4 C2 F360 T6000 H3 R0.5 ; SET IR PROBE AS AN ON-OFF SWITCH
Re: LPC port of RepRapFirmware December 18, 2019 11:25PM |
Registered: 11 years ago Posts: 341 |
Quote
sinned
Its either 0 or 1000
Re: LPC port of RepRapFirmware December 19, 2019 01:11AM |
Registered: 7 years ago Posts: 110 |
Re: LPC port of RepRapFirmware December 21, 2019 07:13PM |
Registered: 7 years ago Posts: 110 |
Quote
sinned
So to use the analog Mode 1, the Smart IR needs to be fed+5V3.3Vfrom somewhere, and the Signal and GND wires get connected to say the HE2 thermistor input. The +5V voltage can come from the same place that the LCD or servo would have gotten power from.
I'd really appreciate it if someone could comment on my understanding and scheme, I would appreciate it.
M558 P1 H5 F120 T6000
endstop.pins = {1.24, 1.26}; ZProbe.pin = 1.30;
Re: LPC port of RepRapFirmware December 22, 2019 07:11PM |
Registered: 7 years ago Posts: 110 |
Re: LPC port of RepRapFirmware December 22, 2019 11:12PM |
Registered: 11 years ago Posts: 341 |
Re: LPC port of RepRapFirmware December 23, 2019 01:54AM |
Registered: 7 years ago Posts: 110 |
Re: LPC port of RepRapFirmware December 23, 2019 05:07PM |
Registered: 7 years ago Posts: 1,007 |
Quote
sinned
sdavi-
thanks for he heads up!
for now i might try to go with 2 Z motors- X, Y, Z, Z1, E0 to stay at 5.
recompiling will be a project for me right now.
Re: LPC port of RepRapFirmware December 28, 2019 03:03AM |
Registered: 13 years ago Posts: 224 |
Re: LPC port of RepRapFirmware December 28, 2019 07:33AM |
Registered: 11 years ago Posts: 341 |
Re: LPC port of RepRapFirmware December 28, 2019 08:03AM |
Registered: 7 years ago Posts: 1,007 |
Quote
sdavi
Quote
jay_s
@sdavi
Any chance you can update the first post with the latest builds and boards supported? It would make it easier for new users to get up to speed with the project etc.
The forum doesn't allow me to edit old posts.
Re: LPC port of RepRapFirmware December 29, 2019 12:27AM |
Registered: 11 years ago Posts: 341 |
Quote
MKSA
It is interesting to read the whole thread as one can see the problems that can pop up and how to solve them.
On the other hand, it starts to contain too many weakly related issues/subtopics.
May be time to start a new one with the above request as first post ?
Re: LPC port of RepRapFirmware December 29, 2019 02:39PM |
Admin Registered: 11 years ago Posts: 3,096 |
Re: LPC port of RepRapFirmware December 29, 2019 02:47PM |
Registered: 10 years ago Posts: 14,685 |
Re: LPC port of RepRapFirmware December 29, 2019 06:42PM |
Registered: 7 years ago Posts: 110 |
Re: LPC port of RepRapFirmware December 29, 2019 11:03PM |
Registered: 11 years ago Posts: 341 |
Quote
Ohmarinus
Okay, so I started looking into the RRF files and I cannot get my head around it. First of all:
[reprappro.com]- introduction/commissioning-duet/
This site is dead, so I have no clue about starting to use this. Second of all I see all kinds of software coming around I've never heard of like bossac?
Is there maybe some guide you would recommend for someone using a Macbook pro that wants to install RRF for the first time? I am trying to get my Delta printer finished, it works really well but has two dimensional inaccuracies that I cannot seem to fix. The printer used to print fine. I have rebuilt it with higher precision parts and it doesn't want to print dimensionally sound somehow.
Any advice on getting this firmware forking on my SKR 1.3 would be very welcome.
Re: LPC port of RepRapFirmware January 02, 2020 06:57AM |
Registered: 13 years ago Posts: 224 |
Re: LPC port of RepRapFirmware January 03, 2020 04:33AM |
Registered: 4 years ago Posts: 213 |
Re: LPC port of RepRapFirmware January 03, 2020 05:30AM |
Registered: 11 years ago Posts: 341 |
Quote
jay_s
@sdavi
I have received the SKR v1.4 Turbo and I have 2.05 up and running.
This board has a port for an ESP and also has hardware SPI pins available for use. Pinout attached
I have created a config file for it and I have submitted it via github.
Are you willing to share the information about the wifi board you have been working on for the ReArm so I can look at getting it working on the SKR?
It would be great if we could work to getting software SPI config of the drivers working as well.
PM me if you're interested in seeing what can be done to get this going.
Re: LPC port of RepRapFirmware January 03, 2020 05:55AM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
@sdavi, @jay_s
I am also very interested in getting the WiFi/esp8266 boards working with SKR hardware (I have and SKR V1.1, SKR V1.3 and have an SKR V1.4 on order).
I've worked on the LPC176x port of Marlin (added flash eeprom emulation, improved the USBMSD/USBCDC support and implemented software serial, for TMC devices). So far I've managed to build the V3 version of the firmware (though have not yet tested it) and am currently working on understanding how the code all hangs together. I've not worked with ESP8266 devices before so would be interested to hear of anyone that has gone through the process of getting the WiFiSocketServer firmware built and installed on a device (I've got a few boards on order, but there are a lot to choose from so I'e be interested to hear what hardware you would recommend).
I'm sure I will have some questions, but in general I like to work through things and understand the code as much as possible, hopefully will not be too much of a pain!
Thanks for any help you can provide.
PS I'm gloomyandy over on github as well as here.
Re: LPC port of RepRapFirmware January 03, 2020 07:18AM |
Registered: 4 years ago Posts: 213 |
Quote
sdavi
I followed the instructions DC42 provided on the github page of the DuetWifiSocketServer. The only issue I found was when I installed the latest version of esp8266 in arduino which had problems compiling the socketserver, installing the older 2.4 version was then successful. There is a forked version DuetWifiSocketServer also in my github which is what i use with the LPC RRF3 port. It's configured to run at 6MHz SPI with 2 max connections. I made my own board (posted in this thread not long ago) which uses the ESP-12F WiFi Module.
Re: LPC port of RepRapFirmware January 03, 2020 08:26AM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
Thanks for the update. I've been looking at the schematics and it looks reasonably simple to hook things up (famous last words). A few more idiotic questions if you don't mind...
1. What IDE are you using? I managed to get RRF3 built on Linux (see below for a little feedback), using vscode and the command line. Looks like you are using the Arduino IDE for the ESP-12F is that correct?
2. With the WiFi module running what can you do? Are you able to run the DuetWebControl interface? If so what is the process for running this? Do the DuetWebControl files need to be on the SD card on main board? (I said these may be idiotic).
Feedback on building RRF 3 on Linux....
1. Directory layout. I struggled a bit with this at first but eventually ended up checking out CoreLPC4RRF and then checking out RepRapFirmware, RRFLibraries and DuetWiFiSocketServer into the top level CoreLPC4RRF dir as this seems to match the layout expected by the makefile.
2. I hit a few issues with case sensitivity of some filenames (WiFi v WIFI etc), but these are easily fixed.
3. One thing that is a little strange is that I have the V3-dev branch for CoreLPC4RRF, v3-dev-lpc branch for RepRapFirmware, but for both RRFLibraries and DuetWiFiSocketServer I have to have the master branch checked out. In particular if I checkout the v3-dev of RRFLibraries (as you might expect) instead of master then I get compilation errors (missing ReadLockedPointer and others). Not totally sure what is going on there, does this make any sense? Perhaps the v3-dev branch needs to be updated to match the most recent other code?
Thanks for all of your efforts on this!
Re: LPC port of RepRapFirmware January 07, 2020 04:57PM |
Registered: 4 years ago Posts: 213 |
Re: LPC port of RepRapFirmware January 07, 2020 05:59PM |
Registered: 7 years ago Posts: 110 |
Re: LPC port of RepRapFirmware January 08, 2020 03:28AM |
Registered: 11 years ago Posts: 341 |
Quote
gloomyandy
Hi,
quick update. I've been able to build both the main firmware (using vscode and the command line) and he esp8266 firmware (using eclipse - which reminded how much I dislike eclipse!). As recommended above I used an older version of the esp development kit 2.4. After a little bit of a struggle I managed to flash the firmware to the esp8266 module I've got (I had to get a more up to date esptool to get that to work).
I then did some basic tests on the SKR board with the firmware I'd built. Basic things seem to work, I can talk to the board via USB. But I need to spend some time configuring fans/heaters etc. and I've not tested any of the motion side of things.
I then hooked the two boards together (using the SPI port that would normally talk to the external SD card and which on the SKR V1.4 is exposed via the EXP2 port). I basically followed the Duet wiring adding resistors etc. as needed. I then fired things up and used M587 and M552 and to my delight the board connected to my access point with no issues. I can now run the DuetWebControl interface and this all seems to work. I did get an error on the initial load (network error) and I see in the debug output from the esp8266 that it is refusing connections from time to time (caused by the 2 socket limit?). I've uploaded gcode (upload speed about 100K is that to be expected?). I'm really pleased with the progress so far, I need to get more of the board configured to be able to test things a little more, but right now I'm off to make a cup of tea to celebrate!
Andy
Re: LPC port of RepRapFirmware January 08, 2020 05:37AM |
Registered: 10 years ago Posts: 14,685 |
Quote
gloomyandy
I've uploaded gcode (upload speed about 100K is that to be expected?).