Showing posts with label C. Show all posts
Showing posts with label C. Show all posts
Friday, 10 June 2011
Saturday, 28 May 2011
Tuesday, 24 May 2011
CamTim: Hacking a camera remote for time-lapse photography
CamTim can also be used in an external trigger mode, where the trigger can come from a wireless source (using ZigBee modules) or from an external sensor operating on TTL voltages. This is especially handy for bird and wildlife photography.
So how does the CamTim work?
Switches in the CamTim board are set to select the camera trigger delay from 20us to 40 minutes (the maximum delay is customizable to several days). A microcontroller (PIC16F84A) reads the switch settings and loops indefinitely to trigger a solenoid that then triggers the camera's remote control. Note that an amplifier is required to drive the solenoid and a diode is required across the solenoid to prevent back-emfs from reaching the mcu. A good design should probably include an opto-coupler to isolate the mcu from the solenoid.
Afterword: A cheaper solution is probably to use a 555 chip. But the 555 solution suffers from many problems including poor adaptibility and inability to create anything other than simple square wave pulse trains at a single frequency. On the other hand, a mcu-based solution such as this would allow a variety of frequencies, would relieve the user of the burden of carrying a bunch of resistances or a multi-meter to measure one and calculate the time-period. Furthermore, complex pulse patterns can be programmed into the mcu. For example, a pulse-train with an arithmetic progression of delays is an easy reach. Crucially, the mcu can be used to interface with wireless devices for remote triggering and with sensors for proximity triggering.
Monday, 23 May 2011
Sunday, 22 May 2011
Color Sensor
Colour sensor is an interesting project for hobbyists. The cir- cuit can sense eight colours, i.e. blue, green and red (primary colours); magenta, yellow and cyan (secondary colours); and black and white. The circuit is based on the fundamentals of optics and digital electronics. The object whose colour is required to be detected should be placed in front of the system. The light rays reflected from the object will fall on the three convex lenses which are fixed in front of the three LDRs. The convex lenses are used to converge light rays. This helps to increase the sensitivity of LDRs. Blue, green and red glass plates (filters) are fixed in front of LDR1, LDR2 and LDR3 respectively. When reflected light rays from the object fall on the gadget, the coloured filter glass plates determine which of the LDRs would get triggered. The circuit makes use of only ‘AND’ gates and ‘NOT’ gates.
When a primary coloured light ray falls on the system, the glass plate corresponding to that primary colour will allow that specific light to pass through. But the other two glass plates will not allow any light to pass through. Thus only one LDR will get triggered and the gate output corresponding to that LDR will become logic 1 to indicate which colour it is. Similarly, when a secondary coloured light ray falls on the system, the two primary glass plates corres- ponding to the mixed colour will allow that light to pass through while the remaining one will not allow any light ray to pass through it. As a result two of the LDRs get triggered and the gate output corresponding to these will become logic 1 and indicate which colour it is.
When all the LDRs get triggered or remain untriggered, you will observe white and black light indications respectively. Following points may be carefully noted :
1. Potmeters VR1, VR2 and VR3 may be used to adjust the sensitivity of the LDRs.
2. Common ends of the LDRs should be connected to positive supply.
3. Use good quality light filters.
The LDR is mounded in a tube, behind a lens, and aimed at the object. The coloured glass filter should be fixed in front of the LDR as shown in the figure. Make three of that kind and fix them in a suitable case. Adjustments are critical and the gadget performance would depend upon its proper fabrication and use of correct filters as well as light conditions.
When a primary coloured light ray falls on the system, the glass plate corresponding to that primary colour will allow that specific light to pass through. But the other two glass plates will not allow any light to pass through. Thus only one LDR will get triggered and the gate output corresponding to that LDR will become logic 1 to indicate which colour it is. Similarly, when a secondary coloured light ray falls on the system, the two primary glass plates corres- ponding to the mixed colour will allow that light to pass through while the remaining one will not allow any light ray to pass through it. As a result two of the LDRs get triggered and the gate output corresponding to these will become logic 1 and indicate which colour it is.
When all the LDRs get triggered or remain untriggered, you will observe white and black light indications respectively. Following points may be carefully noted :
1. Potmeters VR1, VR2 and VR3 may be used to adjust the sensitivity of the LDRs.
2. Common ends of the LDRs should be connected to positive supply.
3. Use good quality light filters.
The LDR is mounded in a tube, behind a lens, and aimed at the object. The coloured glass filter should be fixed in front of the LDR as shown in the figure. Make three of that kind and fix them in a suitable case. Adjustments are critical and the gadget performance would depend upon its proper fabrication and use of correct filters as well as light conditions.
















