Archive for September, 2010

Microdata: HTML5’s Best-Kept Secret?

Thursday, September 30th, 2010

Have you never heard of the new microdata specification included in HTML5. I once read about it, but almost forgot it. But the Microdata: HTML5’s Best-Kept Secret article made me to remember this topic again. Similar to outside efforts like Microformats, HTML5’s microdata offers a way of extend HTML by adding custom vocabularies to your pages. The differences between Microdata, Microformats and RDFa Semantic Web technologies are primarily in the syntax.

Actually, despite its lack of publicity and HTML5’s still-incomplete status, microdata looks useful today and it is already being used by Google.

TDR kit built

Wednesday, September 29th, 2010

My Time Domain Reflectometer (TDR) circuit has been available as kit made by Far Circuits. The kit consists only of circuit board and components needed to build the circuit in a small plastic bag (you need to download the building instructions).

TDRkit

The original circuit design is from my web page and Far Circuits added 5V regulator and designed the circuit board.

I have written some information about the TDR kit earlier, but now you have more. I just finished building my own kit sample some days ago.

built_circuit_DSCN8141

Around half of the components on the kit are SMD components and half of the components are traditional through-hole soldered components. I was pretty easy to build, no problems there. I used lead free solder to build the circuit even though it might not be optimal solder if some components contains lead.

I first soldered the SMD components to clean circuit board using pinbypin method. Then I assembled the through hole components to their places and solder them.

TDR_kasattu

tdr_smd_DSCN8134

The kit worked well but with some reduced performance compared to my original design. The original circuit design used pretty high speed 74AC14 IC, but this kit I received used a slower speed 74HC14 IC. That was the actual IC that was in component bag instead of 74AC14 as listed on the component list.

Things seen on the pictures not included on the original kit: IC socket, pins to connect wire to, jumper wire connected between two pins to select the pulse length and the wired feeding power to the circuit.

NOTE: The first kit versions were shipped with 74HC14 IC. According to Farcircuits the newer kit versions are shipped with 74AC14 IC.

Producing Open Source Software

Tuesday, September 28th, 2010

Producing Open Source Software book tells how to run a Successful free software project. This book is about t the human side of open source development. It describes how successful projects operate, the expectations of users and developers, and the culture of free software. The book is released under an open copyright: it is available in bookstores and from the publisher (O’Reilly Media), or you can browse or download it from book homepage.

producingoss-cover-small

LED lamp lifetime

Monday, September 27th, 2010

LED light manufacturers are often claiming 50,000 hours or more for lighting lifetime. Unfortunately many times those lifetime expectations are not met. Usually the makers of those high those lifetime promises forget to include the lifetime and reliability of all components, and the real-world thermal conditions the LEDs are subjected too.

Just a few years ago, LEDs operated at such low power that they didn’t need any special cooling. But as LEDs have grown brighter and more powerful, thermal management has rapidly becoming a necessity. Designers need to understand that accurate thermal modeling as well as component selection will ensure their lighting designs meet their reliability and lifetime numbers.

Gerald_G_Light_Emiting_Diodes

Audio equipment design analysis

Thursday, September 23rd, 2010

I really like those electronics manufacturers that have the schematics of their devices on their data-sheets or manuals down-loadable from their site. Those schematics can aid in deciding if the equipment is well built, help in repair, designing possible modification and can be aid when you need to make your own designs that have similar features.

I saw the schematic of Rolls MB15b ProMatch Stereo Dual Converter mentioned at some Internet discussion.

MB15b

I took a look at the schematic. At the first look of the device it seemed to be pretty normal design, but some closer look at the schematic revealed some details that do not look so well designed. So here are my findings on the schematic.

Here is the circuit section that converts balanced signal from XLR input to unbalanced RCA output:

Ross1

The input section for balanced input looks pretty much standard design. It is a pretty well working classic design. The data sheet tells that XLR input impedance is 10 k Ohm and RCA output impedance is 100 ohms. Those are OK values if they are true. But the truth is that the technical data provided is not entirely correct.

The input impedance of the XLR input pin 3 to ground is 10 kohms as promised. The impedance from XLR pin 2 to ground seems to be around 20 kilo-ohms (two 10 kilo-ohm resistors in series; operational amplifier + input is pretty high impedance). So the input impedance the differential between pins 2 and 3 would see would be around 30 kilo-ohms.

But on the RCA output side the technical specifications are far more off from reality. The output impedance of the RCA output would be the promised 100 ohms only in two specific cases: The gain is sent to maximum (100 ohms resistor connected to operational amplifier output directly) or when there output is set to zero (100 ohm resistor connects directly to circuit ground). In all other cases the output impedance would be considerably higher! Turn the 100 kohms potentiometer a little bit off the extremes and the output impedance would be soon several kilo-ohms. Put the potentiometer to center (electrical center where there is same resistance from both ends to center), and the output impedance will be 25100 ohms!

This is for sure too much for a well designed RCA output and the cable capacitance will affect the sound on even quite short cables. As rule of thumb is to keep the RCA output impedance few kilo-ohms or less. A better design choice would have been to use a 10 kohms potentiometer on the output (would have given maximum 2600 ohms output impedance). Or a separate buffer opamp after the original 100 kohms potentiometer.

Here is the RCA input circuit:

rollsrca

RCA input floating ground strange if you look at it. The RCA connector grounds are not directly connected to circuit ground, instead they are connected to ground through 47 kohms resistor. The ground potential from RCA connector grounds is fed to differential operational amplifier circuit. It could be a good working circuit in the applications where both equipment connected to this adapter are grounded. In this case this quasi-differential input arrangement works as a ground loop problem solving circuit (similar approaches have been used on some old PC sound cards for audio signal that comes from CD-ROM).

The problem in this grounding arrangement is that if the equipment connected to RCA input is not grounded, all the leakage current on it needs to flow through the 47 ohms resistors to ground. A even small current (fractions of mA) can create quite considerable noise voltages. They can easily get to sound if the opamp differential circuit are not ideal. Also a leakage current higher than around 0.2 mA can create so high voltages over 47 kohms that the opamp input can’t handle them without distortion. So I don’t think this is an ideal input design.

In some other design version (older or newer version I don’t know) they use a different design.

The basic ideas used on the design are pretty good but the implementation lacks something….

EXIF data

Wednesday, September 22nd, 2010

Your photo files actually contain hidden information. EXIF stands for Exchangeable Image File Format, and is a standard for storing interchange information in image files, especially those using JPEG compression. Most digital cameras now use the EXIF format to ecord of the settings a camera used to take a photo or video. This information is embedded into the files the camera saves.

Most of it is pretty innocuous but not all. EXIF data includes the date and time the photo was taken. The model and serial number of the camera are recorded. And depending on the camera, the settings you used may also be stored.

Keep in mind that some smartphones store the location where the picture is taken to the picture EXIF data. This can be a good or bad depending how sensitive the location information is and how you use the picture. Remeber that there could be GPS location information is stored in the EXIF data. The data goes with your photos when they’re uploaded to photo-sharing sites. Don’t panic just yet. Photo navigation is still limited. The most important thing is to know exactly what is geotagged, although worrying about turning geotagging on and off is a little annoying. Check Javascript EXIF Reader example page to see this in use.

Typically you have needed special programs to read the EXIF data. Read EXIF data with Javascript article describes how to make small EXIF reader library capable of reading EXIF info from JPEG images. jQuery EXIF data plugin article describes a jQuery plugin that makes using EXIF data a matter of adding just a few lines of code.

exif

HDMI copy protection broken

Monday, September 20th, 2010

HDMI uses copy protection system called HDCP. The system is meant to stop HDCP-encrypted content from being played on devices that do not support HDCP or which have been modified to copy HDCP content. Manufacturers who want to make a device that supports HDCP must obtain a license from Intel subsidiary Digital Content Protection, pay an annual fee, and submit to various conditions. HDCP is a standard feature in televisions, cable boxes, satellite receivers and Blu-ray players in much of the modern world.

The HDCP master key that has leaked to Internet last week is legit HDCP copy protection code. The “key” was posted to the Internet on Tuesday, where it was quickly picked up.The HDCP master key in question is used to generate lower-level “device keys”. With the master key code it is possible to build devices that play copyright-protected content without having to pay for licenses.

The disclosure means, in effect, that the content flowing over the encrypted HDMI connection may be recorded and authenticated using an unlicensed device. The bitstream now can be recorded and decrypted, allowing an encrypted film to be copied – a huge blow to Hollywood which is a big fan of all kinds of DRM technologies.

Intel Threatens to Sue Anyone Who Uses HDCP Crack to produce hardware that defeats the HDCP technology. Intel still believes that this technology will remain effective.

no_hdcp

HTML5 music video

Sunday, September 19th, 2010

The Wilderness Downtown is an interactive film by Chris Milk. This masterpiece music video film is built using HTML5 technologies (unfortunately at the moment works only with Google Chrome browser). The music video tooks the user back to their childhood on an interactive journey set to the backdrop of We Used to Wait by the Arcade Fire. The Wilderness Downtown can our eyes to the interactive possibilities of the Internet. This presentation uses choreographed windows, interactive flocking, custom rendered maps, real-time compositing, procedural drawing, 3D canvas rendering and using images/video from Google street view as part of the presentation. Is this the future of the music videos?

thewildernessdowntown

Weekend Projects

Friday, September 17th, 2010

Weekend Project: Make a Simple Laser Communicator – Secretly shoot your voice across the room in stealth mode on the beam of a laser! Looks like an interesting project.

Weekend Project: Make a Talking Booby Trap – Having trouble with people snatching your stuff? Here is an inexpensive, sneaky gizmo you can make to keep those sticky fingers away.

Ground currents: Open neutral

Tuesday, September 14th, 2010

I received this kind of mail some time ago (part of the mail posted here with the permission from the writer):

“His cable stopped working so he called the cable company. The cable guy unhooked the coaxial from the main box.

After he unhooked the coax he struck it on the side of the amplifier and it arched severely to the point it burnt the coax. He did this repeatedly as to show the resident he had a problem. He left it disconnected and told the resident to call an electrician. After this, he had major issues in his home. 2 of his circuits were causing a severe ground loop. One circuit was on phase A the other circuit was on phase B. It would cause the voltage on one phase to drop as low as 40 volts and the other phase to go as high as 195 volts.”

“I’m trying to figure out how a coaxial cable could have caused all this problem. Any ideas?”

Based on the mail this sounds like “open neutral” problem on the house power feed.

The coaxial cable did not cause this problem. The original problem was the “open neutral” in the power feed coming to the house.The coaxial cable when it was connected provided a partial “fixup” for the problem acting as some kind of neutral (cable TV coaxial cables are grounded on the pole and at the house to electrical panel ground/neutral bus).

Lots of current flowing on coaxial cable caused the cable TV problems and later the burnt cable. When the cable TV coax was connected, it was hiding the original problem that could have been there for a long time. The coaxial cable acted like a (poor) substitution of neutral wire. Some or most neutral current slows back to ground through the coaxial cable shield instead of service cable neutral.

When the coaxial cable was disconnected you got a typical open neutral situation. When the neutral is not connected, the mains voltages on the both phases vary greatly depending on the loads in them. More load connected to phase means less voltage to it and more to other phase.  When the neutral is connected the system is stabilized and voltage does not vay much.

My advice was helpful and some time later I received another mail:

“His main nuetral was open, the problem went away once it was replaced. In addition his ground was severed at the ground rod. So, the coaxial was the only path the voltage could take. I thank you for your advice.”

Here is some more material on this problem:

A split phase electricity distribution system is a 3-wire single-phase distribution system, commonly used in North America for single-family residential and light commercial applications. In this system you have 3 wires feeding your home off the transformer: two hots and one neutral. The transformer is a 240V center tapped transformer. The neutral is the center tap. The center tap divides the transformer winding in the middle. So between hot and neutral you always get 120V. Neutral is kind of a return wire for 120V circuits. With the neutral you have two hot wires both capable of producing 120V to neutral. The neutral carries the difference in power between the two hots.

An open neutral simply means that neutral, or common wire is not connected somewhere. Basically an open neutral means that the line that regulates voltage feeding into your house goes bad. The result is normally that one leg of your incoming power rises above 120 volts, and the other leg fell below 120 volts. How much the voltages rise and lower depend on the loads in use in the house. Open neutral can lead to all kinds of stange effects.

Obviously a few volts either way is not an issue. Voltages below 120 volts won’t usually bother many loads or things just don’t work. Voltages considerably above 120 volts are the problem: light bulbs will blow and electronic equipment may get fried. The common result is that some lights in the home will burn dimmer than usual and others brighter, that this can be affected by other things in the home going on or off, and light bulbs can blow out and electronics can be damaged. Open neutrals can end in catastrophic fires.

When the main neutral becomes open at some place, the ground rods will try to give an alternate path for 120-volt circuits through the earth, but usually inadequately. So to a large degree the system of circuits is subject to 240 volts, which, depending on what is turned on out on the circuits, tries to run things by using the neutral bar as its path between its two hot main wires.

A resistive neutral is a nasty little problem. It has ultimately the same effects as an open neutral, but is much more subtle. With a resistive neutral, there is a connection, but it is bad. When no current is flowing through the neutral, it appears OK. The more current flows through the neutral, the more potential develops across it by ohms law. Resistive neutrals get worse with time because the place where the resistance is gets heated up. The resistive connection gets hot, it will burn a little further open, and the connection becomes even higher resistance.

The resistive neutral and open neutral problems can be analyzed with multi-meter and some other tools:

Basic analysis: Check the voltage from one hot to neutral, then from the other hot to neutral. If the voltages differ by more than a volt or two, you may have a problem.

You can also make more analyzing by checking how much the voltage varies when you turn on and off heavy single phase loads. If the load variations change the voltages considerably, you have problems.

If you happen to have a current clamp multi-meter you can make some more measurements. Place the current clamp over whole house feed cable (both live and neutral wire). When everything is correct should see in ideal situation zero currents (same amount of current coming to you house and leavign the the same wire). In real life this might not be exactly zero. The changes on the loads in the house (turn some heavy 110V load on/off) should not have any considerable effect on the clamp meter reading.

If you see many amperes of current on the clamp meter, there is for sure something wrong somewhere because some part of the current coming from you transformer has found some other route back to transformer. In this case you can suspect a problem and you should contact the electrical company to check for possible problems on their side. When you make measurements, write down the results you got and how you did the measurements. This information can be good to have around when you contact the electrical company about the problem.

You can also use clamp meter to measure currents flowing on the wire going to house grounding, all metal pipes coming to house and cable TV cable. There should not be any high currents there when everything is OK. If there are considerable currents, there is problems either inside your house or nearby it that should be fixed. Those currents will cause you problems by creating ground loop noise and magnetic fields inside the house.


Amerikan Pastası 1 Amerikan Pastası 2 Amerikan Pastası 3 Amerikan Pastası 6 Amerikan Pastası 8 Arabalar 1 Arabalar 2