ããšããã
æ£çŽã«èšã£ãŠãç§ãèªåã®ãããžã§ã¯ãã§å¿ èŠã«ãªããšããæããªãã£ããšãã«ãã·ããã¬ãžã¹ã¿ã®é©çšãšäœ¿çšã®ãããã¯ã«è§Šãããå°ãç°ãªãå 容ã®èšäºãæžãããã£ãã®ã§ãã
ããããç§ã¯å人ããã€ã¯ãã³ã³ãããŒã©ããã°ã©ãã³ã°ã®åéã«åŒã蟌ãããšã«ããŸããããã€ã¯ãã³ã³ãããŒã©ããã°ã©ãã³ã°ã¯ãèªåèªèº«ãä»ã®å€ãã®åé¡ã容æã«ç解ããã§ãããã
圌ã®æåã®ã¢ã€ãã¢ã¯å ã®åçãªèšçœ®ãäœæããããšã ã£ãã®ã§ãç§ã¯åœŒã«Digisparksãš10ã¯ããRGB LEDã®ã¹ã¿ãŒã¿ãŒãããã泚æããŸããã ããããåé¡ã¯ã圌ããåŸ ããªãã£ããšããããæ¥ãŸãããæåã®åé¡ã¯ãããŒããŠã§ã¢PWMã®æ¬ åŠã§ãã ãããŠ2ã€ç®-å人ãè€æ°ã®LEDãåæã«å¶åŸ¡ãããã£ãã
ãã¡ããã解決çã¯ç°¡åã§ããå¥ã®ãã€ã¯ãã³ã³ãããŒã©ãŒãåãããããé«åºŠãªããŒãã䜿çšããŠãã ããã ãããããã®ãããªããŒãã¯çŽ æŽãããæ段ã®ããã«æ³šæããåã³åŸ ã€ããå°å ã§è³Œå ¥ããå¿ èŠãããããã®éãç§ã¯é·ãéç 究ããŠããå¶åŸ¡åçã§ããã·ããã¬ãžã¹ã¿ãæãåºããŸããããç§ã¯ãããåè·¯ã§äœ¿çšããŸããã§ããã
圌ã¯Atmel Studioã«åº§ã£ãŠã74HC595ãéããŠãã«ããã£ãã«ãœããPWMã®èšè¿°ãéå§ããŸããã æ°æ¥ã§ãããã€ãã®å¶åŸ¡ã¢ãŒããäœæããããã«ããã£ãã«PWMãBAMãç·šæããããã®ãã¹ãŠã®åºæ¬æ©èœãããã³LEDã¬ãã«ãš7ã»ã°ã¡ã³ãã€ã³ãžã±ãŒã¿ãŒãæäœããããã®ã¡ã«ããºã ãå®è£ ãããŸããã
å®éããã®ããŒãã«ã€ããŠã¯ãæ·»ä»ã®ãœãŒã¹ã䜿çšããŠè©³çŽ°ãªèšäºãæžããããšæããŸããããããªã¥ãŒã ãéåžžã«å€§ãããªããèšäºãéåžžã«åºç¯å²ã«ãªããŸããã ãããŠã以äžã§èª¬æããæçµçãªå®è£ ã®åŸã管çã³ã³ã»ãããå®å šã«ä¿®æ£ããå¿ èŠãããããã®ãããã¯ã«é¢ãããã¹ãŠã®éçºãå³åº§ã«é³è åããããšã«ãªããŸããã
èªè ããã®ãããªèšäºãåãåããããšãã欲æãæã£ãŠãããªãã°ãç§ã¯ããããã§ãããã ãããŠããããªãã§ã ç§ãã¡ã¯ç ã ç§ãã©ãã»ã©æ ããŠãããèŠããŠããŸã ã :)
äžè¬ã«ãå人ã¯Arduinoç°å¢ã§äœ¿çšããããã®ã©ã€ãã©ãªãåãåããŸããããç§ã¯éå±ããLCDïŒHD44780ïŒãå¶åŸ¡ããããã«èª¿æ»çµæãé©çšããããšãèãå§ããŸããã
ãã®äœæ¥ã®çµæãä»ãããã¢ã³ã¹ãã¬ãŒã·ã§ã³ããåæã«ç¥èãšãœãŒã¹ã³ãŒããå ±æããããšæããŸãã
ããã§ã¯ãå§ããŸãããïŒ
誰ããç¥ã£ãŠããã·ããã¬ãžã¹ã¿ããã€ã¯ãã³ã³ãããŒã©ãŒãããã³æ¶²æ¶ç»é¢ãšã¯äœã§ãããç¥ããªããèå³ãããå Žåã¯ãã€ã³ã¿ãŒãããããç°¡åã«ãã®ç¥èãåŸãããšãã§ããã®ã§ãæãåºæ¬çãªç¥èã¯çç¥ããŸãã
åäœã«ã¯ããªã³ããã³ãã§ããŒã¿åºåãæŽçã§ããã©ãããååšãããããã·ããã¬ãžã¹ã¿74HC595ãéžæãããŸããã HD44780ïŒ4ãããã¢ãŒãã§ã®åäœçšïŒããã³ATtiny13Aãã€ã¯ãã³ã³ãããŒã©ãŒãšäºææ§ã®ãããã£ã¹ãã¬ã€ã
ãã®éžæã¯ããã匷åãªãã€ã¯ãã³ã³ãããŒã©ãŒã®äžè¶³ã«ãããã®ã§ã¯ãªããã¿ã¹ã¯ã®ç¯å²ãçµè«ã®æ°ãã¡ã¢ãªãšRAMãçããããšããããŠåã«ã¹ããŒãã®ç®çã®ããã«è¡ãããŸããã
ç®çïŒããã©ãŒãã³ã¹ã䜿ãããããããã³å šæ©èœãç ç²ã«ããããšãªããç¹å®ã®æ©åšã§å®è¡ã§ããã³ãŒãã®äœæã
衚瀺éå§ã
æåã«æŽçããå¿ èŠãããã®ã¯ã蚱容å¯èœãªé床ã§ã·ããã¬ãžã¹ã¿ãä»ããŠããŒã¿ãåºåããããšã§ãããããã¯ãTinkiã®3æ¬ã®èã䜿çšããŠè¡ãããŸããã
ãã®æ¹æ³ã§èšè¿°ãããæ¥ç¶ã®ç»åïŒ
次ã«ãLCDã§èš±å®¹ããã圢åŒã§ããŒã¿ã衚瀺ããé¢æ°ãäœæãããŸããã ãã®é¢æ°ã¯ãåŸç¶ã®ãã¹ãŠã®åºåã®ããŒã¹ãšãªãäžçš®ã®ã«ãŒãã«ãŸãã¯ã©ã€ãã©ãªãã©ã€ããŒã§ãã ããŒã¿ã®æçåãããã«ïŒããã«ïŒã«æŽçããã·ããã¬ãžã¹ã¿ãä»ããŠLCDã«éä¿¡ããã¡ã€ã³ããŒã¿è»¢éæ©èœãåŒã³åºãè¿œå æ©èœïŒè£å©æ©èœïŒã
æ©èœéšåã®å®è£ ã
äœæ¥ã®ãã®éšåãå®äºããŠãã¹ãããããšããã«ãåæLCDåæåã«å¿ èŠãªããã€ã¹ã³ã³ãããŒã«ããã«ã§èª¬æãããŠããLCDå¶åŸ¡æ©èœã®äžäœã¬ãã«ãšãLCDããªã³ã«ãªããªãåæåæåæ©èœèªäœã®æŽçãéå§ããŸããã ã
ãŸãã1ã€ã®åºåé¢æ°ïŒäžèšã®ãã©ã€ããŒïŒã®ã¿ãLCDã«ããŒã¿ãéä¿¡ããããã®ãã®ã§ãããããä»ã®ãã¹ãŠã®é¢æ°ã¯ã察å¿ãããã©ã¡ãŒã¿ãŒã転éããããšã«ãããåŒã³åºãã«ãã£ãŠç°¡åã«æ§æã§ããŸãã ãã®ãããããã°ã©ã ã¡ã¢ãªãç¯çŽããããã«ãä»ã®ãã¹ãŠã®é¢æ°ã¯#defineãã£ã¬ã¯ãã£ãã䜿çšããŠå®çŸ©ã§ããŸãã
ãã®æç¹ã§ã誰ã䜿çšããªãåæåæ¹æ³ãèŠã€ããŸããããããã¯HITACHI company DSã§è©³çŽ°ã«èª¬æãããŠããŸãïŒç§ã®èšæ¶ãããŸãæ©èœããŠããå ŽåïŒã ããã¯ãLCDã®ããŒã¿ã©ã€ã³ã®ããã深床ãåãæ¿ããããã«ãæåã®2ã€ã®åœä»€ã4ãããã§ããããšãå¿ èŠã§ãããšããããšã§ãã
ããŸããŸãªãµã€ããèªãã§LCDå¶åŸ¡ã®åé¡ã調ã¹ããšããå€ãã®äººã«ç¥ãããŠããæšæºã®åæåã¢ãŒããããã«èšè¿°ãããŠããŸããã
ãã®çµæãä»ã®ã¡ãŒã«ãŒã®LCDã䜿çšããéã®åé¡ãåé¿ããããã«ã2ã€ã®åæåé¢æ°ãäœæãããŸããã ã¢ãŒãã¯ãããã°ã©ã ã®å é ã«ãããã£ã¬ã¯ãã£ãã«ãã£ãŠæ±ºå®ãããŸãã
ãã®åŸãLCDå¶åŸ¡æ©èœã®åºæ¬ã»ãããæ¡åŒµããäžé£ã®æ©èœãå®çŸ©ãããŸãããããã«ã¯ã2çš®é¡ã®LCDããã€ã¹ã®ã«ãŒãœã«äœçœ®æ±ºãæ©èœïŒ1602ããã³2004ïŒã¿ã€ãåãæ¿ãã¯ããã°ã©ã ã®å é ã®ãã£ã¬ã¯ãã£ãã«ãã£ãŠç·šæãããŸãïŒïŒããã³æååºåæ©èœãå«ãŸããŸãïŒ
次ã«ããããã¬ãã«ã®é¢æ°ã®è£å©ã»ãããäœæããŠãç»é¢äžã®æšæºã¿ã€ãã®ããŒã¿ã®åºåãæŽçããŸãããããšãã°ããã€ããã¯ãŒããHEX圢åŒã®ãã€ããæååãªã©ã§ãã
æ°å€ããŒã¿ãåºåããããã«ã10ããã³100ã«ããçŽ æ©ãé€ç®ã®é¢æ°ãšã察å¿ããé€ç®ïŒããªãã¯ïŒã®æ®ãããã¬ãŒããããè£å©ãã¯ããèšè¿°ãããŸããã ãããã£ãŠãuint16ãåºåããããã«5ã€ã®é€ç®ã®ä»£ããã«ãããå°ãªãæ°ã®é€ç®ãå¿ èŠã§ã-8ã§ã¯ãªã4ãuint8ã§ã¯4ã§ã¯ãªã2ã æ°ããæåã決å®ããæ©èœãRAMã®è¡ã®ãã·ã¢èªããã¹ãããã©ã³ã¹ã³ãŒãããæ©èœãããã¹ãã®å€æã«ããããã°ã©ã ã¡ã¢ãªããã®è¡ã®åºåãæžã蟌ãŸããŸãã
ãã®ã»ããã¯æ¬¡ã®ãšããã§ãã
ãã€ãããããããã®åºåãšãã€ãããããããã®ãã¹ã¯ãããåºåãæŽçãã2ã€ã®è£å©é¢æ°ãããã¹ã¯ã§æå®ãããç¹å®ã®ãããã®ã¹ããŒã¿ã¹ã®ç£èŠãå¯èœã«ããããã«ãããã«è¡ããŸããã 以äžã®ãããªã§ã¯ããããå®èšŒãããŠããŸãã
ãã ããå®éã®ããŒããŠã§ã¢ã§è¡šç€ºããã«ã¯ãæåã³ãŒããä»ã®æåã«å€æŽãããã代æ¿æåãäœæããŠããã®ã³ãŒãã䜿çšããå¿ èŠããããŸãã ãããã®é¢æ°ã«é¢ããã³ã¡ã³ãã¯ããããå€æŽããå Žæã瀺ããŠããŸãã
ããŠãçµè«ãšããŠããã®ãããã°ã¬ãããå šäœã¯ãæé«ã®æ©èœã»ããã«ãã£ãŠæ¡åŒµãããŸããã
ç»é¢äžã®ç¹å®ã®äœçœ®ã§ããŒã¿ã®åºåãæŽçããŸãã ããã¯ãïŒdefineãã£ã¬ã¯ãã£ããä»ããŠåãæ¹æ³ã§è¡ãããŸããã
æ瀺ãããã³ãŒãã®æç²ã¯ãã³ã¡ã³ãå ã®ã³ãŒãã®è©³çŽ°ã瀺ããŠããããã䜿çšã«åé¡ã¯ãããŸããã æé©åã®çµæãããªãæ§ãããªã³ãŒããµã€ãºã§ããªããªãããªåºåã衚瀺ã§ããããã«ãªããŸãããããã®åŠçé床ã«ã¯æéãåããŸããã§ããã ãŸããã¹ã¿ãã¯ãšãã¹ãã¬ãã«ã®äœ¿çšãåæããåŸãåºåã«ãŒãã«ã®é¢æ°ãæžãæããŠã2ã€ã®ãã©ã¡ãŒã¿ãŒãå¿ èŠãšããè£å©é¢æ°ãåé€ããããšã決å®ããŸãããããã«ãããã¹ã¿ãã¯ãå€§å¹ ã«ã¢ã³ããŒããããã³ãŒãã100ãã€ãåæžãããŸããããåºåã¯ããŸãé«éåãããŸããã§ããã
ããŒããŠã§ã¢ã®ã¢ããã°ã¬ãŒãã
ãããŠãã®ç¬éã10幎åã«RCãã§ãŒã³ã䜿çšããŠã·ããã¬ãžã¹ã¿ãžã®ããŒã¿åºåãç·šæãããã€ã人ã®äŸãèŠã€ããŸããã 第äžã«ããã®ã¡ãœããã®å®è£ ã«ããããã€ã¯ãã³ã³ãããŒã©ãŒã®çæ¹ã®èã解æŸããããšãã§ãã第äºã«ããããç§ãæ°ããèãã«é§ãç«ãŠãŸããã
ãã®ãããããŒã¿è»¢éãããã³ã«ãåæããŠããEã-LCDä¿¡å·ã®åºåãšã·ããã¬ãžã¹ã¿ã©ããã®åºåãäžèŽããŠããããšã«æ°ä»ããŸããã
ããã¯ãã·ããã¬ãžã¹ã¿ã®1è¡ã解æŸããããŒã¿åºåã2åé«éåã§ããããšãæå³ããŸãã
ãã®åŸãRS-LCDåºåãããŒã¿ã©ã€ã³ã«è»¢éãããã·ããã¬ãžã¹ã¿ã®å¥ã®ã©ã€ã³ã解æŸããããšãã§ããããŒã¿è»¢éãããã³ã«ã¯ãã®äºå®ãèæ ®ããŠæžãçŽãããŸããã
çµæã¯ãããŒã¿ãšãã©ã°ïŒã³ãã³ããŸãã¯é¢æ°ã®åºåïŒãåãåãåäžã®ã«ãŒãã«é¢æ°ã§ãããããèªäœãããã«ã解æããå¿ èŠãªé 延ã§ããŒã¿è¡ã«è¡šç€ºãã100ãã€ããè¶ ããŸããã
LCDããŒã¿ãã¹ïŒ4ãããïŒã¯1ã€ã®ã·ããã¬ãžã¹ã¿ã®åºåã®ååãå æããåŸåã¯ãã¢ã§ç€ºãããã®ã瀺ãããã«äœ¿çšã§ããŸãã
ãã®åŸãDIHALTã®ãŠã§ããµã€ãeasyelectronics.ruã§ã·ããã¬ãžã¹ã¿ã®RCãã§ãŒã³ã®äœ¿çšã«é¢ããç°¡åãªèª¬æã«åºäŒããããã«ãã¹ãŠã®è³æãæçš¿ãããã£ãã®ã§ãããã¢ã«ãŠã³ãã«æ£ãããã°ã€ã³ã§ããŸããã§ããã ãŸãã¯å€å圌ã¯ãµã€ããæ··ä¹±ããã-ã¡ã€ã³ããã³ã³ãã¥ããã£ãµã€ãã äžè¬çã«ãç§ã¯éåžžã«åæºããŸããã§ããããšã«ããããã«ã¡ã¯:)
ãããŠãç§ã説æããŠããåéã®ç¥èãäžè¶³ããŠãããšæãã人ã®ããã«ããã®æ¬ ç¹ãåãé€ãããã«ãã®ãªãœãŒã¹ã蚪ããããšããå§ãããŸãã DIHALTãšã³ãã¥ããã£ã®ã¡ã³ããŒã¯ãåé¡ã®ããã€ã¹ããã¹ãŠè©³çŽ°ã«èª¬æããŠããŸãã
ããã«ãæ¥ç¶ããã³äœ¿çšæ å ±ã
ç§ã¯ã³ãŒããå¥ã®ã©ã€ãã©ãªã«æã¡åºããŸããã§ãããçæãããã³ãŒãã¯ãLCDã§ã®ããŒã¿ã®è¡šç€ºã«é¢é£ããéçºã®ããã«ç°¡åã«å€æãããŸãã æ¬ ç¹ã¯ãã·ããã¬ãžã¹ã¿äžã«ããLCDããŒã¿ãã¹ãåæ§æã§ããªãããšã§ããåžžã«0ã3è¡ãå æããŸãïŒåºåé¢æ°ã®å·Šã·ããã³ãã³ããlslããå³ã·ããã³ãã³ããã§çœ®ãæããããšã«ãããã·ããã¬ãžã¹ã¿ã®åºåãããã©ãŒãªã³ã°ãããããšã¯å¯èœã§ããrslãã¯ãã·ããã¬ãžã¹ã¿ãã³ã®å²ãåœãŠããå転ãããããŒã¿ãã¹ã¯ãã³7ã4ïŒã«ãããŸãã ãããããã€ã¯ãã³ã³ãããŒã©ãŒã®åºåã¯ããã¹ãŠã®MKã«å¯ŸããŠä»»æã«æ§æã§ããŸãããèŠåããããŸãïŒè¡ã¯åãããŒãäžã«ããå¿ èŠããããŸãïŒãã®å Žåãããã®ãªãã·ã§ã³port = 0x16ã§ãåºåé¢æ°ã®ããŒãçªå·ã®åå²ãåœãŠãå¿ èŠã§ãïŒã
ã³ãŒãã«ã¯ãæå®ãããé åã ãã§ãªãæçšãªããªãããŒãªããªãã¯ãããã€ãå«ãŸããŠããŸãïŒããšãã°ãæ®ãã10ãš100ã§é€ç®ããïŒã
ã³ãŒãã¯ã蚺æç®çã®ããã«åæåãããããŒããŠã§ã¢PWMãé€ããŠãå²ã蟌ã¿ããã®ä»ã®åšèŸºæ©åšã䜿çšããŸããããã®åŸããã¢äŸïŒããŒãã©ã€ã³PB0-PWMãPB1-éPWMãLEDã®ç¶æ ããã®å€æŽïŒã®ããã«æ®ãããŸããã ããã«ãããããšãã°ããã£ã¹ãã¬ã€ã®ããã¯ã©ã€ãã®æãããããã°ã©ã ã§å¶åŸ¡ã§ããŸãã
ãããã£ãŠãããã¯æå°ã®LCDããŒã¿åºåã©ã€ãã©ãªã§ãïŒãããŠããããã³ãŒãã§æãéããæãææžåãããŠããŸã:)
ããŒããŠã§ã¢ã§ã®ãã¹ãã¯ãããŸããã§ããããRCãã§ãŒã³ã®ãã©ã¡ãŒã¿ãŒã®æž¬å®ãããåå·®ã«åºã¥ããŠãåé¡ã¯ãªããšæããŸãã
ãã®ããžãã¹ãéã§ãã§ãã¯ããåæ¢ãªäººããããªããç§ã¯éåžžã«æè¬ããŸãã
ãŸãã9.6 MHzããã³4.8 MHzã®MKåšæ³¢æ°ã§æäœæ§ããã¹ããããŠããããšã«æ³šæããŠãã ããïŒåŸè ã®å ŽåãRCãã§ãŒã³ã®æµæã9kã«å€æŽããå¿ èŠããããŸãïŒã
ã¢ã€ãã³ã®ã³ã³ãã³ãµã¯100 pFã§ããå¿ èŠããããŸãïŒ10 pFã¯MKããŒãã®èã®å®¹éã®èš±å®¹ç¯å²ã§ãïŒã
INIT3ã»ã¯ã·ã§ã³ã¯ãMKãã©ã¡ãŒã¿ãŒãäºåã«åæåããããã€ã¹ã®é»æºãå ¥ããåŸã«è¡šç€ºãéå§ããããã«åå¥ã«äœæãããŸããã次ã®ããã«ãªããŸãã
ã¢ããªã±ãŒã·ã§ã³ã®äŸã
æäœæ§ãæ©èœãåŠçé床ãå®èšŒããããã«ããã¹ãŠã®æ©èœãšã¯ã»ã©é ãæ©èœã䜿çšãããã¢ã¢ãŒããäœæãããŸãããããã®ã»ãããç解ããã®ã«ååã§ãã
Proteusããã°ã©ã ã®ãããªãšãã¥ã¬ãŒã·ã§ã³ã¯ããã瀺ããŠããŸãã
ç§ã¯å£°ã®æŒæããizeã³ããŸãã2çªç®ã®ã¢ãã¿ãŒã®é³ãæ¶ãã®ãå¿ããŠããŸããŸãããèŠèŽã®éªéã«ãªããªãããšãé¡ã£ãŠããŸãã
ããã€ãã®æè¡æ å ±ã
ãã®ããŒã¿ããïŒ
ãã¢ãã¡ã€ã³é¢æ°ã§480ãã€ãã䜿çšããããšã¯æããã§ãã æ®ãã®ã³ãŒãã¯äœ¿çšãããã©ã€ãã©ãªé¢æ°ãcp1251ã¯æåå€æããŒãã«ïŒ33 * 2ïŒãHelloPGMã¯æååå®æ° "HelloãHabr"ãæåŸã®4ã€ã®ã³ãŒããã©ã°ã¡ã³ãã¯ãããã7ãã€ãã§ãïŒã¢ãŒããåºåããããã®æååå®æ°ïŒ "Red"ã "Green" ããBlueãããYellowãã®åŸã«ã¹ããŒã¹ãç¶ãïŒããã©ãã·ã¥ã¡ã¢ãªã«ä¿åãããŸãã
1ãã€ãã®RAM-LEDãã©ã°ã®ç¶æ å€æ°ãåãåããŸãã
ãããªã§ã¯ã䜿çšããããã£ã©ã¯ã¿ãŒã¯å®å šã«åæç»ãããProteusã©ã€ãã©ãªã«çµã¿èŸŒãŸããŠããŸãã ãããã£ãŠãéã§ã¯ãç»åã¯ç°ãªããŸãã :)
ããããããã©ãŒãã³ã¹ã¯åœ±é¿ãåããŸããïŒ
åžæãã人ã®ããã®ãã«ã¹ä¿¡å·ãšããŒã¿ãã±ããã®æéãã©ã¡ãŒã¿ïŒ
ããŒã¿åºåæ©èœã¯ãžãã¿ã®å®å šãªé€å»ãèæ ®ããŠæé©åãããŠãããããä¿¡å·ã0ããšä¿¡å·ã1ãã®æç¶æéïŒæåã®å³ïŒã¯æéçã«å®å šã«äžèŽããããšãããããŸãã
2çªç®ã®å³ã¯ãLCDãžã®1ãã±ããïŒãã€ãïŒã®è»¢éãåæ ããŠããŸããããŒã¿ãã¹ã¯4ãããã§ããããããã®è»¢éã¯2段éã§å®è¡ããããã®éã«LCDãããŒã¿ã®æåã®éšåããæ¶åãã§ããããã«é 延ããããŸãã
åºåé¢æ°ãæ°ã«ãã人ã¯ãããã«ãããŸãïŒ
ïŒããã§ã¯ãAtmel MKã«ã®ã¿ç¹åŸŽçãªçµè«ã®ããããªãã¯ã䜿çšããŸããïŒã
ãããã«
誰ããç§ã®äœæãããŒããŠã§ã¢ã§å ·äœåããããšã決å®ããèµ·åã«åé¡ãçºçããå Žåã¯ãé 延ããŠåçããããšããå§ãããŸãïŒã°ããŒãã«ããŒã¿ã®èª¬æã»ã¯ã·ã§ã³ã®#defineãã£ã¬ã¯ãã£ãã§ç€ºãããŸãïŒã ãã«ããå¿ èŠã«ãªããŸããèšäºãžã®ã³ã¡ã³ãã§è³ªåãé£çµ¡ããŠãã ãããç§ã¯ãæäŒããããŠããã ããŸãã ç§ã¯ã»ãšãã©è¿œå ããã®ãå¿ããŠããŸããïŒå²ã蟌ã¿ã䜿çšãããšããããªãã¯èªåã§è¡ã«ããŒã¿ãåºåããæ©èœã«ããªã¢ãæäŸããå¿ èŠããããŸãïŒæ©èœã®æåŸã«ãã³ã¡ã³ãã®äžã«SREGïŒã¹ããŒã¿ã¹ã¬ãžã¹ã¿ïŒãä¿åããã³åŸ©å ããäŸããããŸãïŒã ããããªããšãããŒã¿è»¢éæ©èœäžã«å²ã蟌ã¿ãåŒã³åºãåé¡ãçºçãã誀åäœã«ã€ãªãããŸãïŒæé ïŒcliãšseiã§ã¯äžååã§ãïŒïŒã
ãã€ãã®ããã«-è¿œèšïŒ
ç§ã¯ãã³ãŒããããŒã¿åºåã«é¢é£ããæ°ããéçºã«ã©ã®çšåºŠé©å¿ã§ãããã確èªããããšã«ããŸãããæåã«æãã€ããã®ã¯ãATtiny13Aã«é»å§èšãå®è£ ããããšã§ããã
æ瀺ãããå®è£ ã®éçºã«ã¯30åããããããŸããã§ãããããã®ã»ãšãã©ãåè·¯ã®èšèšã«è²»ããããŸããã
2ãã£ã³ãã«ã¢ã³ãã¢ããã«ãã¡ãŒã¿ãŒïŒ
1ãã£ã³ãã«ïŒ0-60Vã0-40A
2ãã£ã³ãã«ïŒ0-15Vã0-10A
ã³ãŒããµã€ãºïŒ760ãã€ã
䜿çšããåšèŸºæ©åšïŒADC0ãADC1ãADC2ãADC3
ãªã»ãã-çŠæ¢ãããŠããŸãããã¹ãŠã®PORTBã䜿çšãããŸãã
èšäºã§äžæ£ç¢ºãªèšè¿°ãè¡ãããå¯èœæ§ããããŸããåæ§ã«ãéçã³ãŒãã§ç€ºããããããã¡ã€ãªã³ã°çµæã§äžæ£ç¢ºãªå¯èœæ§ããããã³ãŒãã¯æ°åæžãæããããŸããã ã³ãŒãã®æ©èœã«é¢ããŠã¯ããã¹ãŠã®æ©èœãäœåºŠããã¹ããããããšãä¿èšŒã§ããŸãã
Atmel Studio 7.0ã®ãã¢ãšProteus 8.3 sp2ã®ãããžã§ã¯ãã®ãœãŒã¹ã³ãŒããæ·»ä»ãããŠããŸãããã以äžã®å€æŽã¯è¡ãããŸããã
ãã€ãã®ããã«ãç§ã¯èª°ãã圌ãã®ä»äºã§...ãããŠä»ã®åªåã§æåããããšãé¡ã£ãŠããŸãïŒ
ããããæ¥ãæ¥ãŸãïŒ
å¶å©ç®çã®ãããžã§ã¯ãã§ã®äœ¿çšããœãŒã¹ã³ãŒãã®è»¢å£²ãå¶å©ç®çããã³mercå µç®çã§ã®äœ¿çšã¯çŠæ¢ãããŠããŸãã ãœãŒã¹ã³ãŒãã¯ãã®ãŸãŸç¡æã§é åžãããŸããä»ã®ãµã€ããŸãã¯ä»ã®ãœãŒã¹ã§äœ¿çšããå Žåã¯ãèè ã®æ瀺ãšé 眮ã®éç¥ãå¿ é ã§ãã