Blik!: Rozdiel medzi revíziami
Zo stránky SensorWiki
Bez shrnutí editace |
|||
Riadok 29: | Riadok 29: | ||
=== Zoznam súčiastok === | === Zoznam súčiastok === | ||
<HTML> | |||
<TABLE FRAME=VOID CELLSPACING=0 COLS=7 RULES=NONE BORDER=0> | |||
<COLGROUP><COL WIDTH=77><COL WIDTH=117><COL WIDTH=87><COL WIDTH=130><COL WIDTH=223><COL WIDTH=316><COL WIDTH=461></COLGROUP> | |||
<TBODY> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" COLSPAN=7 WIDTH=1411 HEIGHT=42 ALIGN=CENTER VALIGN=MIDDLE><B><FONT SIZE=3>Zoznam komponentov – projekt Astabilný multivibrátor s mikroprocesorom DTV 2023</FONT></B></TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=42 ALIGN=CENTER VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE><B><BR></B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE><B><BR></B></TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B>Amount</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B>Product</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B>Reference</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B> Value</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B> Názov</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B> Datasheet</B></TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE BGCOLOR="#CCFFFF"><B> Footprint</B></TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>KEYS1066</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>BT1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Keystone1016</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Držiak gombíkovej batérie</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/Keystone106.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Battery:BatteryHolder_Keystone_103_1x20mm</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>OSTAMA51A5A</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>D1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>OSTAMA51A5A</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>LED 5mm trojfarebná, RGB</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/OSTAMA51A5A.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>LED_THT:LED_D5.0mm-4_RGB_Staggered_Pins</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>L-7113F3BT</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>D2</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>L-7113F3BT</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>LED 5mm infračervená</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/L-7113F3BT.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>LED_THT:LED_D5.0mm</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>L-53LID</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>D3</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>L53-LID</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>LED 5mm červená, nízkopríkonová</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/L53-LID.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>LED_THT:LED_D5.0mm</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>ATTINY45-20PU</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>IC1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>ATtiny45-20P</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Mikroprocesor Attiny45 DIL8</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/ATtiny45.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Package_DIP:DIP-8_W7.62mm</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="3" SDNUM="1051;">3</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>CF1/4W-180R</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>R1-R3</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>180R</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Rezistor 1/8W </TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/resistor.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>1-1825910-0</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>SW1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Mikrospinac TACT</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Mikrospínač do plošného spoja</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/1-1825910-0.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>Button_Switch_THT:SW_PUSH_6mm_H4.3mm</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>BAT-CR2032/A</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>Batt1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>CR2023</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Gombíková batéria 3V typ CR2032</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/BAT-CR2032_A.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>nie je</TD> | |||
</TR> | |||
<TR> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" HEIGHT=25 ALIGN=CENTER VALIGN=MIDDLE SDVAL="1" SDNUM="1051;">1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>GOLD-8P</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=CENTER VALIGN=MIDDLE>Conn1</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>DIL8</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT>Pätica na integrovaný obvod DIL8</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>https://senzor.robotika.sk/dtv/DS1001-01.pdf</TD> | |||
<TD STYLE="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000" ALIGN=LEFT VALIGN=MIDDLE>nie je</TD> | |||
</TR> | |||
</TBODY> | |||
</TABLE> | |||
</HTML> | |||
== Software == | == Software == |
Verzia z 12:56, 6. máj 2023
Programovateľný astabilný multivibrátor
Typický elektronický obvod, ktorý si postaví každý začiatočník je nejaké jednoduché blikátko, obvykle s dvoma tranzistormi, alebo s populárnym časovačom NE555. V roku 2023 však máme predsa len viac možností. Jednou z nich je namiesto obvodu 555 použiť rovnako veľký mikroprocesor ATtiny45, ktorý však môže okrem samotného blikania realizovať aj náročnejšie funkcie.
Opis a schéma zapojenia
Plošný spoj
Plošný spoj je obojstranný, rozmerov AxB mm navrhnutý v programe KiCAD7. Na obrázku je rozmiestnenie súčiastok a obrazec plošného spoja, ktorý bol napokon vyrobený vo firme JLC PCB (China).
Osadzovanie súčiastkami začneme päticou na procesor DIL8, ktorá je najnižšia. Dáme pritom pozor na orientáciu výrezom nahor. Potom osadíme tlačidlo a rezistory R1-R3, tu na orientácii súčiastok nezáleží. Napokon osadíme trojfarebnú LED diódu D1 (najkratší vývod 1 je na plošnom spoji označený štvorčekom) a pozície D2, D3 ostanú prázdne. Ako posledný spájkujeme z opačnej strany držiak na gombíkovú batériu. Ak by sme ho osadili skôr, nedostali by sme sa k vývodom ostatných súčiastok. Osadený plošný spoj je na obrázku X.
Zoznam súčiastok
Zoznam komponentov – projekt Astabilný multivibrátor s mikroprocesorom DTV 2023 | ||||||
Amount | Product | Reference | Value | Názov | Datasheet | Footprint |
1 | KEYS1066 | BT1 | Keystone1016 | Držiak gombíkovej batérie | https://senzor.robotika.sk/dtv/Keystone106.pdf | Battery:BatteryHolder_Keystone_103_1x20mm |
1 | OSTAMA51A5A | D1 | OSTAMA51A5A | LED 5mm trojfarebná, RGB | https://senzor.robotika.sk/dtv/OSTAMA51A5A.pdf | LED_THT:LED_D5.0mm-4_RGB_Staggered_Pins |
1 | L-7113F3BT | D2 | L-7113F3BT | LED 5mm infračervená | https://senzor.robotika.sk/dtv/L-7113F3BT.pdf | LED_THT:LED_D5.0mm |
1 | L-53LID | D3 | L53-LID | LED 5mm červená, nízkopríkonová | https://senzor.robotika.sk/dtv/L53-LID.pdf | LED_THT:LED_D5.0mm |
1 | ATTINY45-20PU | IC1 | ATtiny45-20P | Mikroprocesor Attiny45 DIL8 | https://senzor.robotika.sk/dtv/ATtiny45.pdf | Package_DIP:DIP-8_W7.62mm |
3 | CF1/4W-180R | R1-R3 | 180R | Rezistor 1/8W | https://senzor.robotika.sk/dtv/resistor.pdf | Resistor_THT:R_Axial_DIN0309_L9.0mm_D3.2mm_P12.70mm_Horizontal |
1 | 1-1825910-0 | SW1 | Mikrospinac TACT | Mikrospínač do plošného spoja | https://senzor.robotika.sk/dtv/1-1825910-0.pdf | Button_Switch_THT:SW_PUSH_6mm_H4.3mm |
1 | BAT-CR2032/A | Batt1 | CR2023 | Gombíková batéria 3V typ CR2032 | https://senzor.robotika.sk/dtv/BAT-CR2032_A.pdf | nie je |
1 | GOLD-8P | Conn1 | DIL8 | Pätica na integrovaný obvod DIL8 | https://senzor.robotika.sk/dtv/DS1001-01.pdf | nie je |
Software
Pre programátora je potrebné vedieť, kam je ktorý komponent pripojený, pozri nasledujúcu tabuľku.
Pin | Arduino | Component |
---|---|---|
5 | PB0 | Red |
6 | PB1 | Green |
7 | PB2 | -- |
2 | PB3 | SW1 |
3 | PB4 | Blue |
1 | PB5 | -- |
Programovanie
Napokon potrebujeme preložený .hex súbor nahrať do pamäte mikroprocesora. Na otestovanie môžeme použiť už preložený súbor demo.hex, ktorý do procesora nahráme buď profesionálnym programátorom (napr. Elnec BeeProgXY), alebo použijeme ako programátor Arduino.
Varianty
Semafor
Namiesto trojfarebnej RGB diódy osadíme tri samostatné diódy - červenú, žltú a zelenú. Dostaneme tak jednoduchý semafor.
Infračervený ovládač
Namiesto trojfarebnej RGB diódy osadíme infračervenú diódu (napr. VISHAY XXXX) a po stlačení tlačidla odvysielame nejaký špeciálny kód, napr. na vypnutie zariadenia. Získame tak jednoduchý diaľkový ovládač. Aby sme vedeli skontrolovať funkciu zariadenia, pridáme na dosku aj jednu bežnú červenú LED diódu na pozíciu D2. Aby ovládač fungoval spoľahlivo aj na väčšiu vzdialenosť, zameníme rezistor Rx za iný s menšou hodnotou, napr. 47 alebo 51 Ohm.
Podklady
Ak by si zariadenie chcel niekto postaviť, na GitHube sú k dispozícii všetky zdrojáky pre KiCAD ako aj vygenerované Gerber súbory.