. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hi Doddy,

    Yeh an FPGA would be an excellent choice although I don't have any non-BGA parts here and didn't want send out for 4 layer board to be made. Lattice have some TQFP parts that could be used but I haven't got any. I have some 485 line drivers though left over from running DMX lighting throughout my house, thanks for reminding me!

    On the noise issue, it is being caused by the 328p sampling the differential pair wrt ground without removing the common mode noise (which will always be there). If I'm right it would be completely eliminated by properly terminating the pair with a line receiver.

    The LUT does work nicely, I use an 8 bit address space at the moment, 6 input bits and 2 bits of state. I moved all my code into a loop that executes at startup, this iterates through the address space and writes the 8 bit output [2 bits of updated state as the FSM transitions, 6 bits of compressed output] into a 256byte block of memory aligned on 256byte memory boundaries. This removes the need to hand craft a LUT, all you are really doing is executing your logic for every possible input and caching the result.

    Then the actual runtime programme loop written in assembler reads the input port directly into the lower byte of the indirect addressing register pair, debounces, merges in the 2 bits of state, immediately does the lookup, this is made very easy by keeping the LUT is aligned with a 256 byte memory boundary.

    The assembler the decompresses the output bits, writes them out and updates the state bits. Repeat ad-nauseum.
    Last edited by devmonkey; 14-06-2020 at 04:34 PM.

  2. #2
    All home switch fixings are now done, it is amazing how long the little jobs take, this was a whole afternoon. Milled up a little block to hold the Z switch, decided it would be better outside of the axis rather than inside regards adjustment. Then had to drill two very awkward 12mm holes in the X bearing plates with a portable drill, for this I had to mill up a drill guide, still easier than dismantling the gantry.

    Click image for larger version. 

Name:	IMG_20200614_160329 (Large).jpg 
Views:	2615 
Size:	95.4 KB 
ID:	28370 Click image for larger version. 

Name:	IMG_20200614_160351 (Large).jpg 
Views:	2655 
Size:	98.6 KB 
ID:	28371 Click image for larger version. 

Name:	IMG_20200614_164852 (Large).jpg 
Views:	2610 
Size:	120.4 KB 
ID:	28372 Click image for larger version. 

Name:	IMG_20200614_164954 (Large).jpg 
Views:	2604 
Size:	95.3 KB 
ID:	28373 Click image for larger version. 

Name:	IMG_20200614_165056 (Large).jpg 
Views:	2599 
Size:	101.7 KB 
ID:	28374

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. BUILD LOG: 8x4 router build. Steel base & Aluminium gantry gantry
    By D-man in forum DIY Router Build Logs
    Replies: 57
    Last Post: 13-12-2019, 10:43 AM
  2. BUILD LOG: Design stage - All steel - 1200x750x110 - aluminium capable (hopefully)
    By oliv49 in forum DIY Router Build Logs
    Replies: 3
    Last Post: 08-06-2018, 01:18 PM
  3. welding steel base or just getting aluminium extrusion
    By reefy86 in forum Gantry/Router Machines & Building
    Replies: 200
    Last Post: 15-01-2018, 08:55 AM
  4. BUILD LOG: Steel Frame, Aluminium Hybrid Design Thread
    By f1sy in forum DIY Router Build Logs
    Replies: 0
    Last Post: 23-02-2016, 10:04 AM
  5. Steel vs Aluminium
    By gavztheouch in forum Metalwork Discussion
    Replies: 4
    Last Post: 26-05-2014, 10:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •