My end goal is trying to get something rendered using lasers and a MEMS scanning mirror. There are not that many resources online for this, but it seems like the basic idea is pretty applicable to general embedded systems principles. I am building the driver from scratch and having trouble with part of it, and hopefully can get some direction on what to learn and make sure my thought process/approach is correct? The idea is straight forward:
- Render a element and generate a ppm file to define each pixel value
- Convert that to a set of voltages for the DAC
- Based on the data sheet I can generate a look up table for voltage -> angles for the mirror
My main question is figuring out how to generate those sets of voltages. Is that even the correct approach? It seems like it will be a very similar approach to how LCD screens work with refresh rates.
HV_A (X+)
HV_B (X-)
HV_C (Y-)
HV_D (Y+)
HV_A = ((x_in / 8) + 1.25) * 56
HV_B = 140 - (((x_in / 8) + 1.25) * 56)
HV_C = ((y_in / 8) + 1.25) * 56
HV_D = 140 - (((y_in / 8) + 1.25) * 56)