Archive for the ‘ Misc ’ Category

Electronic Delay Latch

The Background

A while ago, I built a PC and used an All-in-Wonder Radeon 9700 Pro graphics card. For those who aren’t too familiar with them, read here. They were one of the first cards to require an external power connector to provide extra juice that couldn’t be drawn from the AGP bus.

Coupled with this card, I used an Enermax 435W PSU, which was easily sufficient in terms of power output and was a good, reliable brand. However, I ran into problems with the computer booting from cold.

The fans would start spinning for a brief second before everything died. In my fault finding, I removed the power connector from the graphics card and the system booted up fine and displayed a message telling me to plug the card connector in. Voila, everything works!

Well, except that everytime I want to turn the computer on, I have to unplug the card…not so good.

I came to the conclusion that it was the power supply’s surge protection of some sort kicking in and preventing the card from drawing the power it needed at boot up. (I tried a smaller, no name PSU and it worked fine. However, not wanting to destroy my hardware by using a cheap PSU, I needed a different solution).

The Delay

Since the system worked fine when the power was supplied to the card a few seconds after a cold boot, I figured the only sensible thing would be to simulate this delay electronically. In other words, have a system that sits between the card and the power connector that creates a delay between when I press the power button on the PC to power getting to the card.

After a bit of researching and developing and testing, I came up with the following circuit:

Schematic

Components:

(1x) TIP122 Darlington Pair Transistor
(1x) 47K Variable Linear Pot Resistor
(1x) 100uF 16V Electrolytic Capacitor
(1x) 5.1K Resistor
(1x) 1K Ressitor
(1x) 6V8 Zener Diode
(1x) 1N4001 Diode
(1x) 12V 6A (Double Pole Double Throw) DPDT Relay

Putting It Together

Assemble the circuit using either a bit of stripboard, or if you have access to PCB fabriaction facilities, feel free to use the following mask, but you’ll have to work out where things go for yourself…

PCB Layout

Connect everything up and run a test just to make sure it’s all working as it should. Remember, Yellow = +12V, Red=+5V, Black =0V. Connect it to the PSU and you should hear a definite ‘click’ as the relay latches and turns on. Make sure the transistors aren’t melting and that the capacitors aren’t exploding. Test it with nothing connected to the output just yet – use a multimeter to measure the outputs – they should read 12V and 5V when on.

When you are confident that it is working as it should be, connect it to your graphics card and enjoy never having to mess about with the power connector ever again!

How It Works

When the power button is pressed on the front of the computer (referred to as S1 in the schematic above), the 1k and the variable 47k resistor network allows some current to flow through and get stored in the capacitor.

As this charge builds up, the voltage at the Zener diode begins to rise. When it reaches 6.8V, the diode immediately begins to conduct, turning on the Darlington Pair Transistor.

This transistor pair is isolated from the main power circuitry using a power relay, which is in turn, switched on – causing the main 12V and 5V power lines to effectively connect straight to the graphics card via points A and B marked on the schematic. For reference, the additional diode is in place to protect the transistors.

The delay period can be varied to suit the application using the variable resistor.

Disclaimer

This is only a guide.

You may use the information in the article to help you solve problems you are having with your graphics cards or other related issues, but I AM NOT responsible for anything you blow up or damage. All the work you do is at your own risk. Remember: research and understand what you are doing. If in doubt, don’t do it. If you have any questions, post here or in the forum and I can try and help.

Cheers.

Basic HDR Effects

What is HDR?

HDR (or High Dynamic Range) is defined as: “A lighting procedure designed to emulate the way that light levels in the real world vary over an enormous range.” In other words, the pictures you take on your digital camera capture the light at the particular instant you take the shot. This could be referred to as an LDR shot (Low Dynamic Range) and although looks fine, with a bit of processing, can look a whole lot better. HDR tends to bring out detail that previously wasn’t visible and adds a certain depth to an image.

There are two methods which can be used to create a HDR image. In each case, to process and create the end result, you need a total of three pictures which differ from each other in exposure only. The exposure of each image will depend largely on the content of the shot, but as a rough guide, use -2, 0 and +2.

Taking Three Individual Shots

Using this method, you will invariably get a better quality HDR image with less noise. If your camera has the capability of setting automatic exposure brackets, use this method to obtain your three images at -2, 0 and +2 preferably in RAW or TIFF format.

If your camera does not have the automatic bracket exposure feature (most compact point and shoot cameras tend not to have this), it’s not a problem. You will simply have to generate the images manually.

Generating Three Images from a Single Shot

- Take your picture as normal – try to get the cleanest shot you can – noise becomes a problem using this method.

- Using a suitable image editing software package (eg. Photoshop), create two extra images with a + /- 2 exposure setting. In Photoshop CS2, this can be found under “Image > Adjustments > Exposure…”

- You will now have three photos which, to the eye, look like they have been taken at different exposures. The problem lies in that when the HDR generation stage is carried out, the software reads the EXIF data from the image files (information about the image based on the original camera settings). Since all three images you have were generated from the same original, they will all appear to be of exposure 0 to the software.

- To overcome this problem, use any freeware EXIF stripper to remove this information from your images. This will force the HDR software to read the images at ‘face value’.

Here are the images I ended up with for this example:

Exposure -2:

Exposure 0:

Exposure +2:

It is now time to create the HDR image.

Method 1:

This method involves using Photoshop to Automate the HDR generation process. This method gives good results, but is not all that customisable. In Photoshop CS2 select “File > Automate > Merge to HDR” and then select the images you created or shot and the software will do most of the work for you. Double check the exposure settings and make any changes you like to the end result.

Method 2:

This method yields a similar result to Method 1, but allows more customisable effects. It is done using software called Photomatix. Again, open the three images in Photomatix (“HDRI > Generate HDR”) and verify the auto detected exposure settings are correct. The program will then display a preliminary HDR output.

You can now tweak the end result slightly using “HDRI > Tone Mapping”

In this guide, for the example used, I used the following settings:

- Luminosity: 5
- Strength: 75%
- Colour Saturation: 65%
- White Clip: 4.310%
- Black Clip: 1.310%
- Light Smoothing: Medium
- Microcontrast Level: High
- Microcontrast Smoothing: 0

But feel free to experiment with your own settings to get a result you like. The end result I achieved with this example was:

Final Words:

This article is intended to be a rough and ready guide to creating basic HDR images. The example photos used are not of a particularly high quality but serve to give you a rough idea of what to expect. You can use any combination of methods in the LDR and HDR stage and have a play with the effects and settings – particularly the tone mapping in Photomatix.
If you do have a play, feel free to leave comments or questions here or post your results over in the forum. Higher res versions of the photos used in the guide can be made available through the forum if the request is there.

Remember I’m no photography expert!!!