Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    How to read bitmap files from RRF SD card over the serial port.

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    125
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • bitofadummyundefined
      bitofadummy
      last edited by bitofadummy

      So I am doing some preliminary searching on how to get this done:

      I have an arduino/teensy board, connected to my main board over serial, instead of a display.
      for my next project i want to read a lot of bitmaps from the SD card on the mainboard.
      I know there are gcodes to list/read and write files, but these are meant for gcode files...

      So my question is if RRF can make the files on the SD card available to an Arduino over serial?

      (My ultimate goal is to create a printhead on corexy kinematics with multiple individually addressable diode lasers, to be used in a SLA or SLS printer. The Arduino reads the bitmap files uploaded with DWC, reads the steps of the x-axis motor and controls the multiple lasers according to color of the corresponding pixels. So my 3d models need to be sliced with a DLP slicer like Chitubox instead of a Gcode based slicer like Cura. This system would eliminate the need for a galvo system)

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @bitofadummy
        last edited by

        @bitofadummy the only mechanism that RRF provides to read imaged from the SD card is for the images to be embedded in a GCode file in either QOI, PNG or JPEG format, base64 encoded and with header and footer lines. The M36 command can be used to enquire what images a file contains, and the M36.1 command can be used to retrieve the data.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • bitofadummyundefined
          bitofadummy
          last edited by bitofadummy

          Thank you, I will see if I can use this function for my purpose...

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA