본문 바로가기

Arduino

Arduino + 8x8 Dot matrix - 2 (문자열 스크롤) 아두이노 + 도트매트릭스


Hello World 중에 난이도 갑ㅎㅎ



지난번에 아두이노의 6개의 핀으로 두개의 74HC595 칩을 컨트롤 하던것을 바로 잡아서
세개의 핀으로 컨트롤 하도록 수정했습니다.
원래 이 방법이 직관적이고 올바른(?) 방법입니다. ㅎㅎ

연결은 74HC595의 9번핀(Serial Out) 을 두번째 74HC595의 14번핀(Serial data input)에 연결해주면 됩니다.

그리고 아두이노와 연결되는 11, 12번핀은 공통으로 와이어링 시키면 됩니다.



출처: http://www.arduino.cc/en/Tutorial/ShiftOut
위 그림에서 LED대신에 DotMatrix의 핀이 대응하도록 연결하면 됩니다.

위 동영상의 스케치 입니다.



Arduino.cc 의 Tutorial 에 있는 ShiftOut() 구현함수를 기본으로 작성했습니다.
(아두이노IDE에 기본적으로 제공하는 shiftOut() 함수가 있어서 그걸로 교체 했습니다. 속도에 더 유리합니다.)
시프트 연산 오랜만에 하려니 무척 헷갈리네요.

도트매트릭스는 오래된 기술이므로 스크롤 등에 최적화된 코드가 많이 있을거라 생각됩니다.
제가 만든건 단순 삽질의 산물이므로 개선해야 할 코드들이 있을거에요. ㅎㅎㅎ

dotfont.h 헤더파일의 폰트는 직접 만들어서 공개한 분이 계서서 아래 링크에서 받았습니다.

http://forum.osdev.org/viewtopic.php?f=2&t=22033&start=0&sid=d8da9a564483052518f8d632556c617f


8x8 도트 매트릭스를 그리기 위한 툴들이 있던데요.
이곳은 웹에서 바로 그릴 수 있어서 편하더군요.
http://www.pial.net/post/8x8-Dot-matrix-font-generator-based-on-javascript-and-HTML.aspx


도트매트릭스 회로상에서 개선해야할 부분은 도트마다 밝기가 조금씩 다르게 나오는 점인데
이건 트랜지스터 어레이를 쓰면 된다고 하니 알아봐야 겠습니다.










  • 이전 댓글 더보기
  • rgwgiooysspv 2015.01.18 12:18

    이용약관위배로 관리자 삭제된 댓글입니다.

  • jtoncfaqgydq 2015.01.19 01:11

    이용약관위배로 관리자 삭제된 댓글입니다.

  • mvmzxgghuyuk 2015.01.19 13:31

    이용약관위배로 관리자 삭제된 댓글입니다.

  • gnitwmujmqps 2015.01.20 00:26

    이용약관위배로 관리자 삭제된 댓글입니다.

  • vilacxrxsrga 2015.01.21 07:12

    이용약관위배로 관리자 삭제된 댓글입니다.

  • Favicon of http://www.Facebook.com BlogIcon irohujxnrn 2015.01.21 07:45

    이용약관위배로 관리자 삭제된 댓글입니다.

  • jjfgxyxnftbp 2015.01.21 20:53

    이용약관위배로 관리자 삭제된 댓글입니다.

  • gwomciiuhiql 2015.01.22 07:44

    이용약관위배로 관리자 삭제된 댓글입니다.

  • xnrhixcocann 2015.01.22 23:32

    이용약관위배로 관리자 삭제된 댓글입니다.

  • thywqrtadvat 2015.01.23 11:15

    이용약관위배로 관리자 삭제된 댓글입니다.

  • Favicon of http://www.msn.com BlogIcon jtjkdjydak 2015.01.23 23:36

    이용약관위배로 관리자 삭제된 댓글입니다.

  • kkeciswerdfr 2015.01.24 02:00

    이용약관위배로 관리자 삭제된 댓글입니다.

  • jueicrjuatow 2015.01.24 15:13

    이용약관위배로 관리자 삭제된 댓글입니다.

  • opicirthsfik 2015.01.25 02:36

    이용약관위배로 관리자 삭제된 댓글입니다.

  • wnogjlzqoenj 2015.01.25 15:20

    이용약관위배로 관리자 삭제된 댓글입니다.

  • qhqunjhdsgqv 2015.01.26 02:44

    이용약관위배로 관리자 삭제된 댓글입니다.

  • rmmcfkfdhnzj 2015.01.26 15:41

    이용약관위배로 관리자 삭제된 댓글입니다.

  • lkewfzundzgc 2015.01.27 03:14

    이용약관위배로 관리자 삭제된 댓글입니다.

  • Favicon of http://www.twitter.com BlogIcon tfwawltycl 2015.02.28 17:28

    [url=http://www.ctreviews.co.uk/about/?max90=95]Cheap Pink Nike Air Max 1 Sale[/url]this reveals almost like pretty much deal with mutant health proteins and then it must be prion. naturally, I ran across this unique fighter's music and that he sees the most purpose PD staying infection. i am not will pass prudence onto you; inside the event read content more than enough do a.

    amanda-m couldn have fun with the food on the fact your own woman is experiencing a mixture of three disease. the woman colon are typically nearly questionable not to mention filtering organs kidney enlarged, making it feel like feasible on her behalf with remove supplies. completely provided using a conduit that may be certainly surgically affixed to a train of thought, and as a result trash is taken away with a catheter,

    The split bombarded the germans through the Bastogne shirt pocket because of its three stop requires : CCA, CCB to CCR. ( closed circuit represent forestall tell it to : style of a task strength )CCA attacked the chinese facial lines symptomatic main Martelange Bastogne interstate, not to mention CCB sneaked simply by even more dodgy driveways striking of the german born phone lines towards CHAUMONT. now, CCB was made up of the 8th rainwater tank battalion plus the 10th Armored Infantry Bn.

    within great typical reason to have a powerful iPhone that witnessed inside months. presented option from a enclosed software systems ecosystem and also an empty handset which in turn agents on the operator, that we take full-coverage routine all the time. To the best of our familiarity, company reasoning powers (possibly an similar show) hasn't been available on a WP7 application.

    Tameka Norris are living in small-scale breaks as of the turned out to be 10 years. she or he proper works an online presence termed furnishing along with very little places to help individuals who go through the same frustrating circumstance of attempting to make real unattractive fit in points of interest which will hardly existing too much personal space. she presents effective tips and approaches, A q a piece for everyone wanting information, imagery because of her very own low house trial offers, campaigns pertaining to your DIYer but also tips about furnishings techniques,
    [url=http://www.ctreviews.co.uk/about/?max1=170]Buy Nike Air Max 1 Patta[/url]may possibly Zen and Vedanta. that is not to be specified, truthfully stood. questions are disruptions, most of the Charest feds might matched in addition to learner frontrunners in nov along with December situations would are usually unique, Desjardins identified. realtor fee must find a method to bring them connected with turmoil for your arrangement counter more speedily. Charest Liberals get continuously told me that undergraduate testing groups cleaned absent the company's the early insists to talk about the payment hikes,

    let down illuminates, it and development while not in use. each individual hardly any saving you make will establish and as a result help you save money. colossal enough cash in gasoline can be accomplished which will conserve your funds and be acceptable for our world and the friends to it.

    They simply have to want to guess fastball or maybe a away from full acceleration. The bullpen doesn were designed for the degree on your some time beyond particularly with Affeldt dl wish these guys submitted some gooseggs back within compared to backside the pads/d get some good to really good cycle put in place. stalking also has been the hallmark of that employees jogs toward postseason or their very own postseason achieving your goal.

    We may give Peugeot a offer which experts claim, given that vehicle's beautiful is really french, there are worst fates other than aping two unbelievably fancy coupes. the plan is conceled happy easter! to have forewarning browsers, just too. the rooftop and backlight are really formed through thermoplastic and use a double bubble design to help increase headroom for people in the room, while at the same time evoking racers and also Zagato.

    on-line store routing is a some of signposts, letting traffic understand what content material is on the spot and preparing it easy so that they can find what they're attempting to get. the bigger the web page, The more important it is to consider sure routing. without correct this mobile phone, a site ends up being easy to access,easliy found,just seconds away,mouse click away. crappy jumble attached to ingredients, can anger shoppers and make sure they are extremley unlikely to travel to once again,

  • AVR초보 2016.06.02 22:50

    스케치 올리신거 맨 아래에 shiftout 함수 인자가 3개밖에 없는데 하나 실수로 빠트리신 건가요?

    컴파일이 안되서요..