Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

LineCamPrinter

58 Byte hinzugefügt, 16:10, 17. Mär. 2019
/* Details of operation */
[[Datei:LineCamPrinter.jpg|400px600px]] 
LineCamPrinter is an instant picture camera like a Polaroid, however this particular thing is special as it captures and immediate print the scene line-by-line. The main components are a 128x1 CCD line array for capturing on line of the scene per time and a thermal receipt printer to instant printing of the captured line. A powerfull Arduino-compatible microcontroller ([https://www.pjrc.com/store/teensy32.html Teensy 3.2 from pjrc.com]) controls the capturing and read out of the CCD line and as long as the shutter-button is pressed it prints the automaic-gain-controlled and dithered data from the CCD line to the thermal printer.
# TSL1401_ReadLine(): The analog values of the pixels can now be shifted out and read by the ADC. This is done using the ADC.h from Teensy to do it in very high speed. The minimum and maximum pixel values of the line will be determined and averaged over several line readings. These are used to bring the picture data to an always maximum contrast by mapping with the min and max data.
# After read-out, the process starts again at 2.
 
As long as the trigger button is pressed, every line gets further dithered using Floyd-Steinberg and send to the printer immediately. Because there is a long TX FIFO, the printing can continue even quite a while after capturing. However, as everything is done via interrupt, the capturing of new lines is still done with good timing.
 
[[Datei:LineCamPrinter Inside.jpg|Inside the box|600px]]
== Code ==
https://github.com/hackffm/LineCamPrinter
1.954
Bearbeitungen