. .

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Quote Originally Posted by Doddy View Post
    Interested to see how this goes. Glad to hear you're bit-banging, though as the 328 is inline with the axis pulses to the stepper drivers it has to keep up at all time (not just homing) and I'd be curious if you can hold the signalling whilst I2Cing the display - interesting challenge.

    I did realise after writing that the optos were for homing switches/reflection into the DDCS, so, yeah, will be fine - I'll withdraw that.
    Hi Doddy,

    So it turns out if you ditch the standard I2C/TWI wire.h library and display driver, crack open the 328p datasheet, write your own crude framebuffer and I2C non-bocking state machine that operates directly on the TWI registers you can tick the state machine at a 2-3us per tick penalty. Will put it on the scope and see if this is sufficient.

    Main loop becomes:
    1. Mirror stepper/home signals with squaring logic.
    2. Update framebuffer if needed (using a 5x7 font this is 5 memory reads/writes per character)
    3. Tick I2C state machine.

    I could remove the framebuffer to make it a bit faster if required, this will effectively amortise the font copy part at one byte/I2C tick.

    Cheers, Joe
    Last edited by devmonkey; 10-06-2020 at 08:23 AM.

  2. The Following User Says Thank You to devmonkey For This Useful Post:


Thread Information

Users Browsing this Thread

There are currently 9 users browsing this thread. (0 members and 9 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
  •