Cognoscis

Think. Understand. Apply

Youtube introduces 3D videos

Posted by cognoscis on 21st July 2009

The most popular video broadcasting website which already allows users to upload true HD videos has just achieved another milestone. Google is well know for letting its employees explore their own projects to promote creativity. As a result of the same, one of its employee, YouTube Pete (His display name on support forum) has developed this cool feature in his granted project time. To upload the video, he suggests to upload the videos in crosseyed. But even if the video is in parallel mode, you can always add the tag yt3d:swap=true this will make sure that the it will work correctly. He has also given two more tags that can be used in the tags area while uploading

yt3d:enable=true Enables the view mode. (obviously you’ve already discovered this)

yt3d:aspect=3:4 Sets the aspect of the encoded video.

Also, to fix up the old videos, there is a tag that lets the uploader to set the exact cordinates for both, left and right sources. An example he gives is yt3d:left=0_0.1_0.5_0.9 and yt3d:right=0.5_0.1_1_0.9 where the numbers are of the form x_y_z representing the exact co-ordinate. Since this is his side project, he says the fixing of the bugs will take some time. For example, the above mentioned anaglyph bug makes it confusing for the uploader regarding the stacking of the left and right views. None-the-less, the viewer can watch the videos in many different modes by selecting them from the drop down menu just below the video screen.

3D video in crosseyed mode

3D video in crosseyed mode

There are many videos already on youtube that can be viewed in 3D. As shown above, you can view them in different modes. I do not have 3D glasses  right now on me. So, I just used the cross-eyed mode and viewed the video with my eyes crossed. What you need to do is this, cross your eyes (Meaning bring them towards each other) while looking at the video. During this, there will be a time when the left and right videos will co-incide. Stop at that point and try to focus on it. If you are not getting it, you can try this first by drawing two points (thick) 10 cm apart on a white sheet and try to see them as a single point in the same way as above. Then you can shift to the video. This will make the video appear 3D. But of course, this will become irritating after some time :D . So, the best way is to watch it using the 3D glasses and the anaglyph mode. You can buy one as the videos are going to increase anyways. Or, you can make one yourself. Its quite easy and explained on many websites. For your convinience I will be putting up the procedure here.

Material needed:

  • Cardboard – For the frame
  • Cello tape or glue
  • Glass papers Red and blue. Also called acetate sheets usually available in the shops where you buy art supplies. or you can use transparent plastic sheets and colour on them. Make sure the plastic is sufficiently thick. As thick as 5 pages of a good book.
Stencil for the glasses

Stencil for the glasses

Procedure:

First cut the cardboard in the shape of the 3D glasses. I have uploaded an image that can be used as reference. The small squares need to be made hollow on which the blue and red plastic will sit.

Next cut the glass papers a little bigger that the square holes that you made. Stick the red paper on the LEFT (It must come on your left EYE) and the blue on the right. Then stick the entire frame together. Thats it you are done and ready to watch the 3D videos using the colour modes (anaglyph) from the menu. Try with different colours and choose the best one.

Note: You can also use the CD case which is essentially transparent plastic. If you can cut it into squares and fix it on the above stencils then good. Later you can colour them with permanent markers. Else, you can use the above frame that you cut as stencil and colour directly on the case itself and use it to watch the video (For the lazy people :P ). Anyhow, do check them out and enjoy.

Tags: , , , , , , , , , , ,
Posted in Uncategorized | 3 Comments »

How to make a PCB at home

Posted by cognoscis on 4th July 2009

I think this is a redundant topic. But what the hell, cyberspace is being wasted on useless subjects, so repetition of something useful wouldn’t hurt. Breadboards are the best way to learn or test a circuit. Then, you want to make a more permanent circuit, so you go for one of those general purpose PCBs. I dont have anything against the general purpose PCBs, but as the circuit becomes more complex, you become entangled in a mess of wires that can drive you crazy. Completely nuts. Debugging the circuit will become very difficult, irritating and time consuming. To give you some example just look at the pictures below. The breadboard has a circuit to generate 38 kHz IR signal for modulated IR sensor explained in my previous post. The second picture is a part of LDR sensors I made for my line follower robot. The picture has a comparator circuit and a motor driver circuit and you can see the mess the wires have made. It still has the LEDs and the LDRs going around the robot. The best way to eliminate this mess is to make your own PCB so that you can eliminate the wires and make really compact connectors from one board to another. So, lets see how this process goes

IR Tx on breadboard

IR Tx on breadboard

General purpose PCB mess

General purpose PCB mess

First of all, you need to design the circuit to draw on the copper clad plate. I personally feel that ExpressPCB is good enough for this purpose. Lets face it, even though there is an option for double side design, we hardly use it. Soldering SMDs is a bit more complicated so a single side design is more than enough even for moderately complicated circuits. You can freely download the software from here and use it to design the circuits. The software has both a schematic and PCB designer. You can make a schematic in ExpressSCH and generate a netlist and then import this to the ExpressPCB to generate a PCB design. But I think its better to design the PCB ourselves so that we can optimize it better. Few tips to help you make better designs

  • Keep the connecting paths about 1 mm so that they remain intact when handled roughly.
  • Use as less space a possible. This is one of the prime reasons we make PCBs in the first place
  • Start designing with the copper in top layer and make the PCB in the normal way. After it is completed, transfer it to the bottom layer to obtain the mirror image of the circuit.
  • After you design the entire circuit, you will be left with a lot of empty space. Fill as much of this space as possible and connect that huge area to the ground point and/or the Vcc. There is also an option to just fill the empty space without connecting it to anything else. This is done to reduce the amount of Copper that needs to be etched. Less the amount, faster the etching process will be. Also you will save the etching agent. An example circuit is shown below. Its for 4 modulated IR transmitters with its own power supply and switch
IR PCB

IR PCB

Once you have your PCB design, you can print out that circuit. Make sure it is inverted (Mirror image) as you can see in the picture above. After the circuit design, there are two processes that can be followed. In this post I will describe the one with the iron box. For this process, we need to get the print out of the circuit on a paper. Glossy paper is preferred, but even normal white paper will do. The most important thing is that the printer must be a LASER printer. This is vital because, we will transfer the ink on the paper to the copper-clad plate. To transfer the circuit, follow these steps

  • First, properly clean the copper surface so that there is no dust or any other impurity and completely dry it.
  • Carefully place the circuit on the copper and place a hot iron box on top of it. As soon as you do this, the paper will stick to the copper.
  • Keep ironing the paper for about 10 min. Dont be in a rush, let it take its time. After about 10 min, gently peel off the paper. If done properly, the circuit diagram will have transferred onto the copper plate.
  • Use a black marker to fill out any places where there is little ink. You may also want to draw the lines that look dim. Be careful near the holes. The finished product will look somewhat like in the picture below

dirty copper clad plate. Needs to be cleaned

dirty copper clad plate. Needs to be cleaned

Circuit transferred onto copper plate

Circuit transferred onto copper plate

After transferring the circuit you need to remove the excess copper from the plate. This process is called etching and we will use Ferric Chloride as the etching agent. Its easily available salt and should be carefully handled as it is very corrosive. Keep all the good dishes away from it and use some old plastic trough. Make a solution of ferric chloride in the trough. The concentration of the solution need not be precise. Just mix the salt in little amount of water till the solution becomes opaque and reddish brown (colour of rust). Dont use a lot of water, it will be just waste of the salt. If possible, warm the solution a bit. This is not necessary, but it will speed up the process. Dont heat it, just warm it. Then insert the Copper plate into the solution and eep stirring it. Normally it will take about half an hour for the copper to come off. Be patient and keep stirring, it will speed up the process. After the copper is etched, you will get a PCB something like the one shown below

After etching

After etching and drilling

After the etching is done, we need to drill the holes to place components. I used 0.8 mm drill bits to make the holes. The above picture was my first attempt and you can see that I have messed it up. But, its really not that difficult. You may need one or two practise rounds. But, you need to be really careful when drilling the holes belonging to ICs. The holes must lie in a straight line else you will have a really hard time placing the IC. Trust me, I know from experience. Now, these drill bits are definitely available in the hardware shops, but a bit difficult to find. If you live in Bangalore, then you can definitely find it in SP road. Thats where I bought them. You cannot use 1 mm drill bit, it will be VERY big. You can see the hole above C3 in the PCB. Thats from 1 mm drill bit. Use 0.8 mm, its optimum. To get an idea, below is the picture of those bits and to compare, I have place a 0.5 mm lead between them.Also, I used these bits with the normal heavy duty Drilling machine without any problem. They will fit correctly and be careful as they can break if not handled carefully

0.8 mm Drill bit with 0.5 mm lead in the middle

0.8 mm Drill bit with 0.5 mm lead in the middle

With the drilling, you have now come to the final stage. Not it is soldering time. You can follow my soldering guide to solder the circuit elements. Always use IC holders in the circuit. The finished product will look as shown in pictures below. I have not soldered everything, but you can see how neat and organized the circuit is. This circuit holds 4 modulated IR transmitters along with its own power regulator.

Soldered PCB (Bottom Surface)

Soldered PCB (Bottom Surface)

Soldered PCB (Top surface)

Soldered PCB (Top surface)

I really apologise as all the snaps are not of the same PCB. I did not take any snaps during the maing of the last one. So, I had to use the older pics. But it gives you the idea of each and every step. Please feel free to share anything other than what I have put up and please do ask for any clarifications.

There is one more process; the one using UV light. I have not yet tried it. I think I will try it and share the outcome

Tags: , , , , , , ,
Posted in Robotics | 1 Comment »