Commit Graph
100 Commits
Author SHA1 Message Date
Hakan Bastedt 5f8c3ba5fc Firmware for EaserCAT-6000 brought in 2024-12-14 19:32:27 +01:00
Hakan Bastedt 909685cf0e Submitting design for fabrication 2024-12-14 11:47:00 +01:00
Hakan Bastedt 7ebc28a5ca Updated README after EaserCAT-5000 linuxcnc failure 2024-12-13 11:05:13 +01:00
Hakan Bastedt 77cc13f175 Updated EaserCAT 5000 description somewhat 2024-12-11 12:48:03 +01:00
Hakan Bastedt 2871fd7905 New place for eeprom programming program 2024-12-10 20:57:16 +01:00
Hakan Bastedt 44d2324a03 Updates to hw straps after startup of card. 2024-12-10 20:44:29 +01:00
Hakan Bastedt 1df85b5646 faulty .gitignore 2024-12-06 07:49:54 +01:00
Hakan Bastedt a653a3d94a Removed Gerbers. Generate them as needed instead 2024-11-25 22:32:34 +01:00
Hakan Bastedt e26d411d61 Updated reset circuit to PB12 2024-11-25 22:30:41 +01:00
Hakan Bastedt e285923d2e Updated 24V field voltage routing. Files sent for fab 2024-11-25 20:15:11 +01:00
Hakan Bastedt 0aba15aaab make xml files available 2024-11-25 12:37:30 +01:00
Hakan Bastedt 29fb2bfe6c make xml files available 2024-11-25 12:36:07 +01:00
Hakan Bastedt 76335711e6 Conf, untested 2024-11-25 12:32:10 +01:00
Hakan Bastedt 4e32128a0f Fixes to e3000 2024-11-21 21:28:56 +01:00
Hakan Bastedt cdce935560 Final update of README.md for this time 2024-11-21 11:49:29 +01:00
Hakan Bastedt 6e0496805a Updated README.md 2024-11-21 11:40:25 +01:00
Hakan Bastedt 3bd59f4c3e Updated README.md 2024-11-21 11:39:24 +01:00
Hakan Bastedt 92244e3c9c Updated README.md 2024-11-21 11:17:29 +01:00
Hakan Bastedt b722cc6b25 Moving all to Kicad8. Housekeeping symbols,libraries,3d-models 2024-11-21 11:10:24 +01:00
Hakan Bastedt 0795eea21e Updated README.md 2024-11-20 16:48:25 +01:00
Hakan Bastedt d38497ed85 Updated README.md 2024-11-20 16:45:50 +01:00
Hakan Bastedt 1918604586 Ny structure. Start of the "main" branch 2024-11-20 11:18:13 +01:00
Hakan Bastedt 31b896871d Actually fix the hex wrongful alignment 2024-11-18 12:36:50 +01:00
Hakan Bastedt 3a44cded1f Added study of OS version, NICs, computers to see what cycle times are reliable 2024-04-14 20:40:11 +02:00
Hakan Bastedt c710f3e57e Added valid xml and bin esi for AX58100, from evaluation board, converted with siitool 2024-04-14 20:38:58 +02:00
Hakan Bastedt 855553bed7 Test version, test OS and nic. Added counters to detect work/no work 2024-04-14 13:07:43 +02:00
Hakan Bastedt a4ca1f641a Tried to extrapolate when missing position data. Didn't work as expected but I'll keep it. 2024-04-12 17:56:26 +02:00
Hakan Bastedt b1cc8f1717 Updated README 2024-04-11 12:19:39 +02:00
Hakan Bastedt 55f7e19e88 Updated readme 2024-04-11 11:22:21 +02:00
Hakan Bastedt 220daa4408 updated .gitignore 2024-04-10 10:36:24 +02:00
Hakan Bastedt 37c14850bf Replaced runningaverage (uses malloc) with CircularBuffer 2024-04-10 10:36:01 +02:00
Hakan Bastedt ed9af2ec50 Reduce irq delay if it has gotten to large 2024-04-09 20:24:16 +02:00
Hakan Bastedt 939470a0c6 Mods to make encoder work again, and a possible 2nd iteration of encoder config 2024-04-09 08:25:59 +02:00
Hakan Bastedt ec1c8fc70f Enable encoder again. Cleanup of unnecessary variables 2024-04-07 23:27:10 +02:00
Hakan Bastedt 5eda2b451e Use calibrated frequencty for the base timer. No big difference but more scientific, maybe 2024-04-07 22:55:46 +02:00
Hakan Bastedt 226cbc5035 Updated READM.md 2024-04-07 22:54:32 +02:00
Hakan Bastedt 39e2ab31f1 Adaptive (just max over time) maxIrqServeTime 2024-04-07 22:35:52 +02:00
Hakan Bastedt b164040829 Removed debug-ish compiler directive NEEDED 2024-04-07 22:15:37 +02:00
Hakan Bastedt 084e6891b6 Updated readme 2024-04-07 21:54:21 +02:00
Hakan Bastedt ed8e4d8d39 Working linuxcnc lathe config with 2 ms cycle time 2024-04-07 21:53:25 +02:00
Hakan Bastedt a829b0c6e2 Standalone unix port of step generator, also stm32 arduino 2024-04-07 21:51:36 +02:00
Hakan Bastedt ab1a306d86 Works really nice now. 20 usecs base period => 50 kHz, 25 kHz pulse freq. 2024-04-07 21:45:53 +02:00
Hakan Bastedt 544dd5ed85 I works.
Use 4.19-rt kernel
Ethernet Intel I210 controller
ethtool -C enp1s0 rx-usecs 0 tx-usecs 0
2 ms loop time in linuxcnc .ini and .xml and code
baseTimer period can be adjusted
startTime for baseTimer can also be adjusted.
2024-04-05 18:30:33 +02:00
Hakan Bastedt 511e6442e9 Removed all real work, now just echo 2024-04-05 10:53:12 +02:00
Hakan Bastedt 63fafb4936 FIx 1c13 index manually, nLoops is back 2024-04-05 09:54:56 +02:00
Hakan Bastedt efa03e3095 Removed hex specifier 0x where it shouldn't be 2024-04-04 16:13:20 +02:00
Hakan Bastedt dcf6c2d18a jitter flawed, removed 2024-04-04 10:38:27 +02:00
Hakan Bastedt 34e60e43d8 Adaptive max cycle time adjustment, use maxCycleTime 2024-04-03 21:21:51 +02:00
Hakan Bastedt 294831465b Added max irq time and jitter time measurement 2024-04-03 21:17:15 +02:00
Hakan Bastedt 5c128f49b5 syncTimer can be on flawed time units 2024-04-03 20:40:58 +02:00
Hakan Bastedt 9e00caf7c5 Added frequency-calibration to base-thread timer 2024-04-03 20:34:28 +02:00
Hakan Bastedt 1d14e1f295 At least it keeps nLoops at one, always 2024-03-28 10:09:12 +01:00
Hakan Bastedt 5d90765920 Didn't help using TICK_FORMAT in setOverflow() 2024-03-27 23:06:13 +01:00
Hakan Bastedt e6ae2ad3c7 Test case for HardwareTime frequency discrepancy + doc 2024-03-27 22:03:10 +01:00
Hakan Bastedt ea5a39d300 wip now the 50 kHz timer is only 40 kHz. How come? 2024-03-26 22:59:41 +01:00
Hakan Bastedt 88bd1ead78 pos_scale goes into make_pulses from lcnc 2024-03-23 21:49:13 +01:00
Hakan Bastedt dccbd97a04 Tried to optimize BASE_PERIOD but 12000 ns (83 kHz) is the best it can do right now 2024-03-23 20:27:32 +01:00
Hakan Bastedt 1b8721930e Shortest BASE_PERIOD is 12000 as it is now. Plus some cleanup 2024-03-23 20:09:35 +01:00
Hakan Bastedt 8710a547fe Yesss software stepping works now. 2024-03-23 19:51:26 +01:00
Hakan Bastedt 369a795ce5 wip 2024-03-23 18:02:38 +01:00
Hakan Bastedt 2df0a0980c Stepgen3 is driven by HardwareTimer, in a way that resembles EtherCAT setup. Seems to actually work. 2024-03-22 22:38:16 +01:00
Hakan Bastedt 6383d6de89 Working test-program using user LEDs and delays 2024-03-22 21:20:31 +01:00
Hakan Bastedt 7bff3f3789 linuxcnc stepgen is now in StepGen3. Compiles 2024-03-22 17:31:21 +01:00
Hakan Bastedt 23fe81afbe Factored Stepgen2, StepGen3 is a copy of Stepgen2 2024-03-21 16:45:59 +01:00
Hakan Bastedt fa34d81e41 Factored Stepgen2, StepGen3 is a copy of Stepgen2 2024-03-21 16:45:46 +01:00
Hakan Bastedt 30a9f10c7b Well it works, network-wise. But there are those extra peaks that have been since the start. Let's see if I can remove them. Welcome StepGen3 2024-03-21 16:28:55 +01:00
Hakan Bastedt 8f26a10224 It works. I hate RealTek. Even with the r8618_dkms driver it doesn't work. I bought a Intel network card, set irq coalesce rx-usecs and tx-usecs to 0. Now it works works WORKS. No lost packages, no delayed packages. I hate RealTek 2024-03-20 17:06:24 +01:00
Hakan Bastedt d4fed6cfe8 Yes it works now. Made another implementation of the pulse IRQ and all that. We'll see if I keep this or go back to the older. It is IMPORTANT, REQUIRED to use a 4.9 linux kernel for it to work. There are obviously bugs in the RealTek network drivers R8168/R8169 in 5+ kernels. All this work could have been avoided with a 4.9 kernel. 2024-03-17 22:04:52 +01:00
Hakan Bastedt 27475eaecd Seems to actually work, but I have seen that before, so testing time 2024-03-14 10:15:23 +01:00
Hakan Bastedt 71ae242fc4 Fixed bug in extend32to64:extendTime() 2024-03-13 23:33:25 +01:00
Hakan Bastedt f341eb5074 wip 2024-03-10 22:40:25 +01:00
Hakan Bastedt fef934b103 wip 2024-03-10 01:03:50 +01:00
Hakan Bastedt 31be067dea After test in lathe. Basically ok, always use real Tstartf, not 1/n 2024-03-08 09:00:55 +01:00
Hakan Bastedt 94d68adbb1 Added Z stepgen. Both X and Z works on the scope 2024-03-03 19:01:02 +01:00
Hakan Bastedt e8ef618fcc Test in lathe coming. 2024-03-03 17:02:04 +01:00
Hakan Bastedt c21d42cf0b Updated readme pending video release. 2024-02-19 21:51:31 +01:00
Hakan Bastedt cbc45bc80b Merge branch 'Video8' into stepper2 2024-02-19 21:41:46 +01:00
Hakan Bastedt 7ffd757fb5 After building the first board. 2024-02-19 18:02:48 +01:00
Hakan Bastedt 30dc44d5e6 Direction output to dirPin. 2024-02-16 11:45:06 +01:00
Hakan Bastedt 2b2be4f63d Going for test in the lathe 2024-02-13 10:49:57 +01:00
Hakan Bastedt cbae816bd9 More debug variables 2024-02-13 10:49:36 +01:00
Hakan Bastedt c0d2bfcf62 doc update on stepgen problem and solution 2024-02-12 18:37:16 +01:00
Hakan Bastedt f4a15afa8a a cycle's pwm train maight have been too long and run into the start of next cycle's pwm train. That's gone now and it seems to work.
A more brilliant solution is needed for this.
2024-02-11 19:56:16 +01:00
Hakan Bastedt c04ac0e74b Consistently get SM2 event now. Must check directly in irq. DIG_PROCESS modified to check this ALevent copy 2024-02-09 22:58:28 +01:00
Hakan Bastedt 6d18c2cb3f Clear ALevents for DC_sync0 and SM3 might have solved the uneven pulse train. Looking better now. 2024-02-09 17:28:18 +01:00
Hakan Bastedt d0433b29cf cleanup and removing StepGen from active code 2024-02-08 21:33:31 +01:00
Hakan Bastedt fe3de876fa Class StepGen2 done after Stepgen.odb 2024-02-08 21:28:48 +01:00
Hakan Bastedt 2fb5252d37 CircularBuffer.h new file ending hpp due to version 1.4 od CB 2024-02-08 19:06:55 +01:00
Hakan Bastedt 43854ca4d0 wip 2024-02-05 21:22:23 +01:00
Hakan Bastedt dbb4d0f34e Update 2024-02-05 20:32:49 +01:00
Hakan Bastedt f9b37cfa6c Document stepgen 2024-02-05 01:04:20 +01:00
Hakan Bastedt 2b2704bb17 Added timer2 for proper start point 2024-02-02 21:43:58 +01:00
Hakan Bastedt 0384646972 wip 2024-02-02 15:26:01 +01:00
Hakan Bastedt 133df5662d wip, before timer stuff 2024-02-02 12:09:49 +01:00
Hakan Bastedt d1eb1d9a40 logic might be there 2024-02-01 20:30:02 +01:00
Hakan Bastedt 934f3cb028 Octave files not commited 2024-01-29 12:08:01 +01:00
Hakan Bastedt d60822388e ordered 2024-01-26 22:02:32 +01:00
Hakan Bastedt 31d24e2676 Fab from this version 2024-01-26 16:38:10 +01:00
Hakan Bastedt c444f9a496 Getting ready for fab 2024-01-26 16:27:17 +01:00
Hakan Bastedt e234ea7a97 morfe copper in +5V leads 2024-01-26 13:44:45 +01:00