{"id":1032,"date":"2011-12-22T22:25:04","date_gmt":"2011-12-22T20:25:04","guid":{"rendered":"http:\/\/blog.cipworx.org\/laserman\/?p=1032"},"modified":"2011-12-23T01:57:59","modified_gmt":"2011-12-22T23:57:59","slug":"diy-arduino","status":"publish","type":"post","link":"https:\/\/blog.cipworx.org\/laserman\/2011\/12\/22\/diy-arduino\/","title":{"rendered":"DIY arduino"},"content":{"rendered":"<p>Bisher habe ich nur Atmega32 und Atmega8 verwendet. Letzteren auch mal mit arduino Bootloader.  Atmega32 wird von arduino nicht unterst\u00fctzt &#8211; es gibt patches, hab ich noch nicht probiert.<\/p>\n<p>Heute gehts darum aus einem Atmega328P-PU einen arduino &#8220;pro&#8221; zu machen. Hardwareseitig habe ich ihn mit 5V und einem 16MHz Quarz versorgt. Ich folge einem Video-Tutorial auf Youtube(s.u.)<\/p>\n<p><code><\/p>\n<p>avrdude -c usbasp -p m328p -t<\/p>\n<p>Reading | ################################################## | 100% 0.01s<\/p>\n<p>avrdude: Device signature = 0x1e950f<br \/>\navrdude> part<br \/>\n>>> part <\/p>\n<p>AVR Part                      : ATMEGA328P<br \/>\nChip Erase delay              : 9000 us<br \/>\nPAGEL                         : PD7<br \/>\nBS2                           : PC2<br \/>\nRESET disposition             : dedicated<br \/>\nRETRY pulse                   : SCK<br \/>\nserial program mode           : yes<br \/>\nparallel program mode         : yes<br \/>\nTimeout                       : 200<br \/>\nStabDelay                     : 100<br \/>\nCmdexeDelay                   : 25<br \/>\nSyncLoops                     : 32<br \/>\nByteDelay                     : 0<br \/>\nPollIndex                     : 3<br \/>\nPollValue                     : 0x53<br \/>\nMemory Detail                 :<\/p>\n<p>                         Block Poll               Page                       Polled<br \/>\n  Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack<br \/>\n  ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------<br \/>\n  eeprom        65     5     4    0 no       1024    4      0  3600  3600 0xff 0xff<br \/>\n  flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff<br \/>\n  lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00<br \/>\n  hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00<br \/>\n  efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00<br \/>\n  lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00<br \/>\n  calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00<br \/>\n  signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00<\/p>\n<p>avrdude> dump hfuse<br \/>\n>>> dump hfuse<br \/>\n0000  da<br \/>\navrdude> dump lfuse<br \/>\n>>> dump lfuse<br \/>\n0000  ff<br \/>\navrdude> dump efuse<br \/>\n>>> dump efuse<br \/>\n0000  05<br \/>\navrdude> quit<\/p>\n<p><\/code><\/p>\n<p><code><br \/>\navrdude -c usbasp -p m328p -U hfuse:w:0xDA:m<br \/>\navrdude -c usbasp -p m328p -U efuse:w:0x05:m<br \/>\navrdude -c usbasp -p m328p -U lfuse:w:0xFF:m<br \/>\navrdude -c usbasp -p m328p -U ATmegaBOOT_168_atmega328.hex<br \/>\n<\/code><\/p>\n<p>danach leuchtet PD1(TX) f\u00fcr ca. 1s das ist der Bootloader.<br \/>\nMit angeschlossenem seriellem Kabel (USB Handy Datenkabel)<br \/>\nleuchtet PD0(RX)<br \/>\nUpload aus arduino IDE:<br \/>\n* richtige Board w\u00e4len: Tools->Board->Pro or Pro Mini 16MHZ Atmega328<br \/>\n* Tools->Serial Port: \/dev\/ttyUSB0<br \/>\n* upload-icon klicken und sofort danach am Board Reset dr\u00fccken.<\/p>\n<p>http:\/\/www.youtube.com\/watch?v=7LskShrK4vQ<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bisher habe ich nur Atmega32 und Atmega8 verwendet. Letzteren auch mal mit arduino Bootloader. Atmega32 wird von arduino nicht unterst\u00fctzt &#8211; es gibt patches, hab ich noch nicht probiert. Heute gehts darum aus einem Atmega328P-PU einen arduino &#8220;pro&#8221; zu machen. Hardwareseitig habe ich ihn mit 5V und einem 16MHz Quarz versorgt. Ich folge einem Video-Tutorial [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-1032","post","type-post","status-publish","format-standard","hentry","category-electronics","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/comments?post=1032"}],"version-history":[{"count":5,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1032\/revisions"}],"predecessor-version":[{"id":1035,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1032\/revisions\/1035"}],"wp:attachment":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/media?parent=1032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/categories?post=1032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/tags?post=1032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}