“Microduino Video output”的版本间的差异

来自Microduino Wikipedia
跳转至: 导航搜索
(Created page with "{| style="width: 800px;" |- | ==Outline== *Project:Microduino TV Output *Purpose:The course will teach us how to use Microduino to connect your TV and send video output ...")
 
Pkj讨论 | 贡献
 
(未显示2个用户的5个中间版本)
第26行: 第26行:
 
==RCA Cable ==
 
==RCA Cable ==
  
Before we start to build a video signal, we must get Microduino connecting to a TV. The cheapest and the simplest solution is RCA cable (sometimes called cinch cable) which is used to send audio or video signals. In the chart below, you can a RCA cable with three connectors.  
+
Before we start to build a video signal, we must connect Microduino to a TV. The cheapest and the simplest solution is RCA cable (sometimes called cinch cable) which is used to send audio or video signals. In the chart below, you can a RCA cable with three connectors.  
  
 
These cables typically transmit sound (red and white connectors) and video (yellow connector). In this case, all we need is the cable of the yellow connector.  
 
These cables typically transmit sound (red and white connectors) and video (yellow connector). In this case, all we need is the cable of the yellow connector.  
  
 
+
[[File:RCA线1.jpg|600px|center|thumb]]
[[File:RCA cable 1.jpg|600px|center|thumb]]
 
  
 
==Video Format==
 
==Video Format==
第37行: 第36行:
 
Video format consists of PAL and NTSC. The former is mainly used in China:
 
Video format consists of PAL and NTSC. The former is mainly used in China:
  
*PAL is a method of color frequency in the television broadcasting, whose full name is Phase Alternating Line). Most parts of the world are based on the PAL format in addition to North America and parts of the East Asia using the NTSC format, as well as the Middle East and Eastern Europe adopting SECAM format.  PAL was firstly proposed by the German, Walter Bruch in1963, who worked for Telefunken.  
+
*PAL is a method of color frequency in the television broadcasting, whose full name is Phase Alternating Line). Most parts of the world are based on the PAL format in addition to North America and parts of the East Asia using the NTSC format, as well as the Middle East and Eastern Europe adopting SECAM format.  PAL was firstly proposed by the German, Walter Bruch in 1963, who worked for Telefunken.  
  
  
 
*NTSC is an abbreviation for National Television Standards Committee, which is responsible for developing a United States standard television broadcasting transmitting and receiving protocol. Besides, there are two sets of standards : PAL and SECAM-which are used for other countries in the world. There is no significant change about NTSC standard in addition to adding new parameters of color signal since coming into being. Moreover, NTSC signal can not be directly compatible with computer systems.
 
*NTSC is an abbreviation for National Television Standards Committee, which is responsible for developing a United States standard television broadcasting transmitting and receiving protocol. Besides, there are two sets of standards : PAL and SECAM-which are used for other countries in the world. There is no significant change about NTSC standard in addition to adding new parameters of color signal since coming into being. Moreover, NTSC signal can not be directly compatible with computer systems.
 
 
  
 
==Schematic Diagram==
 
==Schematic Diagram==
  
[[File: Microduino Video Output Schematic Diagram.jpg|600px|center|thumb]]
+
[[File:Microduino视频输出原理图.jpg|600px|center|thumb]]
 
 
  
[[File:Video Output Schematic Diagram.jpg|600px|center|thumb]]
+
[[File:视频输出原理图.jpg|600px|center|thumb]]
  
  
第81行: 第77行:
 
The two wires can be made as follows:  
 
The two wires can be made as follows:  
  
[[File:To make RCA cable .jpg|600px|center|thumb]]
+
[[File:RCA线制作.jpg|600px|center|thumb]]
  
  
 
Step 2:To connect 1000 Ω and 470 Ω to two wires divided from the signal wire, according to the schematic diagram. The connecting line finally made looks just like this:  
 
Step 2:To connect 1000 Ω and 470 Ω to two wires divided from the signal wire, according to the schematic diagram. The connecting line finally made looks just like this:  
  
[[File: Pictures of resistance connecting to RCA cable.jpg|600px|center|thumb]]
+
[[File:电阻连接RCA线图.jpg|600px|center|thumb]]
  
 
Step 3:To connect RCA to Microduino, connect 1000 Ω to D9, 470 Ω to D7, and Gnd to GND, as follows:  
 
Step 3:To connect RCA to Microduino, connect 1000 Ω to D9, 470 Ω to D7, and Gnd to GND, as follows:  
  
[[File: Picture of Microduino connecting to RCA cable.jpg|600px|center|thumb]]
+
[[File:Microduino连接RCA线图.jpg|600px|center|thumb]]
  
 
The connector of RCA connecting to the AV connector of your TV is yellow and very easy to recognize.  
 
The connector of RCA connecting to the AV connector of your TV is yellow and very easy to recognize.  
第102行: 第98行:
 
==Result==
 
==Result==
  
A line, a circle and “Hello Microduino” will loop on TV.  As follows:  
+
A line, a circle and “Hello Microduino” will be displayed recurrently on TV.  As follows:  
  
[[File: Video Output Image hello microduino.jpg|600px|center|thumb]]
+
[[File:电视输出图像hello microduino.jpg|600px|center|thumb]]
[[File: Video Output Image.jpg|600px|center|thumb]]
+
[[File:电视输出图像.jpg|600px|center|thumb]]
  
 
==Notice==
 
==Notice==
  
*No mistakes are allowed during welding resistance  
+
*Mistakes should be avoided during welding resistance
  
 
==Video==
 
==Video==

2014年5月6日 (二) 03:19的最新版本


Outline

  • Project:Microduino TV Output
  • Purpose:The course will teach us how to use Microduino to connect your TV and send video output to the screen in the form of PAL or NTSC format.
  • Difficulty:Middle
  • Time-consuming:1 hour
  • Maker:Microduino Studio-ray
  • Source: Make Your Own Video Game System by Maik Schmidt http://pragprog.com/magazines/2011-08/make-your-own-video-game-system/

Bill of Materials

  • Other Hardware Equipments
    • A TV set with AV interface
    • An USB cable
    • A number of wire jumper
    • A RCA cable
    • A resistance of 1000Ω
    • A resistance of 470 Ω

RCA Cable

Before we start to build a video signal, we must connect Microduino to a TV. The cheapest and the simplest solution is RCA cable (sometimes called cinch cable) which is used to send audio or video signals. In the chart below, you can a RCA cable with three connectors.

These cables typically transmit sound (red and white connectors) and video (yellow connector). In this case, all we need is the cable of the yellow connector.

RCA线1.jpg

Video Format

Video format consists of PAL and NTSC. The former is mainly used in China:

  • PAL is a method of color frequency in the television broadcasting, whose full name is Phase Alternating Line). Most parts of the world are based on the PAL format in addition to North America and parts of the East Asia using the NTSC format, as well as the Middle East and Eastern Europe adopting SECAM format. PAL was firstly proposed by the German, Walter Bruch in 1963, who worked for Telefunken.


  • NTSC is an abbreviation for National Television Standards Committee, which is responsible for developing a United States standard television broadcasting transmitting and receiving protocol. Besides, there are two sets of standards : PAL and SECAM-which are used for other countries in the world. There is no significant change about NTSC standard in addition to adding new parameters of color signal since coming into being. Moreover, NTSC signal can not be directly compatible with computer systems.

Schematic Diagram

Microduino视频输出原理图.jpg
视频输出原理图.jpg


Program

https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/MicroduinoTVOut


tv.begin(PAL, WIDTH, HEIGHT);//Sett output format, length and width

tv.select_font(font4x6);//Set front tv.clear_screen();//Clear

tv.draw_line(0, 10, WIDTH - 1, HEIGHT - 1, WHITE);//Draw line

tv.draw_rect(0, 10, WIDTH - 11, HEIGHT - 11, WHITE);//Draw Rectangle

tv.draw_circle(WIDTH / 2, HEIGHT / 2, 20, WHITE);//Draw circle


Debugging

Step 1:Since Microduino has no RCA jack field, so how to connect Microduino to TV is a problem. Surely, we can add a RCA jack field on Microduino. However, we will use another way to connect cable to pins of Microduino.


Cut your cable, you will find RCA cable includes signal wire and ground wire.

The outermost layer is the ground wire. The signal wire is in the middle, which is protected by a layer of insulation.


The two wires can be made as follows:

RCA线制作.jpg


Step 2:To connect 1000 Ω and 470 Ω to two wires divided from the signal wire, according to the schematic diagram. The connecting line finally made looks just like this:

电阻连接RCA线图.jpg

Step 3:To connect RCA to Microduino, connect 1000 Ω to D9, 470 Ω to D7, and Gnd to GND, as follows:

Microduino连接RCA线图.jpg

The connector of RCA connecting to the AV connector of your TV is yellow and very easy to recognize.

Step 4:A library function will be needed to solve video encoding output problems of PAL and NTSC: http://code.google.com/p/arduino-tvout/

To download the code and compile successfully.

Step 5:To run the code and see what happens on the screen of the TV.

Result

A line, a circle and “Hello Microduino” will be displayed recurrently on TV. As follows:

电视输出图像hello microduino.jpg
电视输出图像.jpg

Notice

  • Mistakes should be avoided during welding resistance

Video

http://v.youku.com/v_show/id_XNzAxOTc5NTA4.html