My Projects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arduino:Spin-Scan [2021/07/30 04:09] – tonyarduino:Spin-Scan [2026/10/15 23:37] (current) – tony
Line 3: Line 3:
 \\ \\
  
-{{ :arduino:spin-scan:pc231605.jpg?200|Original camera setup to manually produce 360° animation.}}I wanted to automate the creation of 360° animated GIF photos.  This sort of thing has been done many times in various ways by many people, so I am re-inventing the wheel here, but I don't have their solution to hand.  The obvious way to do it appeared to be to use an Arduino board to control a stepper motor and synchronize the camera.  I had previously created such animations by manually moving the camera and taking many photos, then manually aligning the images and stitching them together to get a more or less smooth animation.  But this requires a subject that stays still as it takes a lot of time, and the images inevitably are slightly out of alignment. +I wanted to automate the creation of 360° animated GIF photos.  This sort of thing has been done many times in various ways by many people, so I am re-inventing the wheel here, but I don't have their solution to hand.  The obvious way to do it appeared to be to use an Arduino board to control a stepper motor and synchronize the camera.  I had previously created such animations by manually moving the camera and taking many photos, then manually aligning the images and stitching them together to get a more or less smooth animation.  But this requires a subject that stays still as it takes a lot of time, and the images inevitably are slightly out of alignment.\\ 
-\\ \\ \\ \\ \\+{{ arduino:spin-scan:pc231605b.png?400 |Original camera setup to manually produce 360° animation.}} 
 +\\
  
 Doing it the hard way, the first animation shows the raw frames jerking about, and the second shows the manually aligned frames giving a smoother animation: Doing it the hard way, the first animation shows the raw frames jerking about, and the second shows the manually aligned frames giving a smoother animation:
Line 31: Line 32:
 ===== Hardware configuration ===== ===== Hardware configuration =====
  
-  * Arduino Uno clone (duinotech UNO classic r3, p/n XC-4410)+I had a choice of a number of  recycled stepper motors, and settled on using a [[:electronic:actuator:stepper:msaf200b51]], a Sankyo Mitsubishi flat motor with 1.8º/step (200 steps per revolution) and runs off a 12V power supply.  Its low profile, and lack of any protruding shaft from underneath meant it could just sit on the desk while testing.
  
-  * LCD keypad shield clone (duinotech 2 x 16 LCD Controller, p/n XC-4454) +{{arduino:spin-scan:spinscan2.png?800|Fritzing connection illustration of Arduino, LCD, Stepper controller, stepper motor}}\\ 
- +The hardware setup consisting of the Arduino UNO with LCD shield, stepper motor controller, stepper motor, and an infrared LED for controlling the shutter on the camera.
-  * Stepper Motor controller (duinotech L298N based, Dual Stepper Motor Controller, p/n XC-4492) +
- +
-I had a choice of a number of  recycled stepper motors, and settled on using a [[:electronic:actuator:stepper:msaf200b51]], a Sankyo Mitsubishi flat motor with 1.8º/step (200 steps per revolution) and runs off a 12V power supply.  Its low profile, and lack of any protruding shaft from underneath meant it could just sit on the desk while testing.+
  
-{{arduino:spin-scan:p4188738a.jpg?640 |Arduino, LCD, Stepper controller, stepper motor}} +===== Parts list ===== 
-\\ \\ \\ The hardware setup consisting of the Arduino UNO with LCD shield, stepper motor controller, stepper motor (with rubber disk on the end of its shaft as a platform for mounting subjects), and an infrared LED for controlling the shutter on the camera (the green and white wires to the left go to the 12V power supply for the motor, the rest is powered from the USB port)+  * Arduino Uno clone (duinotech UNO classic r3, p/n [[:electronic:boards:arduino:xc4410|XC4410]]) 
 +  * LCD keypad shield clone (duinotech 2 x 16 LCD Controller, p/n [[:electronic:boards:shield:xc4454|XC4454]]) 
 +  * Stepper Motor controller (duinotech {{:electronic:datasheet:stmicroelectronics:ds_l298.pdf|L298N}} based, Dual Stepper Motor Controller, p/n [[:electronic/boards/xc4492|XC4492]]) 
 +  * [[:electronic:actuator:stepper:msaf200b51|MSAF200B51]], a Sankyo Mitsubishi stepper motor
  
-<html><br style="clear: both;" /></html>+{{arduino:spin-scan:p4188738a.jpg?640|Arduino, LCD, Stepper controller, stepper motor}}\\ 
 +The implementation with a rubber disk on the end of the stepper motor shaft as a platform for mounting subjects.  The green and white wires to the left go to the 12V power supply for the motor, the rest is powered through the USB port connected to the Arduino)
  
 ===== The program code ===== ===== The program code =====