Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Create polarized pictures with your iPhone and Arduino

Create polarized pictures with your iPhone and Arduino

Taking great pictures means making them more vibrant enhancing saturation and contrast. Ynformatic has published some tips to help you do that by creating a DIY device to control a polarizer using an Arduino Pro Mini, an iPhone, and a screen from an auto-darkening welder’s mask.

A phototransistor located facing the iPhone’s flashlight LED is connected to both an external interrupt pin and an analog pin. Short pulses on the LED cause interrupts in the Arduino code which are used to synchronize the polarizer. Long pulses on the LED cause the Arduino to enter calibration mode. The time interval between syncrhonization pulses is continuously measured and divided into three equal parts. On receiving a synchronization pulse the voltage is set to 0V for one part, to the 45 degree voltage for one part and finally to 5V for one part. Voltage for the polarizer is supplied from an Arduino PWM output pin. To get a reasonably stable output the PWM frequency was increased to 32 kHz and smoothed with a second order RC filter. The liquid crystal display will be damaged by a constant DC voltage so a CMOS switch is used to alternate the polarity. A 2 kHz square wave generated from a free running Arduino timer is used to drive the switching.

An iPhone app written in Swift is responsible for the user interface and image processing.

Explore the schematic in the picture below, while the full source code for the Arduino and iPhone can be downloaded from here.

schematic-1

 

Read more Here

Pinned onto

Related Pins

Building a sweet plastic MIDI controller
Building a sweet plastic MIDI controller
HAL 9000 reimagined as a useless machine
HAL 9000 reimagined as a useless machine
An Arduino VU meter for classrooms
An Arduino VU meter for classrooms
Build your own robotic vacuum from scratch
Build your own robotic vacuum from scratch
An animatronic talking takeout container
An animatronic talking takeout container
IDE 1.6.12 released with Sierra support and more
IDE 1.6.12 released with Sierra support and more
PIXIE is an Arduino-based NeoPixel watch
PIXIE is an Arduino-based NeoPixel watch
Capture time-lapses with a steel and aluminum camera slider
Capture time-lapses with a steel and aluminum camera slider
The MR-808 is a robotic drum “synthesizer”
The MR-808 is a robotic drum “synthesizer”
Analyze your world with the WiSci portable spectrometer
Analyze your world with the WiSci portable spectrometer
Capcom CPS2 security programming guide
Capcom CPS2 security programming guide
A community-made, Arduino-powered interactive town map
A community-made, Arduino-powered interactive town map
PyroGraph is a plotter that burns images on paper
PyroGraph is a plotter that burns images on paper
Build your own robotic arm out of cardboard
Build your own robotic arm out of cardboard
Play the guitar on a guitar bag
Play the guitar on a guitar bag
Arduino-powered roller blinds
Arduino-powered roller blinds
Arduino Wiring is the latest addition to Windows 10 IoT Core
Arduino Wiring is the latest addition to Windows 10 IoT Core
An Arduino charging dock with Edison indicator lights
An Arduino charging dock with Edison indicator lights
An interactive ball for your dog’s remote entertainment
An interactive ball for your dog’s remote entertainment
A room light controller with its own light display
A room light controller with its own light display

Top


Shares