<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>virus&#039;s blog</title>
	<atom:link href="http://virus.dtvt.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://virus.dtvt.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 10 Apr 2011 12:32:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mi$$?</title>
		<link>http://virus.dtvt.org/2011/04/10/mi/</link>
		<comments>http://virus.dtvt.org/2011/04/10/mi/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 12:32:04 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=50</guid>
		<description><![CDATA[Không biết cái cảm giác khi ở gần người ta thì rất vui còn khi xa người ta thì nhớ vô cùng là cái cảm giác gì nhỉ? &#8220;Thoái quen&#8221; à?
]]></description>
			<content:encoded><![CDATA[<p>Không biết cái cảm giác khi ở gần người ta thì rất vui còn khi xa người ta thì nhớ vô cùng là cái cảm giác gì nhỉ? &#8220;Thoái quen&#8221; à?</p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2011/04/10/mi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Một số hàm mở rộng trên C/C++</title>
		<link>http://virus.dtvt.org/2011/01/19/m%e1%bb%99t-s%e1%bb%91-ham-m%e1%bb%9f-r%e1%bb%99ng-tren-cc/</link>
		<comments>http://virus.dtvt.org/2011/01/19/m%e1%bb%99t-s%e1%bb%91-ham-m%e1%bb%9f-r%e1%bb%99ng-tren-cc/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 05:40:19 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Study]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=31</guid>
		<description><![CDATA[Sau đây là một số hàm mở rộng ở console của C/C++ nhưng trong Codeblock không có.
Để dùng được nó các bạn phải tự viết hàm. Các hàm này sẽ rất hữu ích khi các bạn muốn viết một game nho nhỏ trên console với Codeblock.
Trình biên dịch: Codeblock
1. Hàm xoá màn hình
Header file:
#include &#60;stdlib.h&#62;




system(&#8220;CLS&#8221;);




2. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Sau đây là một số hàm mở rộng ở console của C/C++ nhưng trong Codeblock không có.<br />
Để dùng được nó các bạn phải tự viết hàm. Các hàm này sẽ rất hữu ích khi các bạn muốn viết một game nho nhỏ trên console với Codeblock.</strong><br />
<span style="color: #ff0000;"><strong>Trình biên dịch: Codeblock</strong></span></p>
<p><strong>1. Hàm xoá màn hình</strong><br />
Header file:<br />
#include &lt;stdlib.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>system(&#8220;CLS&#8221;);</td>
</tr>
</tbody>
</table>
</div>
<p><strong>2. Hàm tạo số ngẫu nhiên</strong><br />
Header file:<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;time.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>srand(time(NULL));<br />
rand()%100+1; //tạo số nguyên ngẫu nhiên từ 1-100</td>
</tr>
</tbody>
</table>
</div>
<p>Ví dụ in ra màn hình 20 số ngẫu nhiên từ 0-90</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>#include &lt;iostream&gt;<br />
using namespace std;<br />
main()<br />
{<br />
char i;<br />
srand(time(NULL));<br />
for(i=0;i&lt;20;i++)<br />
cout&lt;&lt;rand()%91&lt;&lt;&#8221; &#8220;;<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p><strong>3. Hàm chuyển con trỏ đến toạ độ x,y trên màn hình console: gotoxy(x,y)</strong><br />
(màn hình console khi chưa resize được chia thành 80 cột và 24 hàng)<br />
Header file:<br />
#include &lt;windows.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>void gotoxy(int x,int y)<br />
{<br />
HANDLE hConsoleOutput;<br />
COORD Cursor_an_Pos = {x-1,y-1};<br />
hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);<br />
SetConsoleCursorPosition(hConsoleOutput , Cursor_an_Pos);<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p><strong>4. Các hàm tạo màu cho text và màu background cho console</strong><br />
+ hàm tạo màu cho text: textcolor(WORD color)<br />
WORD sẽ mang giá trị từ 0-15<br />
Header file:<br />
#include &lt;windows.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>void textcolor(WORD color)<br />
{<br />
HANDLE hConsoleOutput;<br />
hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);<br />
CONSOLE_SCREEN_BUFFER_INFO screen_buffer_info;<br />
GetConsoleScreenBufferInfo(hConsoleOutput, &amp;screen_buffer_info);<br />
WORD wAttributes = screen_buffer_info.wAttributes;<br />
color &amp;= 0&#215;000f;<br />
wAttributes &amp;= 0xfff0;<br />
wAttributes |= color;<br />
SetConsoleTextAttribute(hConsoleOutput, wAttributes);<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p>Bảng mã màu:<br />
<img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/maumau2.jpg" border="0" alt="" /><br />
+ hàm tạo màu background<br />
Header file:<br />
#include &lt;stdlib.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>system(&#8220;Color ab&#8221;);</td>
</tr>
</tbody>
</table>
</div>
<p>Trong đó a là màu background, b là màu text (ta có thể dùng hàm này để thay đổi màu cho text nhưng tốc độ thực thi chậm hơn textcolor).<br />
Ví dụ: nền trắng, chữ hồng</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>#include &lt;iostream&gt;<br />
#include &lt;stdlib.h&gt;<br />
using namespace std;<br />
main()<br />
{<br />
system(&#8220;Color FD&#8221;);<br />
cout&lt;&lt;&#8221;Hello world&#8221;;<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p>Bảng mã màu:<br />
<img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/maumau1.jpg" border="0" alt="" /></p>
<p><strong>5. Hàm thay đổi kích thước Console: resizeConsole(int width, int height)</strong><br />
Header file:<br />
#define _WIN32_WINNT 0&#215;0500<br />
#include &lt;windows.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>void resizeConsole(int width, int height)<br />
{<br />
HWND console = GetConsoleWindow();<br />
RECT r;<br />
GetWindowRect(console, &amp;r);<br />
MoveWindow(console, r.left, r.top, width, height, TRUE);<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p><strong>6. Hàm Delay()</strong><br />
Trong codeblock không hỗ trợ hàm Delay() vì thế ta có hàm thay thế là Sleep(), chức năng trì hoãn chương<br />
trình trong một khoảng thời gian<br />
Header file:<br />
#include &lt;windows.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>Sleep(1200); //trì hoãn 1200ms = 1.2 giây</td>
</tr>
</tbody>
</table>
</div>
<p><strong>7. Hiển thị một ký tự c tại toạ độ x, y với màu color</strong><br />
Request: một số hàm đã định nghĩa ở trên</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>void multiPut(int x,int y,char c, int color)<br />
{<br />
gotoxy(x,y);<br />
textcolor(color);<br />
printf(&#8220;%c&#8221;,c);<br />
gotoxy(40,20);<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p><strong>8. Thay đổi tiêu đều (Caption) cho chương trình</strong><br />
Header file:<br />
#include &lt;windows.h&gt;</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>SetConsoleTitle(&#8220;My program&#8230;&#8221;); //title = &#8220;My program&#8230;&#8221;</td>
</tr>
</tbody>
</table>
</div>
<p><strong>9. Vẽ một hình chữ nhật có toạ độ 2 đỉnh (trên, trái &#8211; dưới, phải) là (x1,y1)-(x2,y2), với màu sắc color, có tiêu đề title và màu tiêu đề là ttColor</strong><br />
Request: một số hàm đã định nghĩa ở trên</p>
<div>
<table width="99%">
<tbody>
<tr>
<td>class cBoard<br />
{<br />
public:<br />
int x1,y1,x2,y2,width,height;<br />
inline void drawBoard(int x1, int y1, int x2, int y2, int color=14,char *title=NULL,int ttColor=15)<br />
{<br />
int i;<br />
multiPut(x1,y1,(char)218,color); //top-left<br />
multiPut(x2,y1,(char)191,color); //top-right<br />
multiPut(x1,y2,(char)192,color); //bottom-left<br />
multiPut(x2,y2,(char)217,color); //bottom-right<br />
textcolor(color);<br />
for(i=x1;i&lt;x2-1;i++) //top border */<br />
multiPut(i+1,y1,(char)196,color);<br />
for(i=x1;i&lt;x2-1;i++) //bottom border */<br />
multiPut(i+1,y2,(char)196,color);<br />
for(i=0;i&lt;y2-y1-1;i++) /* left border */<br />
multiPut(x1,y1+i+1,(char)179,color);<br />
for(i=0;i&lt;y2-y1-1;i++) /* right border */<br />
multiPut(x2,y1+i+1,(char)179,color);<br />
if (title!=NULL&amp;&amp;strlen(title)&lt;(x2-x1))<br />
for(i=0;i&lt;strlen(title);i++)<br />
multiPut(i+(x2+x1)/2-strlen(title)/2,y1,*(title+i),ttColor);<br />
}<br />
}board;</td>
</tr>
</tbody>
</table>
</div>
<p>Ví dụ:</p>
<div></div>
<div>
<table width="99%">
<tbody>
<tr>
<td>int main()<br />
{<br />
clrscr();<br />
SetConsoleTitle(&#8220;My program&#8230;&#8221;);<br />
system(&#8220;Color 80&#8243;);<br />
gotoxy(2,2);<br />
textcolor(12); //red<br />
cout&lt;&lt;char(3); //heart<br />
board.drawBoard(1,1,30,20,14,&#8221; This is demo program &#8220;,15);<br />
gotoxy(2,5);<br />
textcolor(10);<br />
cout&lt;&lt;&#8221;What next?&#8221;;<br />
board.drawBoard(5,7,20,12,9);<br />
resizeConsole(300,350);<br />
getch();<br />
return 0;<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p>Kết quả:<br />
<img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/cosole_mix.jpg" border="0" alt="" /></p>
<p><strong>Code in ra màn hình bảng mã Ascii của các ký tự.</strong></p>
<div></div>
<div>
<table width="99%">
<tbody>
<tr>
<td>#include &lt;stdio.h&gt;<br />
#include &lt;conio.h&gt;<br />
main()<br />
{<br />
for(int i=0;i&lt;255;i++)<br />
printf(&#8220;%3d:%c&#8221;,i,i);<br />
getch();<br />
}</td>
</tr>
</tbody>
</table>
</div>
<p><strong><br />
10. Một số hàm khác với console</strong><br />
system(&#8220;help&#8221;); //các lệnh trên DOS<br />
// các hàm trong thư viện wincon.h</p>
<p>Một trang web rất hữu ích về Console với C/C++ (các bạn sẽ tìm thấy hàm bắt sự kiện của chuột như ở part5).<br />
<a href="http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html" target="_blank">http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html</a><br />
Tra cứu các hàm chuẩn trong C/C++<br />
<a href="../Documents/cpp.chm" target="_blank">http://virus.dtvt.org/Documents/cpp.chm</a><br />
<strong>Một số code mẫu của các hàm phía trên.<br />
&amp;&amp;</strong><br />
<strong>Source game trên Console với C++</strong><br />
(game shoot đã hoàn thành, game xếp hình đang dở dang)<br />
<a href="http://www.mediafire.com/?h9a4ksqhw9v7ag4" target="_blank">http://www.mediafire.com/?h9a4ksqhw9v7ag4</a><br />
Ngoài ra còn 1 game (thả boom) dùng đồ hoạ trên DOS nữa ở đây<br />
<a href="http://dtvt.org/dtvt.asp?TID=5894&amp;title=c-game-th%E1%BA%A3-bom-c%E1%BB%B1c-kh%E1%BB%A7ng-graphics-h%C4%91t" target="_blank">http://dtvt.org/dtvt.asp?TID=5894&amp;title=c-game-th%E1%BA%A3-bom-c%E1%BB%B1c-kh%E1%BB%A7ng-graphics-h%C4%91t</a><br />
<strong>Game development</strong> <strong>ebook</strong><br />
<a href="http://www.box.net/shared/xp1g5t6o0s" target="_blank">http://www.box.net/shared/xp1g5t6o0s</a><br />
Một số game đơn giản trên nền console: xếp hình, shoot, đua xe đơn giản, rắn săn mồi&#8230; hoặc có thể tìm hiểu thêm về OpenGL hay DirectX, trí thông minh nhân tạo&#8230; để phát triển game xài đồ hoạ trên nền win (codeblock có hỗ trợ cái này).</p>
<p>Hoặc ai pro hơn có thể viết cái này.<br />
<img src="http://www.adrianxw.dk/SoftwareSite/Consoles/Colour8.jpg" border="0" alt="" /></p>
<p><span style="color: #0000ff;"><strong>Have fun! <img title="Đốt pháo ..." src="http://dtvt.org/smileys/yoyo/yoyoicon%20%2838%29.GIF" border="0" alt="Đốt pháo ..." /></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2011/01/19/m%e1%bb%99t-s%e1%bb%91-ham-m%e1%bb%9f-r%e1%bb%99ng-tren-cc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stop&#8230;</title>
		<link>http://virus.dtvt.org/2010/05/26/stop/</link>
		<comments>http://virus.dtvt.org/2010/05/26/stop/#comments</comments>
		<pubDate>Wed, 26 May 2010 06:33:23 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=24</guid>
		<description><![CDATA[Đã bao lần cố gắng, cố gắng&#8230; cai nhưng không thể, dường như có 1 động cơ nào đó thúc đẩy làm cho mình
không thể nào từ bỏ được. Tìm mọi cách, cách này hay cách khác, nhiều khi có những cách ngớ ngẫn &#8220;made in tự tui&#8221; làm ra.
Nhưng vô dụng, bản thân mình [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ffcc99;">Đã bao lần cố gắng, cố gắng&#8230; cai nhưng không thể, dường như có 1 động cơ nào đó thúc đẩy làm cho mình<br />
không thể nào từ bỏ được. Tìm mọi cách, cách này hay cách khác, nhiều khi có những cách ngớ ngẫn &#8220;made in tự tui&#8221; làm ra.<br />
Nhưng vô dụng, bản thân mình không thể tự chiến thắng nổi. Đôi lúc nhìn người khác, thấy họ thế này thế nọ rồi mình lại thở dài&#8230; &#8220;than ôi, thời oanh liệt nay còn đâu&#8221;.<br />
Có phải mình đã già, trí tuệ đã bị thoái hoá. Tuy mắt thì chưa mờ (và có lẽ sẽ không bao giờ mờ được, mắt mình tốt quá)<br />
nhưng bộ óc đã bị oxy hoá dần dần rồi. Cảm thấy đôi lúc mình cũng&#8230; ngu (vì lúc nào cũng tự cho mình thông minh mà) nhưng rồi cái đôi lúc ấy đã diễn ra dày đặt hơn,<br />
hàng ngày, hàng giờ, hàng phút. Cảm thấy hối hận, và hối hận lâu rồi nhưng không thể&#8230; không thể chiến thắng&#8230;<br />
Đôi khi so sánh mình với người khác, cảm thấy họ may mắn hơn mình, và họ có cái này, cái kia nên họ mới hơn mình. Nhưng rồi nhìn lại, mình cũng may mắn hơn bao người khác.<br />
Chẳng có gì là nhất cả.<br />
Hằng ngày sống trong căn phòng cùng với cái thế giới ảo, hầu như mọi chuyện bên ngoài xã hội mình chẳng quan tâm, hơi đâu mà quan tâm. Rồi có người nói mình vô cảm, thật sự là vậy,<br />
trí tuệ có hạn, chắc bộ não không đủ &#8220;dung lượng&#8221; và thông minh để kham thêm mấy chuyện đó.<br />
Tình cờ đọc được một cuốn sách, nói chung là nó dạy cho ta về cách đối nhân xử thế, thấy cũng hay thật, một cuốn sách dày thế mà chỉ đọc trong vài giờ, không biết có tí ích lợi gì cho bộ óc đang<br />
khô cứng này không, hy vọng là có. Nhưng rồi thuốc nào cũng lờn cả thôi&#8230;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/26/stop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Learn English!</title>
		<link>http://virus.dtvt.org/2010/05/21/how-to-learn-english/</link>
		<comments>http://virus.dtvt.org/2010/05/21/how-to-learn-english/#comments</comments>
		<pubDate>Fri, 21 May 2010 19:37:51 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Study]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=20</guid>
		<description><![CDATA[Bài nì siu tầm đc trên mạng, hy vọng ju&#8217;p đc cho ai đó, but not me  
How To Learn English!
Here are some tips which may help you to master the English Language!
Speak without Fear
The biggest problem most people face in learning a new language is their own fear.  They worry that they won’t [...]]]></description>
			<content:encoded><![CDATA[<p>Bài nì siu tầm đc trên mạng, hy vọng ju&#8217;p đc cho ai đó, but not me <img src='http://virus.dtvt.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><strong><span style="font-family: Verdana; font-size: medium;">How To Learn English!</span></strong></p>
<p><strong><span style="font-family: Verdana; font-size: x-small;">Here are some tips which may help you to master the English Language!</span></strong></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Speak without Fear</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">The biggest problem most people face in learning a new language is their own fear.  They worry that they won’t say things correctly or that they will look stupid so they don’t talk at all.  Don’t do this.  The fastest way to learn anything is to do it – again and again until you get it right.  Like anything,<strong> learning English requires practice</strong>.  Don’t let a little fear stop you from getting what you want. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Use all of your Resources</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Even if you study English at a language school it doesn’t mean you can’t learn outside of class.  Using as many different sources, methods and tools as possible, will allow you to learn faster.  There are many different ways you can improve your English, so don’t limit yourself to only one or two.  The internet is a fantastic resource for virtually anything, but for the language learner it&#8217;s perfect. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Surround Yourself with English</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">The absolute best way to learn English is to surround yourself with it.  Take notes in English, put English books around your room, listen to English language radio broadcasts, watch English news, movies and television.  Speak English with your friends whenever you can. The more English material that you have around you, the faster you will learn and the more likely it is that you will begin “thinking in English.”  . </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Listen to Native Speakers as Much as Possible</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">There are some good English teachers that have had to learn English as a second language before they could teach it.  However, there are several  reasons why many of the best schools prefer to hire native English speakers. One of the reasons is that native speakers have a natural flow to their speech that students of English should try to imitate.  The closer ESL / EFL students can get to this rhythm or flow, the more convincing and comfortable they will become. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Watch English Films and Television</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">This is not only a fun way to learn but it is also very effective.  By watching English films (especially those with <strong>English</strong> subtitles) you can expand your vocabulary and hear the flow of speech from the actors.  If you listen to the news you can also hear different accents. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Listen to English Music</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Music can be a very effective method of learning English.  In fact, it is often used as a way of improving comprehension.  The best way to learn though, is to get the lyrics (words) to the songs you are listening to and try to read them as the artist sings.  There are several good internet sites where one can find the words for most songs. This way you can practice your listening and reading at the same time.  And if you like to sing, fine. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Study As Often As Possible!</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Only by studying things like grammar and vocabulary and doing exercises, can you really improve your knowledge of any language. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Do Exercises and Take Tests</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Many people think that exercises and tests aren&#8217;t much fun.  However, by completing exercises and taking tests you can really improve your English. One of the best reasons for doing lots of exercises and tests is that they give you a benchmark to compare your future results with.  Often, it is by comparing your score on a test you took yesterday with one you took a month or six months ago that you realize just how much you have learned.  If you never test yourself, you will never know how much you are progressing. <strong> Start now by doing some of the many exercises and tests on this site, and return in a few days to see what you&#8217;ve learned</strong>. Keep doing this and you really will make some progress with English. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Record Yourself</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Nobody likes to hear their own voice on tape but like tests, it is good to compare your tapes from time to time.  You may be so impressed with the progress you are making that you may not mind the sound of your voice as much. </span></p>
<p><strong><span style="font-family: Verdana; color: #0000ff; font-size: small;">Listen to English</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">By this, we mean, speak on the phone or listen to radio broadcasts, audiobooks or CDs in English. This is different than watching the television or films because you can’t see the person that is speaking to you.  Many learners of English say that speaking on the phone is one of the most difficult things that they do and the only way to improve is to practice.</span></p>
<p><span style="font-family: Verdana; color: #0000ff; font-size: small;"><strong>Finally</strong></span></p>
<p><span style="font-family: Verdana; font-size: small;">Have fun!</span></p>
<p><span style="font-family: Verdana; font-size: small;">Link</span>:  <a title="http://www.world-english.org/how_to_learn_english.htm" href="http://www.world-english.org/how_to_learn_english.htm"><strong>http://www.world-english.org/how_to_learn_english.htm</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/21/how-to-learn-english/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lười</title>
		<link>http://virus.dtvt.org/2010/05/17/l%c6%b0%e1%bb%9di/</link>
		<comments>http://virus.dtvt.org/2010/05/17/l%c6%b0%e1%bb%9di/#comments</comments>
		<pubDate>Mon, 17 May 2010 21:34:06 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=16</guid>
		<description><![CDATA[Gần thi rồi, mỗi lúc đem vở ra học là cứ buồn ngủ, mà ngồi vào máy tính lại không thể ngủ được. Đồng hồ sinh học bị rối tùm lum. Những dự định trong tương lai liệu có xa vời, những cám dỗ, sự lười biếng&#8230;
&#8220;Trên con đường thành công không thể có dấu [...]]]></description>
			<content:encoded><![CDATA[<p>Gần thi rồi, mỗi lúc đem vở ra học là cứ buồn ngủ, mà ngồi vào máy tính lại không thể ngủ được. Đồng hồ sinh học bị rối tùm lum. Những dự định trong tương lai liệu có xa vời, những cám dỗ, sự lười biếng&#8230;<br />
&#8220;Trên con đường thành công không thể có dấu chân của kẻ lười biếng&#8221;, thật vậy, kẻ lười biếng thì làm gì siêng đến mức phải đi bộ trên con đường ấy =)). Mọi mục tiêu, bao h đề ra rồi cũng bỏ đó, phí thời gian một cách vô ích, chẳng có 1 lịch trình nào đặt ra mà hoàn thành được cả, thật là vô dụng! Học thà chả tập trung, đầu óc luôn bị nhiễu bởi những chuyện nhảm nhí. Có tham vọng nhưng chả muốn hoặc không thể thực hiện nó vì quá lười, sao dạo này lười thía ko biết ﻿<img src="http://dtvt.org/smileys/New%20Folder/dtvt_dapdau.GIF" border="0" alt="Dap dau" />.</p>
<p>Rồi ngày nào trong đầu cũng lẩn quẩn 1 cái &#8220;dream&#8221; thuộc dạng &#8220;xa xỉ&#8221; và nhảm nhí nhất trên cõi đời, ước mơ là miễn phí nhưng cái gì cũng có cái giá của nó, cái giá phải trả và ta không đủ công sức để đạt được cái giá đó chăng. Trèo cao té nặng, trèo thấp té cũng nặng, không trèo thì thấy rảnh rỗi .<br />
Hãy đợt đấy!<img src="http://dtvt.org/smileys/dtvt_frusty.gif" border="0" alt="DT frusty" /></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/17/l%c6%b0%e1%bb%9di/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Các trình biên dịch C/C++ thông dụng</title>
		<link>http://virus.dtvt.org/2010/05/17/cac-trinh-bien-d%e1%bb%8bch-cc-thong-d%e1%bb%a5ng/</link>
		<comments>http://virus.dtvt.org/2010/05/17/cac-trinh-bien-d%e1%bb%8bch-cc-thong-d%e1%bb%a5ng/#comments</comments>
		<pubDate>Mon, 17 May 2010 00:39:01 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Study]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=12</guid>
		<description><![CDATA[Borland C++ 3.1 (18,72M)
http://www.mediafire.com/download.php?znyy2mnmfii
Borland C++ 5.02 (84.95 M)
http://www.mediafire.com/download.php?vtykedcijhe
Đối với Borland C ++ 5.02 thì ko cài đc trên win vista&#8230; nhưng vẫn chạy đc  trên nó.
Nếu ai xài win vista thì nhờ máy người khác có cài XP sau đó setup Borland C++ 5.02 vào máy cài XP đó rồi copy toàn bộ file [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Borland C++ 3.1</strong> <strong>(18,72M)</strong><br />
<a href="http://www.mediafire.com/download.php?znyy2mnmfii" target="_blank">http://www.mediafire.com/download.php?znyy2mnmfii</a><br />
<span style="color: #ff0000;"><strong>Borland C++ 5.02 (84.95 M)</strong></span><br />
<a href="http://www.mediafire.com/download.php?vtykedcijhe" target="_blank">http://www.mediafire.com/download.php?vtykedcijhe</a><br />
<span style="color: #000099;"><strong>Đối với Borland C ++ 5.02 thì ko cài đc trên win vista&#8230; nhưng vẫn chạy đc <img title="Ha%20ha%20hi%20hi" src="http://dtvt.org/smileys/New%20Folder/dtvt_hahahihi.gif" border="0" alt="Ha%20ha%20hi%20hi" /> trên nó.<br />
Nếu ai xài win vista thì nhờ máy người khác có cài XP sau đó setup Borland C++ 5.02 vào máy cài XP đó rồi copy toàn bộ file đã đc cài đặt vào trở lại máy mình (cài vista), làm cách đó thì xài đc.</strong></span></p>
<p><strong><span style="color: #0000ff;">Turbo C 3.1 (3.2M)</span></strong><br />
<a href="http://www.mediafire.com/download.php?zztweztudwm" target="_blank">http://www.mediafire.com/download.php?zztweztudwm</a><br />
<span style="color: #0000ff;"><strong>Dev- C++ 4.9 (8.89M)</strong></span><br />
<a href="http://www.mediafire.com/download.php?wwo2zwzai1q" target="_blank">http://www.mediafire.com/download.php?wwo2zwzai1q</a><br />
<span style="color: #0000ff;"><strong>Visual C++ 6.0</strong></span><br />
<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&amp;displaylang=en" target="_blank">Download ở đây</a><br />
Hoặc ở đây:<br />
<a href="http://www.mediafire.com/download.php?jqimam2kymn" target="_blank">http://www.mediafire.com/download.php?jqimam2kymn</a></p>
<p><span style="font-size: small;"><strong><span style="color: #0000ff;">CodeBlock </span><span style="color: #ff0000;">(recommend)</span></strong></span><br />
<a href="http://sourceforge.net/projects/codeblocks/files/Binaries/8.02/codeblocks-8.02mingw-setup.exe/download" target="_blank">http://sourceforge.net/projects/codeblocks/files/Binaries/8.02/codeblocks-8.02mingw-setup.exe/download</a><br />
<span style="font-size: medium;"><strong>Tất cả các soft trên đều có pass là: <span style="color: #ff0000; font-size: large;">dtvt.org</span></strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/17/cac-trinh-bien-d%e1%bb%8bch-cc-thong-d%e1%bb%a5ng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>first entry</title>
		<link>http://virus.dtvt.org/2010/05/15/first-entry/</link>
		<comments>http://virus.dtvt.org/2010/05/15/first-entry/#comments</comments>
		<pubDate>Sat, 15 May 2010 20:07:26 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Main]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=5</guid>
		<description><![CDATA[Nói là first entry nhưng rõ ràng đây là cái entry thứ… tùm lum rồi
Mấy ngày nay vật vã với cái blog củ khoai này. Mỗi ngày view hơn 1500 theme, rốt cuộc lại cũng tìm ra vài theme vừa ý (vừa ý theo kiểu mới nhìn). Install thì đúng quả là bà điên, không [...]]]></description>
			<content:encoded><![CDATA[<p>Nói là first entry nhưng rõ ràng đây là cái entry thứ… tùm lum rồi<img src="http://dtvt.org/smileys/New%20Folder/dtvt_dapdau.GIF" border="0" alt="Dap dau" /></p>
<p>Mấy ngày nay vật vã với cái blog củ khoai này. Mỗi ngày view hơn 1500 theme, rốt cuộc lại cũng tìm ra vài theme vừa ý (vừa ý theo kiểu mới nhìn). Install thì đúng quả là bà điên, không lỗi này thì lỗi nọ, ko thiếu cái này thì thiếu cái kia. Nhưng dù sao chéc cũng cố định cái theme cục gạch này cho rồi, tìm nhiều mất thời gian, mỏi mệt… <img src="http://dtvt.org/smileys/New%20Folder/dapchet.gif" border="0" alt="Danhchetluon" /></p>
<p>Mà liệu đó là do ta quá kén chọn hay do có quá nhiều sự lựa chọn? Chắc là do cả hai.</p>
<p>Không có cái nào là cái mới cuối cùng… Mà dù sao cũng phải cố gắng thôi, cố gắng buil cái theme cục gạch này. Nhiều lúc bỏ công sức, thời gian, trí óc ra làm 1 việc gì đó rồi không biết việc đó có thành công hay không, nửa đường, từ bỏ. Sao mình không thể tiếp tục theo đuổi công việc của mình, mới thấy chút gian khó đã nản rồi, leo lên cây, gần đến được quả thì không muốn leo nữa vì đuối, vì thấy kết quả không đáng để làm. Nếu biết trước thì đã không làm vậy. Ai biết được tương lai. Và tóm lại một điều là mình không thể vượt lên chính mình, mình bị ai đó điều khiển, lý trí đã lờn thuốc rồi, giống như một con robot vậy, nó làm những việc được lập trình sẵn. Mình cũng vậy, chỉ rời máy tính khi đi học, đi chợ, đi ngủ và… đi vệ sinh (nge có vẻ funny) nhưng thật sự là thế, ăn cơm cũng ăn với computer mà lỵ<img src="http://dtvt.org/smileys/dtvt_rolling.gif" border="0" alt="DT rolling" /> , nghiện rồi làm sao cai. Ngày nào cũng tự nhủ đi ngủ trước 12h, nhưng không thể làm được, ngồi vào máy tính là có hàng đống việc để làm, internet đâu có giới hạn, và ta đã lún sâu, ko rút ra được… Somebody help me <img src="http://dtvt.org/smileys/New%20Folder/dtvt_imlang.gif" border="0" alt="Im luon" /></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/15/first-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cách làm robot dò đường đơn giản.</title>
		<link>http://virus.dtvt.org/2010/05/15/hello-world/</link>
		<comments>http://virus.dtvt.org/2010/05/15/hello-world/#comments</comments>
		<pubDate>Sat, 15 May 2010 16:07:51 +0000</pubDate>
		<dc:creator>virus</dc:creator>
				<category><![CDATA[Study]]></category>

		<guid isPermaLink="false">http://virus.dtvt.org/?p=1</guid>
		<description><![CDATA[Hướng dẫn cách làm một robot dò đường đơn giản sử dụng Opamp so sánh (đúng hơn là một chiếc xe lần mò theo vạch đen )
* Chuẩn bị:
- Linh kiện:
- 1 con Opamp loại 8 chân LM393 (2 kênh) hoặc loại 14 chân (4 kênh) LM324. Nếu không có loại LM có thể xài [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Hướng dẫn cách làm một robot dò đường đơn giản sử dụng Opamp so sánh (đúng hơn là một chiếc xe lần mò theo vạch đen <img src="http://dtvt.org/smileys/New%20Folder/dtvt_dance.gif" border="0" alt="" align="middle" />)</strong></p>
<p><span style="color: #ff0000;"><strong>* Chuẩn bị:</strong></span><br />
<span style="color: #0000ff;"><strong>- Linh kiện:</strong></span><br />
<strong>- 1 con Opamp loại 8 chân LM393 (2 kênh) hoặc loại 14 chân (4 kênh) LM324. Nếu không có loại LM có thể xài loại khác, như HA chẳng hạn.<br />
- 2 con BJT loại NPN C1815 (hoặc loại khác cũng được).<br />
- 2 quang trở.<br />
- 2 led siu sáng (trắng).<br />
- 6 điện trở 10k.<br />
- 2 Mô tơ, loại cỡ 5V, có thể lấy từ xe đồ chơi của con nít (ở đây tớ lấy từ ổ CD-Rom 1 cái và chôm của thằng bạn 1 cái).<br />
- Nguồn sử dụng 9V hoặc 4.5V (ở đây mình xài nguồn 9V).<br />
- 2 điện trở hạn dòng cho led phát 1k (nếu xài nguồn 9V) và khoảng 220 ôm nếu xài nguồn 4.5V).</p>
<p>- Và các đồ phụ gia tráng trí khác, chủ yếu là led gắn vào cho đẹp, một vài cái dắt cắm, công tắc&#8230;<br />
- Đồ dùng khác: mỏ hàn, chì hàn, kéo, băng keo đen (làm vạch)…</strong></p>
<p><span style="color: #ff0000;"><strong>* Bắt đầu làm:</strong></span><br />
<span style="color: #0000ff;"><strong> + Phần mạch (ta tách riêng thành 2 phần, 1 phần cảm biến và 1 phần mạch chính cho dễ lắp đặt):<br />
<span style="color: #000000;">1. Bộ phận “cảm biến”:</span><br />
-Cách làm:</strong></span><br />
Sử dụng 2 quang trở, 2 led phát, 2 trở hạn dòng cho led phát. Mắc theo sơ đồ sau:</p>
<table id="0.6326405650648804" onclick="imgview('0.6326405650648804','271','628','258','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (628 x 271)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.6326405650648804" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/cam_bien.jpg" border="0" alt="" width="600" height="258" /></p>
<p><strong>Ảnh thực tế:</strong></p>
<table id="0.1284479008121997" onclick="imgview('0.1284479008121997','768','1024','450','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (1024 x 768)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.1284479008121997" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/ldrcir.jpg" border="0" alt="" width="600" height="450" /></p>
<p><strong>Đặt 2 quang trở cách nhau khoảng 3.5cm-4cm, dùng băng keo đen quấn quanh quang trở để chống nhiễu. Ở đây mình sử dụng thêm 2 công tắc cho led phát để tắc ”khi cần thiết”.</strong></p>
<p><span style="color: #ff0000;">-Nguyên lý hoạt động:</span><br />
Khi có ánh sáng thì điện trở của quang trở sẽ giảm và ngược lại, điện trở của nó thay đổi cỡ từ 5k (khi có ánh sáng) đến 100k (không có ánh sáng), ta sử dụng 2 led phát làm nguồn sáng cho nó.<br />
=&gt; khi gặp nền trắng, ánh sáng sẽ phản xạ lên quang trở làm điện trở nó giảm xuống và khi gặp vạch đen (băng keo đen) thì ánh sáng sẽ khó phản xạ nên quang trở nhận ít ánh sáng =&gt; trở nó tăng. Từ đó dựa vào 2 quang trở, robot có thể phân biệt được vạch đen trên nền trắng (dưới sự hỗ trợ của opamp so sánh).</p>
<p><img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/doduong.jpg" border="0" alt="" /></p>
<p><span style="color: #0000ff;"><strong>2. Mạch điều khiển moto (mạch chính)</strong></span></p>
<p><strong>Sử dụng 6 con trở 10k, Opamp, nguồn 9V, 2 con BJT.</strong></p>
<p><span style="color: #ff0000;"><strong>Bjt C1815:</strong></span></p>
<p><img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/C1815.jpg" border="0" alt="" /></p>
<p><strong>Nguyên lý hoạt động của BJT: miễn bàn.</strong></p>
<p><span style="color: #ff0000;"><strong>Opamp LM 324:</strong></span></p>
<p><img src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/LM324_topview.jpg" border="0" alt="" /></p>
<p><strong>Nguyên lý so sánh đơn giản của opamp thế này:</strong><br />
<strong>Nếu cho vào cổng (+)<em> (cổng 3, 5, 10, 12) </em>một điện áp lớn hơn điện áp cổng (-)<em> (cổng 2, 6, 9, 13)</em> thì ở cổng ra<em> (cổng 1, 7, 8, 14) </em>sẽ là mức <span style="color: #ff0000;">dương</span>, ngược lại là <span style="color: #0000ff;">mức 0</span>. Nhớ cấp nguồn cho Opamp ở 2 cổng 4 và 11.</strong></p>
<p><strong>Ở đây mình chỉ sử dụng 2 kênh là (1,2,3) và (5,6,7).</strong></p>
<p><strong>Sơ đồ:</strong></p>
<table id="0.5463574733856883" onclick="imgview('0.5463574733856883','369','951','232','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (951 x 369)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.5463574733856883" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/Main_cir.jpg" border="0" alt="" width="600" height="232" /></p>
<p><strong>Ảnh thực tế (nhìn hơi rối mắt <img src='http://virus.dtvt.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ) :</strong></p>
<table id="0.9741875721259307" onclick="imgview('0.9741875721259307','768','1024','450','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (1024 x 768)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.9741875721259307" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/maincir.jpg" border="0" alt="" width="600" height="450" /></p>
<p><strong>Và đây là mạch hoàn chỉnh (<span style="color: #0000ff;">2 mạch trên ”cắm” lại với nhau thôi</span>).</strong></p>
<table id="0.054746364690146154" onclick="imgview('0.054746364690146154','621','956','389','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (956 x 621)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.054746364690146154" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/follow_circurt.jpg" border="0" alt="" width="600" height="389" /></p>
<p><span style="color: #0000ff;"><strong><br />
+ Phần cơ (phần này hơi khổ).</strong></span><img title="an va hu hu" src="http://dtvt.org/smileys/New%20Folder/dtvt_huhu.gif" border="0" alt="an va hu hu" /><br />
<strong>Chuẩn bị 2 moto và thêm 2 bộ phận giảm tốc, bộ phận này giúp robot dễ ”cày” hơn nhưng chạy chậm hơn. Chạy chậm giúp robot dễ nhận vạch hơn vì mấy cảm biến này thay đổi hơi chậm (chậm mà chéc <img src="http://dtvt.org/smileys/New%20Folder/dtvt_dance.gif" border="0" alt="" align="middle" /> ).<br />
2 moto ta sẽ gắn với 2 bánh sau, phía trước gắn 1 bánh xe có thể đổi hướng (giống bánh xe ở cái ghế của mấy cha giám đốc á, tất nhiên là xài loại nhỏ thôi). Nếu ko tìm ra loại bánh xe đó thì&#8230; đành phải tự chế thôi.<br />
</strong><br />
<strong>Bên dưới&#8230; xe</strong></p>
<table id="0.5810900831828792" onclick="imgview('0.5810900831828792','768','1024','450','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (1024 x 768)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.5810900831828792" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/bottom.jpg" border="0" alt="" width="600" height="450" /><br />
<strong>Bên trên (nói chung là nó cứ như miếng nhựa với 2 bánh xe, chụp ảnh từ di động cùi nên ảnh ko đẹp cho lắm <img src='http://virus.dtvt.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</strong> <img title="diec tai qua" src="http://dtvt.org/smileys/New%20Folder/dtvt_bittai.gif" border="0" alt="diec tai qua" /></p>
<table id="0.3530156544361671" onclick="imgview('0.3530156544361671','1024','768','800','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (768 x 1024)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.3530156544361671" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/top.jpg" border="0" alt="" width="600" height="800" /></p>
<p><span style="color: #0000ff;"><strong>+ Phần ”sân” (cái này tốn keo lắm).<img title="Ha ha hi hi" src="http://dtvt.org/smileys/New%20Folder/dtvt_hahahihi.gif" border="0" alt="Ha ha hi hi" /></strong></span><br />
<strong>Lấy khoảng 4-6 tờ A4 ghép lại thành sân, lấy keo đen dán lên làm vạch, nhớ dán cẩn thận, tránh gồ gề (chỗ uốn dễ bị ”lồi” keo) để xe có thể dễ bon bon trên vạch.<br />
Đây đã tốn nửa cuộn keo đen (5k 1 cuộn) để dán đi dán lại cái sân mà chẳng ra hồn.<br />
</strong><br />
<strong>Hình ảnh:</strong><img title="Ha ha hi hi" src="http://dtvt.org/smileys/New%20Folder/dtvt_hahahihi.gif" border="0" alt="Ha ha hi hi" /></p>
<table id="0.5001496391525276" onclick="imgview('0.5001496391525276','768','1024','450','600');" border="0" cellspacing="1" cellpadding="3" width="600">
<tbody>
<tr>
<td>Ảnh đã được thu nhỏ .Click vào thanh này để thấy ảnh size nguyên gốc. (1024 x 768)</td>
</tr>
</tbody>
</table>
<p><img id="img_0.5001496391525276" src="http://i379.photobucket.com/albums/oo233/minhtuan99bk/simple%20robot/field.jpg" border="0" alt="" width="600" height="450" /></p>
<p><span style="color: #ff0000; font-size: small;"><strong>* Nguyên lý hoạt động của toàn mạch:</strong></span></p>
<p><strong>- Khi 2 cảm biến đều nhận nền trắng:</strong><br />
Điện trở của 2 quang trở đều giảm xuống chừng 5k =&gt; cổng 3 và 5 của Opamp sẽ có áp cao hơn cổng 2 và 6 (cổng 2 và 6 ta phân áp cố định cho nó là 9/2=4.5V).<br />
=&gt; Cổng ra 1 và 7 của 2 kênh sẽ ở mức dương =&gt; kích 2 BJT dẫn<br />
=&gt; cả 2 moto đều quay<br />
<em><strong>&gt;Cả 2 moto đều quay, robot chạy thẳng.</strong></em><br />
<strong>- Khi cảm biến bên trái nhận vạch đen (robot đang lệch phải).</strong><br />
Điện trở của quang trở 1 sẽ tăng lên cỡ 50-80k =&gt; áp trên cổng 3 sẽ bé hơn 4.5V (áp trên cổng 2) =&gt; cổng ra 1 sẽ là 0V =&gt; BJT 1 sẽ ngưng dẫn =&gt; mô tơ 1 (bên trái) ngừng quay. Trong khi đó moto bên phải vẫn quay vì cảm biến phải nhận nền trắng.<br />
<strong><em>&gt;Moto trái ngừng, moto phải vẫn quay =&gt; robot sẽ rẽ sang trái.</em></strong><br />
<strong>- Tương tự khi cảm biến phải nhận vạch đen (robot đang lệnh trái).</strong><br />
<em><strong>&gt;Moto phải ngừng, moto trái vẫn quay =&gt; robot sẽ rẽ phải.<br />
</strong></em><br />
<span style="color: #0000ff;"><strong>Như vậy, robot (chiếc xe cà tàng) của chúng ta sẽ bám (lần, mò&#8230;) được vạch đen trên nền trắng.<br />
</strong></span><br />
<strong><span style="color: #ff0000;"><br />
Và cuối cùng là cờ líp của em nó:</span></strong><img title="Do mat roi ne" src="http://dtvt.org/smileys/New%20Folder/domat.gif" border="0" alt="Do mat roi ne" /><br />
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/HfiWRIELAAA" /><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/HfiWRIELAAA" allowscriptaccess="never" allownetworking="internal" wmode="transparent"></embed></object><br />
<span style="color: #0000ff;"><br />
<strong>Một vài lưu ý:</strong></span><br />
- Vì dòng ra của BJT ko lớn lắm nên xài moto từ xe đồ chơi con nít đôi khi ko chạy nổi.<br />
- Phần sân làm thì nên có những khúc qua vừa phải, đừng cong quá mà cả 2 cảm biến đều nằm trên vạch đen thì robot sẽ ko nhúc nhích nữa.<br />
- Có thể thay thế mấy con 10k trong mạch bằng biến trở 20k (vì đây mua biến trở 20k ko ra nên ko xài luôn).<br />
- Có thể mắc thêm Diode bán dẫn vào mỗi moto để tránh dòng điện sinh ra từ moto có thể ảnh hưởng đến mạch (cái này nghe mấy anh làm robot nói vậy).<br />
- Nếu robot chạy nhanh quá thì có thể nó sẽ ko bám đc vạch vì mấy con quang trở đáp ứng khá chậm, khắc phục bằng cách dùng hộp giảm tốc hoặc mắc song song với moto vài con led trang trí cho đẹp hoặc&#8230;. chờ cho pin yếu đi cũng đc <img title="Ha ha hi hi" src="http://dtvt.org/smileys/New%20Folder/dtvt_hahahihi.gif" border="0" alt="Ha ha hi hi" />.<br />
<span style="color: #ff0000; font-size: small;"><strong><br />
Chúc thành công!.</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://virus.dtvt.org/2010/05/15/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

