±â¼ú°øÀ¯
 ÁúÀÇÀÀ´ä
 ÀÚ·á½Ç
 ¸¶ÀÌÄÞÁ¦¾î
  Home >> ±â¼ú°øÀ¯ > ¸¶ÀÌÄÞÁ¦¾î

Total 38  (33/38)
ºÎ·ÏÀ» Æ÷ÇÔÇÏ¿© ÃÑ 38°­Á·Π±¸¼ºµÇ¾î ÀÖ½À´Ï´Ù. Ã¥À» ÀеíÀÌ ¾ÕÆä¿¡ÁöºÎÅÍ »ç¿ëÇϽʽÿä

Á¦9Àå 8051 È°¿ë- 4°­


7. Àû¿Ü¼± ¼¾¼­ ÀÎÅÍÆäÀ̽º
Àû¿Ü¼± ¼¾¼­´Â ÀÏÁ¤ÇÑ ÁÖÆļöÀÇ ºûÀ» ¹ß»êÇÏ´Â ¹ß±¤ ¼¾¼­¿Í ¹ß±¤¼¾¼­¿¡¼­ ¹ß»êµÈ ºûÀ» ¹Þ¾ÆµéÀ̱⸸ ÇÏ´Â
¼ö±¤ ¼¾¼­·Î ÀÌ·ç¿ö Áø´Ù.
À̵éÀº ¼­·Î°¡ ±Ø¼ºÀÌ Á¸ÀçÇϹǷΠȸ·Î¼³°è½Ã¿¡´Â ¹Ýµå½Ã µ¥ÀÌÅÍ ½¬Æ®¸¦ ÂüÁ¶ÇÏ¿© ȸ·Î¸¦ ±¸¼ºÇÏ¿©¾ß ÇÑ´Ù.


7-1. Àû¿Ü¼± ¼¾¼­ÀÇ Æ¯Â¡

¨ç ¹°Ã¼¸¦ Á¢ÃËÇÏÁö ¾Ê°í °ËÃâÇÒ ¼ö ÀÖ´Ù.
¨è ÀÀ´ä ¼Óµµ°¡ ºü¸£´Ù.
¨é ºÐÇØ´ÉÀÌ ³ô´Ù
¨ê Á¶¸íµîÀÇ ±¤¿øÀÇ ¿µÇâÀ» ¹Þ±â ½±´Ù. »ç¿ëÇϴ ȯ°æ¿¡ ´ëÇÑ °í·Á¿Í óġ°¡ ÇÊ¿ä
¨ë ¼¾¼­ºÎ°¡ ¿À¿°¿¡ ¾àÇÏ´Ù





7-2. R-C ÇÊÅÍ
Çü±¤µî ¹× ¿ÜºÎ¿¡¼­ ¹ß»ýµÇ´Â ÀúÁÖÆÄ ¼ººÐÀ» ¾ø¾Ö±â À§ÇÑ ÀûºÐÇü ÇÊÅÍÀ̸ç,
ÀúÇ×ÀÌ ÀÛ°Ô µÇ¸é ÆÄÇüÀÇ ±â¿ï±â°¡ °¡Æĸ£°Ô µÇ¾î A/D »ùÇøµÇϴµ¥ ÃÖÀû °ªÀ» ãÀ» ¼ö ¾ø°Ô µÈ´Ù.


7-3. 470[¥Ø] ÀúÇ×
Æ÷Åä TRÀÌ µ¿ÀÛÇÏ°Ô µÇ¸é Àü¾Ð°­ÇÏ°¡ »ý±â°Ô µÈ´Ù. Áï ÀÌ Àü¾Ð °­ÇÏÀÇ Å©±â¸¦ ÀÌ¿ëÇÏ¿© °Å¸®¸¦ ÃøÁ¤ÇÏ°Ô µÈ´Ù.
ÀÌ °ªÀÌ Å©¸é °í¼ÓÀ¸·Î ÀÀ´äÇÒ °æ¿ì ¼Óµµ°¡ ´Ê°Ô µÈ´Ù.
±×¸² 9-11Àº Àû¿Ü¼± ¼¾¼­ÀÇ ±âº»È¸·ÎÀÌ´Ù. ¹Ù·Î ÀÌ È¸·Î¸¸À¸·Îµµ ÈǸ¢ÇÏ°Ô ¼¾¼­ ÀÎÅÍÆäÀ̽º°¡ °¡´ÉÇϸç
ÀÌ È¸·Î¿¡ R-C ÇÊÅ͵îÀ» °¡¹ÌÇÏ¿© ȸ·Î¸¦ ¾ÈÁ¤È­ ½ÃÅ°´Â °ÍÀÌ´Ù.






7-4. ULN 2803 Ư¡
- »ç¿ëÀü¾Ð ¹× Á¤°ÝÀü·ù°¡ ³ôÀº NPN ´Þ¸µÅÍ Æ®·£Áö½ºÅÍ(8°³)°¡ ¾î·¹ÀÌ ÇüÅ·Π¹è¿­µÈ IC Ĩ
- TTL, C_MOS, PMOS, NMOS ¿Í ȣȯÀÌ °¡´É









/***************************************************************/
/* Àû¿Ü¼± ¼¾¼­¸¦ ÀÌ¿ëÇÑ LED ±¸µ¿ */
/***************************************************************/

#include
#define IN_0 P1.0 /* ¼ö±¤¼¾¼­ ST-7L Æ÷Æ®¼±¾ð */
#define IN_1 P1.1
#define IN_2 P1.2
#define IN_BYTE P1 /* P1 Æ÷Æ®¸¦ ÀÔ·ÂÆ÷Æ®·Î ¼³Á¤ */

#define LED_0 P3.0 /* LED ±¸µ¿ Æ÷Æ® ¼³Á¤ */
#define LED_1 P3.1
#define LED_2 P3.2
#define OUT_0 P1.3 /* ¹ß±¤¼¾¼­ EL-7L Æ÷Æ®¼±¾ð t*/
#define OUT_1 P1.4
#define OUT_2 P1.5

#define LED_ON 1 /* LED ON */
#define LED_OFF 0 /* LED OFF */
#define OUT_ON 1 /* ¹ß±¤¼¾¼­ ON */
#define OUT_OFF 0 /* ¹ß±¤¼¾¼­ OFF */

char delay_time; /* ½Ã°£º¯¼ö ¼³Á¤ */
void delay0(char delay_time) /* ¹Ì¼¼ÇÑ ½Ã°£ Áö¿¬ */
{
char loop;
for(loop=0;loop }

void ldelay(unsigned char tt)
{
unsigned int i,j;
for(i=0;i for(j=0;j<20000;j++);
}
void init_system()
{
unsigned int i;
for(i=0;i<3;i++) /* LED ½Ã½ºÅÛ ÃʱâÈ­ (Initial) */
{
LED_0=LED_2=LED_ON;
LED_1=LED_OFF;
ldelay(2);
LED_0=LED_2=LED_OFF;
LED_1=LED_ON;
ldelay(2);
}
}
void init_unit() /* ¸ðµç Æ÷Æ® off */
{
OUT_0=OUT_1=OUT_2=OUT_OFF; LED_0=LED_1=LED_2=LED_OFF;
}
void main()
{
char sensor,count,pre_data;
init_unit();
init_system();
pre_data=0; /* ÀÌÀü data value */
while(1)
{
OUT_0=OUT_1=OUT_2=1; /* ¹ß±¤¼¾¼­(OUT_0,1,2) Scanning */
delay0(40);
sensor=IN_BYTE; /* scanning »óÅ sensorº¯¼ö·Î ÀúÀå */
OUT_0=OUT_1=OUT_2=0; /* ¹ß±¤¼¾¼­(OUT_0,1,2) ALL OFF */

LED_0=LED_1=LED_2=LED_OFF; /* LED All OFF */
if(sensor & 0x01) LED_0=LED_ON; /* LED_0 ON */
if(sensor & 0x02) LED_1=LED_ON; /* LED_1 ON */
if(sensor & 0x04) LED_2=LED_ON; /* LED_2 ON */
sensor &= 0x07; /* »óÀ§ bit¸¦ 0À¸·Î ¸¶½ºÅ· */
}
}
±Û¾²±â ±Û¼öÁ¤ ±Û»èÁ¦

±Û¾²±â

[1]...[PRE][31][32][33][34][35][36][37][38]
   °Ë»ö¾î    

Copyright ¨Ï All rights reserved