PICnc-V2 icon indicating copy to clipboard operation
PICnc-V2 copied to clipboard

PIC32MX4 Modifications & MPLAB Project

Open n9wxu opened this issue 9 years ago • 20 comments

Improved performance and ported to the MX440. Temporarily removed the PWM feature. Added additional inputs to support a derivative HW board. Increased the step rate to 138khz. 80Mhz is starting to run out of steam at this point. Getting ready to use the PIC32MX470 to increase the clock speed to 120MHz.


This change is Reviewable

n9wxu avatar Dec 18 '15 04:12 n9wxu

Forgot to include the important changes to main & stepgen.

n9wxu avatar Dec 18 '15 04:12 n9wxu

Hardware files for the V3 PI Hat. V3 hardware is here https://oshpark.com/shared_projects/xTIz9hC0 The oshpark build is missing a MCLR pullup resistor.

n9wxu avatar Dec 18 '15 04:12 n9wxu

Some additional hardware issues on the V3 board at OSHPARK. X1_ENABLE is not connected to the PIC32. X1_Step will remain unchanged. Other Enables will become step generators and the step generators will become PWM.

n9wxu avatar Dec 19 '15 05:12 n9wxu

very interesting, I'm changing the board for debugging and testing .. congradulations n9wxu! top bot

adbensi avatar Dec 19 '15 22:12 adbensi

Good looking board. My only comment is it is generally a bad idea to put via's under pads. The reason is due to solder stencils. The via will absorb more solder than the pad will so you need a larger opening in the stencil to put more paste on those pads. It is better to move the via away from the pad so all stencil openings are a consistent size. Obviously if you do not plan on using stencils, this is not an issue.

n9wxu avatar Dec 19 '15 23:12 n9wxu

img_1665 img_1666

Board on right has engineering sample MX470. That will run at 120Mhz.

n9wxu avatar Dec 19 '15 23:12 n9wxu

Reached 200KHz. The stepper motor really moves!

n9wxu avatar Dec 20 '15 01:12 n9wxu

n9wxu, You are using SYS_FREQ = 80MHz and BASEFREQ = 150KHz with MX470 or MX440? great job! I look forward to see these speeds :+1:

adbensi avatar Dec 21 '15 22:12 adbensi

I push more code up tonight because it is at 200khz now.

Sent from my iPhone

On Dec 21, 2015, at 3:43 PM, adbensi [email protected] wrote:

n9wxu, You are using SYS_FREQ = 80MHz and BASEFREQ = 150KHz with MX470 or MX440? great job! I look forward to see these speeds

— Reply to this email directly or view it on GitHub.

n9wxu avatar Dec 22 '15 00:12 n9wxu

This restores the higher resolution steps and keeps the 200khz step rate.

n9wxu avatar Dec 22 '15 01:12 n9wxu

n9wxu, if You have odroid C1, there is last RT kernel https://github.com/adbensi/kernel-odroidc-3.10.80-rt102 Best Regards

adbensi avatar Jan 23 '16 01:01 adbensi

20160402_140117 Odroid C0 ready :D

adbensi avatar Apr 03 '16 23:04 adbensi

The Orange Pi One is a cheaper alternative ;-) On Apr 4, 2016 6:08 AM, "adbensi" [email protected] wrote:

[image: 20160402_140117] https://cloud.githubusercontent.com/assets/8729496/14235538/badadfb8-f9d7-11e5-9f3d-6e4644746a2a.jpg Odroid C0 ready :D

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/kinsamanka/PICnc-V2/pull/4#issuecomment-205074219

kinsamanka avatar Apr 03 '16 23:04 kinsamanka

how is the state at that project? im looking forwards for this

creisey avatar Mar 07 '20 16:03 creisey

I have had time for this project in some time. If I was starting now, I would use a teensy 4.0 the higher clock speed would speed the step rate considerably.

Joseph Julicher

On Mar 7, 2020, at 9:06 AM, iosias [email protected] wrote:

 how is the state at that project? im looking forwards for this

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.

n9wxu avatar Mar 07 '20 17:03 n9wxu

20160402_140117 Odroid C0 ready :D

i have some trouble with getting the odroid c0 running with linuxcnc... how did you proceed? all the tutorials i found are more than 2 year old and seam not woring anymore with the prebuilt machinkit image from https://0ptr.link i have trouble with SPI and network

cheers

creisey avatar Mar 10 '20 07:03 creisey

Hi!

You need my kernel changed to use ethernet on odroid.. please, try on my Github

Best regards

Em ter, 10 de mar de 2020 04:36, iosias [email protected] escreveu:

[image: 20160402_140117] https://cloud.githubusercontent.com/assets/8729496/14235538/badadfb8-f9d7-11e5-9f3d-6e4644746a2a.jpg Odroid C0 ready :D

i have some trouble with getting the odroid c0 running with linuxcnc... how did you proceed? all the tutorials i found are more than 2 year old and seam not woring anymore with the prebuilt machinkit image from https://0ptr.link i have trouble with SPI and network

cheers

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kinsamanka/PICnc-V2/pull/4?email_source=notifications&email_token=ACCTHGG3NAQMIDG6557BJCTRGXUXHA5CNFSM4BW7RGW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOKKR6Y#issuecomment-596945147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTHGFTKHAOWKUXMUXMPIDRGXUXHANCNFSM4BW7RGWQ .

adbensi avatar Mar 10 '20 09:03 adbensi

i tried that, but i had problems during the make process.

image it seemed related to gcc version 7

could you provide a compiled kernel to me? and what bases did you use? the Ubuntu MATE 18.04.3 image form hardkernel?

creisey avatar Mar 10 '20 15:03 creisey

Hi,

In January 2016, I compiled directly on the Odroid C0, in one images from repo Odroid that year .. this is a good reference to follow the same.

But Guys, recently I saw messages that there is something more recent here with Tennsy, it is working too?

Em ter., 10 de mar. de 2020 às 12:10, iosias [email protected] escreveu:

i tried that, but i had problems during the make process.

[image: image] https://user-images.githubusercontent.com/19647655/76326873-8bc3fa00-62e9-11ea-8e63-43f8076c5fa1.png it seemed related to gcc version 7

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kinsamanka/PICnc-V2/pull/4?email_source=notifications&email_token=ACCTHGEIDZT7H3AS67KV37LRGZJ6HA5CNFSM4BW7RGW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOLZ6XI#issuecomment-597139293, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTHGBZT2ODMSYITL5YDYDRGZJ6HANCNFSM4BW7RGWQ .

adbensi avatar Mar 10 '20 18:03 adbensi

i tried that, but i still cant compile, there are issues with gcc7, do you have the Odroid c0 running with Picnic?

is there a chance to buy a picnic hat? tindie option? ;)

creisey avatar Mar 21 '20 10:03 creisey