âã¯ããã« é»åå·¥ä½ã楽ããããã®å¸è²©ãããããã¬ãããã¼ãé ç·ã¯é常ã«åªãããã®ã§ï¼å¤ãã®æè¡è ããããåºçºç¹ã¨ãã¦ãããã¨ã§ãããï¼ããã§ãï¼åè·¯ãå°ãã¢ã¬ã³ã¸ãããï¼ã±ã¼ã¹ã«å ¥ãã¦å®ç¨æ©å¨ã«ãããã¨ãã¯èªç±ã«é ç·ã§ããã¦ããã¼ãµã«åºæ¿ï¼ä»¥ä¸ãèªå¨åºæ¿ãã¨è¡¨è¨ï¼ã使ããã¨ãå¤ããã¨ã¨æãã¾ãï¼ éèªã®è£½ä½è¨äºã§ãå¤ãã®çè ã®æ¹ã ãèªå¨åºæ¿ã使ã£ã¦ä½åãçºè¡¨ãã¦ãã¾ããï¼å®æ é ç·å³ã¾ã§ããè¨äºãããããããã¾ãï¼ãããï¼èªåã§å®éã«ãã£ã¦ã¿ããã¨ããã¨ï¼ã©ãã§ããããï¼é»åå·¥ä½ãå§ãã¦ãããæ £ãã¦ããã¨ï¼ãã®èªå¨åºæ¿ã®é ç·ãã²ã¨ã¤ã®ãã¼ãã«ã«æãã人ã¯ç§ã ãã§ã¯ãªãã¨æãã¾ãï¼ ãã®é£è¼ã§ã¯ï¼ç§ããã¤ãè¡ã£ã¦ããæ¹æ³ãç´¹ä»ããªããï¼ã©ããªææãã©ããªæ¹æ³ã§çµãã§ããã®ãï¼éä¸ã§ã¯ãµã³ãã«ã®åè·¯ãä½ããªãããä»ãåãããã ãããã¨æãã¾ãï¼
é»åå·¥ä½ã§ã¯ã馴æã¿ã®LM386(NJM386BD)ãç¨ããã¢ã³ããä½ã£ã¦ã¿ã¾ããã é¨å代ããã»ã©ãããããæ軽ã«ãã¯ã¼ã¢ã³ãã製ä½ã§ããã®ã¿ã¼ã¢ã³ãï¼ã¤ã³ã¿ã¼ãã³ãªã©ã«å¿ç¨ããå¤ãã®ä½ä¾ãå ¬éããã¦ãã¾ãã ä»åã¯ãã®ICããªã¼ãã£ãªã¢ã³ã(ã¨è¨ãã«ã¯ãããã¾ãããé³æ¥½éè³ç¨)ã¨ãã¦å®ç¨ã«ãªãã®ãã©ãããèå³ã®å¯¾è±¡ã¨ãã¦ããã¾ããã ICã®ã¹ããã¯ããè¦ãã¨ããåºåã0.5ï½1Wç¨åº¦ã§ãããæ¬æ ¼çãªãªã¼ãã£ãªã¢ã³ãã¨ãã¦ã¯åºåä¸è¶³ã§ã¯ããã¾ãããæ¯è¼çé«è½çãªã¹ãã¼ã«ã¼ããã»ã©é³éãä¸ããã«é³´ãããå ´åã«ã©ãã»ã©ã®é³è³ªã§é³´ãããã®ãããããå®éã«è£½ä½ãã¦ã¿ã¦è´ãã¦ã¿ãäºã«ãã¾ããã ãã®ICã®ãªãªã¸ãã«ã¯LM386ãä»åã¯åçåã®JRC製NJM386BDã使ç¨ãã¾ãã 製ä½ããåè·¯å³ã¯ãã®æ§ãªãã®ã§ãã NJM386BDã®ãã¼ã¿ã·ã¼ããèªã¿ãªããæ¤è¨ãã¾ãã ï¼çªãã³ï¼ï¼çªãã³ã®å é¨ã®
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
é³æ¥½ã¯ããã¬ããã¡ã»ã»ã®é³éããã¨ã«ãããããã®é³ãã©ãã»ã©ã®é·ãã§é³´ãããã§ã¤ãããã¾ãã1ç« ç¯ã¨ããåºåãã«ãå ¨é³ç¬¦ã2 åé³ç¬¦ï¼å³15.3ï¼ã¨ããããã«ã1 ç« ç¯ã®ä¸ã®é³ã®é·ããåå²ããé³ãé³´ããé·ãã表ãã¾ãããã¤ã³ã³ã§é³æ¥½ãã¤ããå ´åã¯ãåç´ã«ããããã®é³ãé³´ããé·ããæå®ãã¾ããä¾ãã°ããã®é³ã0.5 ç§éé³´ããã次ã«ã¬ã®é³ã1 ç§éé³´ããã¨ããããã«ãã¦ãé³æ¥½ãã¤ãã£ã¦ããã¾ãã Figureï¼ç« ç¯ã¨é³ç¬¦ Figureï¼ãã®é³ãé³´ããæéã調ç¯ãã é³éã¨é¢æ° é³éãã¤ãã£ããã¨ã«ãé³æ¥½ãé³´ããããããã§ããããã¬ããã¬ã»ã»ã¨ããé çªã§ããã®for loopãã®æ¬¡ã«ãã¬ã®for loopãã¨ããããã«ä¸¦ã¹ã¦ãã£ã¦ã¯ã大å¤ã§ããããã§ãã®é¢æ°ãã¬ã®é¢æ°ã¨ããããã«ããããã®é³ã®é¢æ°ãã¤ããããã¬ããã¡ã½ã©ã·ãã®é³éãã¤ããã¾ãã次ã«æ¥½èã«åããã¦ãããããã®é¢æ°ãå¼ã³åºãæ¹æ³ã
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
ãã¯ã¼LEDãï¼ç«¯åã¬ã®ã¥ã¬ã¿ã¼ä»¥å¤ã®å®é»æµåè·¯ã«ã¦ç¹ç¯ããããã¨ããã£ã¦ãã¾ãã åçã®ãããªã¦ããããä½ããã¨æãã®ã§ããåè·¯å³ãæ¢ãã¦ãè¦ã¤ãããªãã§ãã ã©ãªããæãã¦ããã ããªãã§ããããï¼ ãã¯ã¼LEDãï¼ç«¯åã¬ã®ã¥ã¬ã¿ã¼ä»¥å¤ã®å®é»æµåè·¯ã«ã¦ç¹ç¯ããããã¨ããã£ã¦ãã¾ãã åçã®ãããªã¦ããããä½ããã¨æãã®ã§ããåè·¯å³ãæ¢ãã¦ãè¦ã¤ãããªãã§ãã ã©ãªããæãã¦ããã ããªãã§ããããï¼
ãã®ãã¼ã¸ã§ã¯ãLEDï¼çºå ãã¤ãªã¼ãï¼ã®æãããå¯å¤æµæã使ã£ã¦èª¿ç¯ãããã¨ã®ã§ããåè·¯ãå¦ç¿ãã¾ããPWMä¿¡å·ãç¨ãã¦ãããããæãããå¤ãã¦ãè²ã®å¤åããªãã®ãç¹å¾´ã§ãã 1. PWMä¿¡å·ã使ã£ãLEDåè·¯ã®åä½ æ¬ç« ã4-1. LEDåè·¯ãä½ããã§èª¬æããããã«ãLEDï¼çºå ãã¤ãªã¼ãï¼ã®æããã¯æµããé»æµéã«ãã£ã¦æ±ºã¾ãã¾ãããã®ãããLEDã®æãããèªç±ã«å¤ãããããããªåè·¯ãä½ãå ´åãLEDã«æµããé»æµéãå¤ããæ¹æ³ãèãããã¾ããããããLEDã¯æµããé»æµãå¤ããã¨å ã®ã¹ãã¯ãã«ãå¤åãããããè²ãå¤ãã£ã¦ãã¾ãã¨ããåé¡ãããã¾ãã ããã§ãLEDã®è²ãå¤åãããã«æãããå¤ããæ¹æ³ã¨ãã¦ãPWMï¼Pulse Width Modulationï¼ä¿¡å·ãç¨ããæ¹æ³ãããã¾ãã PWMä¿¡å·ãçºçããåè·¯ã«ã¤ãã¦ã¯åãã¼ã¸ã®ã4-2. PWMä¿¡å·ãä½ããã§èª¬æãã¾ããã®ã§ããã®ã
ã¾ã赤å¤ç·ãªã¢ã³ã³é¢ä¿ã§ãã 赤å¤ç·ãªã¢ã³ã³ã¯ã38kHz ã®ãã£ãªã¢æ³¢ã«ã®ãã¦ãã¼ã¿ãéãã¾ãã ãã®ã38kHz ã PWM (pulse width modulation) ã§ä½æãã¦ã¿ããã¨æãã¾ããã ãã㧠PWM ã«ã¤ãã¦åå¼·ãã¾ããã AVR.jp http://www.avr.jp/ ããã«ããã¼ã¿ã·ã¼ãã®æ¥æ¬èªè¨³ãããã®ã§èª¿ã¹ã¦ã¿ã¾ããã ãã¤ãã® ATtiny13A ã使ãã¾ãã OC0A, OC0B ã PWM åºåã«å¿ è¦ãªãã³ã§ãã PWM ã«ã¯ããããã¢ã¼ããããããã§ããã波形ã®èª¿ç¯ããããããããã®ã¨ãããã¨ã§ãé«éPWMåä½ãé¸ã³ã¾ããã PWM åºåå¨æ³¢æ°ã 38kHz ã¨ããã¯ãATtiny13A ã 1.2MHz ã§é§åããã¨ã ã»åå¨ãªãã§ã( (1.2MHz / 38kHz ) / 1(åå¨) ) - 1 = 30.6 CPU cycles ãå¿
ãµã¼ãã¹çµäºã®ãç¥ãã ãã¤ãYahoo! JAPANã®ãµã¼ãã¹ããå©ç¨ããã ãèª ã«ãããã¨ããããã¾ãã ã客æ§ãã¢ã¯ã»ã¹ããããµã¼ãã¹ã¯æ¬æ¥ã¾ã§ã«ãµã¼ãã¹ãçµäºãããã¾ããã ä»å¾ã¨ãYahoo! JAPANã®ãµã¼ãã¹ããæ顧ãã ããã¾ãããããããããé¡ããããã¾ãã
2003.9.18 å°å±±æºå²(å¼å大å¦) AVRãã¤ã³ã³ã¨é«ç²¾åº¦ã®ã¯ãªã¹ã¿ã«ã使ã£ãã·ã³ãã«ãªæè¨ã§ãããæåãã00:00ã11:59ã§è¡¨ç¤ºããã¾ãã ããªã»ãããã¿ã³ã¯ãçãæ¼ãã¨1åãã¤ã®ã«ã¦ã³ãã¢ãããæ¼ãç¶ããã¨é«éã§ã«ã¦ã³ãã¢ãããã¾ãã (åç)
ã¦ã¬ã¿ã³æ¨¹èã®ã¯ãã¹ãå°ä½ã«ç¼ãä»ããå·»ç·ã§ãã èç±æ§,èè¬åæ§ã«åªãã¦ãã¾ãã æ¥ç¶æ被è¦ãå¥ããããã³ãä»ããããã¨ãå¯è½ã§ãã é«å¨æ³¢ã«ãããèªé»ç¹æ§ã«åªãã¦ãã¾ãã å ¥ãæ°/é·ã:2...
3æ26 èªä½ãã¡ã³ã³ã³ãã®38 - ãã¡ã³é§ååè·¯ ãã¦ãã¡ã³ã³ã³ã§ããã Arduinoã£ã¦ãããAVRã¯PWMåºå端åãå¤ãããã®ã§ãå代ãã¡ã³ã³ã³ã§ã¯ã½ããã¦ã§ã¢PWMã ã£ãã¨ããããã¼ãã¦ã§ã¢PWMã§ãããããã¨æã£ããããããã§ãã ãã ããã¼ãã¦ã§ã¢PWMã§ãã¡ã³ã®é»æºãOFF/ONãã¾ããã¨ãå転æ°ã»ã³ãµã¼ã®åºåããã·ãã·å¤ãã£ã¦ãã¾ã£ã¦ããã¢ã«å転æ°ãæ¤åºã§ããªããªãã®ã§ãã³ã¤ã«ã¨ã³ã³ãã³ãµã§å¹³æ»åãã¦ããªãã¡ãã£ã¦ããã¯ã³ã³ãã¼ã¿ã¿ããã«ããã°ãããï¼ã¨ããèãã§ãã ã¨ããããæå§ãã«â¦ ãã¼ãã¦ã§ã¢PWMã使ãã¨ãããã¹ã¤ããã³ã°å¨æ³¢æ°ã¯ããã¤ã«ãªãã®ãã Arduinoã®ã¯ããã¯ã¯16MHzã§ãããPICã¨éã£ã¦1/4ããªã¹ã±ã¼ã©ã¨ãç¡ãã®ã§ããããã®ã¾ã¾16MHzã§åãããã§ãããããã 8ãããã®PWMã«ããã¨ç§é16,000,000åã«ã¦ã³ã¿ãã«ã¦ã³ãã¢ãã
ä»ã®åä¾ãã¡ã«ã¨ã£ã¦ã¯ãããã¡ãã¯è²·ã£ã¦éã¶ã®ããããã¾ãï¼ã§ããèªåã§ä½ã£ã¦ã¿ãã®ã楽ããããï¼ åä¾ãã¡ã«èªåã§ãã®ãã¤ãã楽ãã¿ãçµé¨ãã¦æ¬²ããã¨æããã¸ãã«æ´»åãã¯ããã¦ã¿ã¾ããã京é½ãä¸å¿ã«æ´»åããã¦ãã¾ãããç¶ããããæ¯ãããä¸ç·ãªããå°å¦çãããããä½ãããããªå 容ã§ããæ¯éã親åã§ä¸ç·ã«ä½é¨ãã¦ãã ããã æ¨å¹´ã®å¤ä¼ã¿ã«ããã¡ã®ä¸ã®åãå¤ä¼ã¿ã®å·¥ä½ã§ä½ã£ããã¢ã¯ãªã«æ¿ã§å ãçµµãã¯ãã¯ãã ä»ãã§ä½ãã¾ãããã§ããã¯ãã ä»ãã¯ã¡ãã£ã¨ãã¼ãã«ãé«ããã¨ããæ¹ã«ãã½ã«ãã¬ã¹ã»ãã¬ãããã¼ãï¼ä»¥ä¸ããã¬ãããã¼ãã¨ç¥ãã¾ããï¼ã使ã£ã¦ã¯ãã ä»ããªãã§ä½ãæ¹æ³ãç´¹ä»ãã¾ãããã¬ãããã¼ãã«ã¤ãã¦ã詳ããã¯ãã¡ãã®è¨äºãã覧ãã ããã âãç°¡åã«åè·¯ãä½ãããã¬ãããã¼ãã®ä½¿ãæ¹ã ãçæ¿ç´éãããã³ã ãããã®ããã°ã§ãç§ã®ããã°ãç´¹ä»ãã¦é ãã¾ããã®ã§ããã£ãããªã®ã§ããçæ¿ç´éãã
ãå³è§£ã»ãããé»ååè·¯ãã¨ããæ¬ãè¦ã¦ãããã¿ã¤ãã¼ï¼©ï¼£ã使ã£ãæå§åè·¯ãã®ã£ã¦ããã®ã§ä½ã£ã¦ã¿ããã¨ã«ãããã¾ãä½ã£ã¦ã¿ãã®ã¯äºåå§åè·¯ã¨ãããã®ãé»å§ãäºåã«ãªããããã æ¬ã§ã¯é»æºã¯5Vã ã£ãããã©ããããã§ã¯1.5VãICã¯LMC555CNã«ãããããã§ãã¾ãããã®ãâ¦ï¼ é»å§ã¯2.16Vã«ããã£ã¦ããããããã«æå§ããã¦ãããã¨ã¯ããã¦ããã®ã ããäºåããã¯ã ãã¶é ãã ãã°ãããã®ã¾ã¾ã«ãã¦ããã¨ã2.385Vã¾ã§ä¸ãã£ãã ã¤ãã«ä¸åå§åè·¯ãã¨ãã£ã¦ããä¸ã®åè·¯ã«ãã¤ãªã¼ãäºåã¨ã³ã³ãã³ãµäºåã足ããã ãã 2.882Vãããããã°ããå¾ ã£ã¦ããã¨3V以ä¸ã«ã¾ã§ä¸ãã£ãã ãã¾ãäºåã¨ãä¸åã«ãªããªãã£ãçç±ã¯ãã¯ãLMC555CNãåå ãªã®ããªãâ¦ã¨ããæ°ãããã
ãä»æ§ã â é»æºï¼ AC100V/DC15Vã»24Vï¼å®å®åï¼ â é»æµå¶éæµæï¼ LEDä»æ§ã«ããï¼7åç´åï¼ â åºæ¿ã®å¤§ããï¼ 220Ã150Ã1.6mmï¼FR-4) â ã¹ã¤ããä»ãï¼ åºæ¿åãä»ãã¿ã¤ã ãç¨éã ã©ã¤ãã»æ¤ç©æ ½å¹ã»å®é¨ç¨ãªã©ã âå®æãµã³ãã«ããã¦ã§ããã°ãã ã注æã â é»æºã¨æµæã¯LEDã«ããç°ãªãã¾ãã â¡FluxLEDã®å ´åã¯98åã®LEDãé ç·ã§ãã¾ããLEDã¯100åå ¥ãã§ãã â¢Ï5LEDã®å ´åã¯98åã196åã®LEDãé ç·ã§ãã¾ããLEDã¯100/200åå ¥ãã§ãã â£LEDã®æ¥µæ§ã¯åºæ¿ã«åããã¦ä¸ãããæµæã¨ã¹ã¤ããã«ã¯æ¥µæ§ã¯ããã¾ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}