Ihame ryibanze ryo kuyobora ecran yerekanwe muri gari ya moshi
Ihame ryibanze ryo gushushanya metro yayoboye kwerekana ecran;Nka rusange yerekanwe amakuru yerekanwe muri metero, kwerekana imbere mu nzu bifite intera nini cyane yubucuruzi nubucuruzi.
Kugeza ubu, ibinyabiziga bya metero bikorera mu Bushinwa muri rusange bifite ibikoresho byerekanwe mu nzu, ariko hari imirimo mike yinyongera hamwe nibirimo kwerekana ecran imwe.Kugirango dufatanye nogukoresha sisitemu nshya yamakuru atwara abagenzi, twashizeho bisi nshya ya bisi metro LED dinamike yerekana.
Mugaragaza ecran ntabwo ifite intera nyinshi za bisi mumatumanaho yo hanze, ariko kandi ifata bisi imwe hamwe nibikoresho bya bisi ya I2C muburyo bwo kugenzura imbere.
Hariho ubwoko bubiri bwaLEDkuri metero: imwe ishyirwa hanze ya gare kugirango yerekane igice cya gari ya moshi, icyerekezo cyerekezo nizina rya sitasiyo iriho, bihuye nigishinwa nicyongereza;Andi makuru ya serivisi arashobora kandi kwerekanwa ukurikije ibikenewe;Iyerekanwa rishobora kuba rihagaze, kuzunguruka, guhindura, gutemba, animasiyo nizindi ngaruka, kandi umubare winyuguti wagaragaye ni 16 × 12 16 Utudomo duto duto.Ibindi ni itumanaho ryimbere LED yerekana, ishyirwa muri gari ya moshi.Ikirangantego cyo mu nzu LED yerekana irashobora gutondekanya itumanaho ukurikije ibisabwa bya gari ya moshi, kandi ikerekana itumanaho ryigihe mugihe nyacyo, kimwe nubushyuhe buriho muri gari ya moshi, hamwe ninyuguti 16 × Inyuguti 16 zumudomo.
Ibigize sisitemu
Sisitemu ya LED yerekana sisitemu igizwe na chip imwe ya microcomputer igenzura hamwe nigice cyerekana.Igice kimwe cyo kwerekana gishobora kwerekana 16 × 16 inyuguti zishinwa.Niba ingano runaka ya LED yerekana sisitemu yakozwe, irashobora kugerwaho ukoresheje ibice byinshi byerekana ubwenge hamwe nuburyo bwo "guhagarika kubaka".Itumanaho ryuruhererekane rikoreshwa hagati yerekana ibice muri sisitemu.Usibye kugenzura ibice byerekana no kohereza amabwiriza n'ibimenyetso bya mudasobwa yo hejuru, ishami rishinzwe kugenzura ryashyizwemo na bisi imwe ya bisi ya sensor ya 18B20.Turabikesha igishushanyo mbonera cya module yumuzunguruko, niba hari ibisabwa kugirango bapime ubuhehere, 18b20 irashobora kuzamurwa mukuzunguruka module igizwe na DS2438 kuva Dallas na HIH23610 kuva HoneywELL.Kugirango uhuze ibyifuzo byitumanaho ryimodoka yose, bisi ya CAN ikoreshwa mugutumanaho hagati ya mudasobwa yo hejuru na buri gice kigenzura mumodoka.
igishushanyo mbonera
Igice cyo kwerekana kigizwe na LED yerekana icyerekezo hamwe nizunguruka.Ikibaho cyerekana LED igizwe na 4 ya matrike ya module × 64 akadomo matrike yisi yose yerekana ubwenge, igice kimwe cyerekana gishobora kwerekana 4 16 × 16 akadomo matrike Igishinwa inyuguti cyangwa ibimenyetso.Itumanaho ryuruhererekane rikoreshwa hagati yerekana ibice muri sisitemu, kugirango imirimo ya sisitemu yose ihuze kandi ihuriweho.Umuzenguruko werekana ugizwe n'ibyambu bibiri 16 bya pin kabili, bibiri bya 74H245 bya bisi ya bisi ya tristate, imwe ya 74HC04D itandatu inverter, ebyiri 74H138 decoders umunani na umunani 74HC595.Intandaro yumuzunguruko ni microcontroller yihuta 77E58 ya WINBOND, naho inshuro ya kristu ni 24MHz AT29C020A ni ROM ya 256K yo kubika 16 × 16 akadomo ka materix yo mu Bushinwa hamwe nimbonerahamwe ya kode ya 16 × 8.AT24C020 ni EP2ROM ishingiye kuri bisi ya seri ya I2C, ibika ibisobanuro byavuzwe mbere, nk'amazina ya gari ya moshi, indamutso, n'ibindi. Ubushyuhe buri mu modoka bupimwa na bisi imwe ya sensor yubushyuhe bwa 18b20.SJA1000 na TJA1040 ni CAN igenzura bisi hamwe na transceiver.
Kugenzura igishushanyo mbonera cyumuzunguruko
Sisitemu yose ifata microcontroller 77E58 ya Winbond nkibyingenzi.77E58 ifata microprocessor yibanze, kandi amabwiriza yayo arahuza na 51.Ariko, kubera ko isaha yisaha ari inzinguzingo 4 gusa, umuvuduko wayo wo kwiruka muri rusange wikubye inshuro 2 ~ 3 kurenza 8051 gakondo kumasaha amwe.Kubwibyo, inshuro zisabwa kuri microcontroller muburyo bugaragara bwerekana ubushobozi bunini inyuguti zishinwa zarakemuwe neza, kandi nindorerezi nayo iratangwa.77E58 igenzura flash yibuka AT29C020 ikoresheje latch 74LS373, ifite ubunini bwa 256K.Kubera ko ubushobozi bwo kwibuka burenze 64K, igishushanyo cyerekana uburyo bwo gutondekanya paji, ni ukuvuga, P1.1 na P1.2 bikoreshwa muguhitamo paji ya flash yibuka, igabanijwemo impapuro enye.Ingano ya aderesi ya buri page ni 64K.Usibye guhitamo chip ya AT29C020, P1.5 iremeza ko P1.1 na P1.2 bitazatera imikoreshereze mibi ya AT29C020 mugihe zongeye gukoreshwa kumurongo wa kabili 16.Umugenzuzi wa CAN nigice cyingenzi cyitumanaho.Mu rwego rwo kunoza ubushobozi bwo kurwanya-kwivanga, hiyongeraho 6N137 yihuta ya optocoupler hagati ya CAN umugenzuzi wa CAN SJA1000 na CAN transceiver TJA1040.Microcontroller ihitamo CAN umugenzuzi SJA1000 chip binyuze muri P3.0.18B20 nigikoresho kimwe cya bisi.Irakeneye icyambu kimwe cya I / O gusa hagati yimikorere na microcontroller.Irashobora guhindura ubushyuhe mubimenyetso bya digitale hanyuma ikabisohora muburyo bwa 9-bit ya code ya digitale.P1.4 yatoranijwe mukugenzura kugirango arangize chip yo gutoranya no kohereza amakuru ya 18B20.Umugozi w'isaha SCL hamwe na kabili yamakuru ya kabili SDA ya AT24C020 ihujwe na P1.6 na P1.7.16 pin insinga ya interineti ya microcontroller, ibyo bikaba ibice bigize ibice byumuzunguruko hamwe nu muzunguruko.
Erekana guhuza no kugenzura
Igice cyerekana uruziga rwahujwe nicyambu cya 16 pin cyicyuma cyicyerekezo cyumuzunguruko unyuze ku cyambu cya 16 pin kibase (1), cyohereza amabwiriza namakuru ya microcontroller kuri LED yerekana.Umugozi wa pin 16 (2) ukoreshwa mugushushanya ecran nyinshi zerekana.Ihuza ryarwo ahanini rirasa nicyambu cya pin 16 (1), ariko twakagombye kumenya ko R iherezo ryayo ihujwe na DS iherezo rya munani 74H595 uhereye ibumoso ugana iburyo ku gishushanyo cya 2, Iyo bizaba byuzuye, bizaba ihujwe mukurikirane hamwe na 16 pin kabili (1) icyambu cya ecran ikurikira (nkuko bigaragara ku gishushanyo 1).CLK ni isaha yerekana ibimenyetso, STR ni umurongo utambitse, R ni data terminal, G (GND) na LOE ni urumuri rwumurongo rushoboza guterimbere, na A, B, C, D numurongo uhitamo itumanaho.Imikorere yihariye ya buri cyambu niyi ikurikira: A, B, C, D ni imirongo yo gutoranya imirongo, ikoreshwa mugucunga uburyo bwo kohereza amakuru kuva kuri mudasobwa yo hejuru kumurongo wagenwe kumurongo werekana, naho R ni data terminal, yemera amakuru yatanzwe na microcontroller.Urutonde rwakazi rwa LED yerekana igice niki gikurikira: nyuma yisaha yisaha ya CLK yisaha yakiriye amakuru kuri R terminal, umuzenguruko wintoki utanga impiswi izamuka, kandi STR iri kumurongo wamakuru (16 × 4) Nyuma yamakuru yose uko ari 64 yoherejwe, impande zizamuka za pulse zitangwa kugirango zifate amakuru;LOE yashyizwe kuri 1 na microcontroller kugirango imurikire umurongo.Igishushanyo mbonera cyerekana uruziga rwerekanwe ku gishushanyo cya 3.
Igishushanyo mbonera
Ibinyabiziga bya metero bifite ibyangombwa bitandukanye kugirango byerekanwe mu nzu ukurikije uko ibintu bimeze, bityo twabisuzumye neza mugihe twashushanyaga uruziga, ni ukuvuga, kugirango tumenye neza ko ibikorwa nyamukuru nuburyo bidahinduka, module yihariye irashobora guhinduka.Iyi miterere ituma LED igenzura izenguruka ifite uburyo bwagutse kandi bworoshye bwo gukoresha.
Ubushyuhe n'ubushuhe
Mu bice bishyushye n’imvura mu majyepfo, nubwo mu modoka haba hari ubushyuhe buri gihe mu modoka, ubuhehere nabwo ni ikimenyetso cyingenzi abagenzi bitaho.Ubushyuhe nubushuhe module yateguwe natwe ifite umurimo wo gupima ubushyuhe nubushuhe.Ubushuhe bwubushuhe hamwe nubushuhe hamwe nubushuhe module bifite sisitemu imwe ya sock, byombi ni bisi imwe yubatswe kandi igenzurwa nicyambu cya P1.4, kuburyo byoroshye kubihana.HIH3610 ni ibyuma bitatu byinjizwamo ubuhehere hamwe na voltage isohoka na Sosiyete ya Honeywell.DS2438 ni 10 bit A / D ihindura hamwe na bisi imwe itumanaho.Chip ikubiyemo ibyuma byerekana ubushyuhe bukabije bwa digitale, ishobora gukoreshwa muburyo bwo kwishyura ubushyuhe bwimikorere yubushyuhe.
485 moderi yo kwagura bisi
Nka bisi ikuze kandi ihendutse, bisi 485 ifite umwanya udasimburwa mubikorwa byinganda nu murima.Kubwibyo, twashizeho module yo kwagura bisi 485, ishobora gusimbuza umwimerere CAN module yo gutumanaho hanze.Module ikoresha ifoto ya MAXIM yo kwigunga MXL1535E nka 485 transceiver.Kugirango umenye neza kugenzura, MXL1535E na SJA1000 byombi ni chip byatoranijwe binyuze muri P3.0.Mubyongeyeho, 2500VRMS kwigunga amashanyarazi bitangwa hagati ya RS2485 nu mugenzuzi cyangwa kugenzura uruhande rwa logique binyuze muri transformateur.TVS diode umuzenguruko yongewe kubisohoka igice cya module kugirango ugabanye umurongo wo kwivanga.Abasimbuka barashobora kandi gukoreshwa muguhitamo niba bapakira bisi ya bisi.
Igishushanyo cya software
Porogaramu ya sisitemu igizwe na software yo hejuru yo gucunga mudasobwa hamwe na software igenzura ibice.Porogaramu yo hejuru ya mudasobwa yo hejuru yatejwe imbere kurubuga rwa Windows22000 ikoresheje C ++ BUILD6.0, harimo guhitamo uburyo bwo kwerekana (harimo static, flashing, kuzunguruka, kwandika, nibindi), guhitamo icyerekezo (harimo kuzenguruka hejuru no kumanuka ibumoso n'ibumoso na iburyo bwiburyo), kwerekana umuvuduko wihuta (nukuvuga inyandiko yerekana inshuro nyinshi, umuvuduko wo kuzunguruka, kwandika umuvuduko wo kwerekana, nibindi), kwerekana ibyinjijwe, kwerekana ibyerekanwe, nibindi.
Iyo sisitemu ikora, sisitemu ntishobora kwerekana gusa inyuguti nko gutangaza sitasiyo no kwamamaza ukurikije igenamiterere ryateganijwe, ariko kandi inashyiramo intoki ibyangombwa bisabwa byerekana.Porogaramu igenzura ya software igenzura yateguwe na KEILC ya 8051 kandi igakomera muri EEPROM ya mudasobwa imwe ya chip 77E58.Irangiza cyane cyane itumanaho hagati ya mudasobwa yo hejuru na hepfo, gushaka amakuru yubushyuhe nubushuhe, kugenzura I / O kugenzura nibindi bikorwa.Mugihe gikora, ibipimo byo gupima ubushyuhe bigera kuri ± 0.5 ℃ naho ibipimo by'ubushyuhe bigera kuri ± 2% RH
Umwanzuro
Uru rupapuro rutangiza igishushanyo mbonera cya metero yo mu nzu LED yerekana ecran uhereye mubice byubushakashatsi bwibishushanyo mbonera, imiterere ya logique, igishushanyo mbonera cyahagaritswe, nibindi. guhuza nibisabwa mubidukikije bitandukanye, kandi bifite ubunini bwiza kandi buhindagurika.Nyuma y ibizamini byinshi, ecran yerekanwe mu nzu yakoreshejwe muri sisitemu nshya yamakuru atwara abagenzi ya metero yo murugo, kandi ingaruka ni nziza.Imyitozo irerekana ko ecran yerekana ishobora kuzuza neza ibyerekanwe byerekana imiterere yubushinwa nubushushanyo hamwe nuburyo butandukanye bwerekana imbaraga, kandi ifite ibiranga umucyo mwinshi, nta flicker, kugenzura byoroshye logique, nibindi, byujuje byuzuye ibisabwa byerekana ibinyabiziga bya metero; KuriLED.
Igihe cyo kohereza: Ukuboza-16-2022