Cov txheej txheem:

ATTiny HV Programmer: 4 Kauj Ruam
ATTiny HV Programmer: 4 Kauj Ruam

Video: ATTiny HV Programmer: 4 Kauj Ruam

Video: ATTiny HV Programmer: 4 Kauj Ruam
Video: Unlock Attiny Fuse Repair Programmer Fuse Doctor 2024, Hlis ntuj nqeg
Anonim
ATTiny HV Programmer
ATTiny HV Programmer
ATTiny HV Programmer
ATTiny HV Programmer

Cov lus qhia no yog rau ATTiny cov cuab yeej siv hluav taws xob siv ESP8266 thiab browser raws li tus neeg siv interface nws ua raws los ntawm cov lus qhia yav dhau los Fuse editor rau nyeem thiab teeb tsa lub fuses tab sis tam sim no txhawb kev tshem tawm, nyeem thiab sau eeb thiab EEPROM nco.

Kev txhawb nqa fuse tso cai hloov pauv mus rau qhov chaw tswj hwm los ntawm 2 fuse bytes ua haujlwm yooj yim heev.

Lub cim xeeb txhawb nqa tso cai thaub qab thiab rov ua cov ntsiab lus ntawm flash thiab EEPROM. Cov ntsiab lus tshiab los ntawm cov ntaub ntawv hex kuj tseem tuaj yeem sau. Qhov no ua rau rov ua lossis sau cov micronucleus bootloaders tshiab yooj yim heev.

Cov cuab yeej muaj cov yam ntxwv hauv qab no.

  • Lub vev xaib pabcuam txhawb kev nyeem thiab sau cov ntaub ntawv fuse thiab nplooj ntawv kho kom yooj yim nkag mus rau kev xaiv fuse
  • Erasing nti (xav tau ua ntej sau cov khoom tshiab)
  • Nyeem thiab sau Flash program cov ntaub ntawv los ntawm cov ntaub ntawv hex
  • Nyeem thiab sau EEPROM cov ntaub ntawv los ntawm cov ntaub ntawv hex
  • Txhawb nqa ATTiny 25, 45, thiab 85 qhov sib txawv
  • USB siv nrog lub tshuab hluav taws xob 12V sab hauv rau lub tshuab hluav taws xob siab
  • Wifi network teeb tsa siv wifiManager Access pointBrowser nkag mus rau ESP8266 SPIFFS cov ntaub ntawv kaw lus rau rub tawm thiab rub tawm cov ntaub ntawv
  • OTA hloov tshiab ntawm ESP8266 firmware

Kauj Ruam 1: Cheebtsam thiab Cov Cuab Yeej

Cheebtsam

  • ESP-12F tus qauv
  • 5V rau 12V boost module
  • micro USB qhov (socket) nrog cov txuas txuas txuas tau
  • 220uF Tantalum capacitor
  • xc6203 3.3V LDO tus tswj hwm
  • MOSFET transistors 3x n channel AO3400 1 x p-channel AO3401
  • Resistors 2 x 4k7 1x 100k 1x 1K 1x470R 1x 1R27
  • tus pin header block
  • Daim me me ntawm lub khob cij rau kev txhawb nqa Circuitry
  • nuv ntses hlauExlosure (Kuv siv lub thawv 3D luam tawm ntawm

Cov cuab yeej

  • Cov ntsiab lus zoo soldering hlau
  • Tweezers
  • Hlau txiav

Kauj ruam 2: Electronics

Electronics
Electronics

Cov txheej txheem qhia pom txhua lub zog tau los ntawm 5V USB txuas. Tus tswj hwm muab 3.3V rau ESP-12F module. Ib qho kev txhawb nqa me me ua rau 12V xav tau rau lub tshuab hluav taws xob siab.

ESP GPIO muab 4 lub logic cov cim siv hauv qhov ntsuas hluav taws xob siab (moos, cov ntaub ntawv hauv, cov ntaub ntawv tawm thiab hais kom ua).

Ib qho GPIO tau siv los qhib thiab tawm MOSFET transistor pub los ntawm 12V kev tsheb nqaj hlau ntawm 1K resistor. Thaum GPIO siab dua tMOSFET tau qhib thiab nws cov dej ntws yog 0V. Thaum GPIO tau teeb tsa qis qhov ntws tawm mus rau 12V xav tau los teeb tsa lub tshuab hluav taws xob siab hom. GPIO thib ob tuaj yeem siv los txo qis 12V siab mus rau 4V kom nws tuaj yeem siv los ua lub teeb liab pib dua. Tam sim no qhov chaw no tsis tau siv tab sis tuaj yeem siv los txhawb nqa SPI txoj haujlwm ntau dua li kev siv hluav taws xob siab.

Ib GPIO tau siv los qhib thiab kaw MOSFET 2 theem tsav tsheb rau 5V muab rau ATTiny. Qhov kev npaj no yog siv los ua kom tau raws li qhov tshwj xeeb uas thaum 5V tau qhib rau nws muaj lub sijhawm nce nrawm. Qhov no tsis tau ntsib kev tsav tsheb ncaj qha los ntawm GPIO tshwj xeeb nrog 4u7 decoupling capacitor tam sim no ntawm feem ntau ATTiny cov qauv. Tus nqi tiv thaiv tus nqi qis tau siv los txhawm rau txhawm rau nce qhov tam sim no tshwm sim los ntawm kev qhib sai ntawm MOSFET transistors. Tej zaum nws yuav tsis xav tau tab sis siv ntawm no kom tsis txhob muaj qhov tsis xws uas tuaj yeem tshwm sim los ntawm qhov tig ntawm qhov ntsia hlau loj.

Nco ntsoov tias cov txheej txheem sib txawv me ntsis los ntawm cov fuse editor yav dhau los. Cov GPIO pins tau rov ua haujlwm los ua SPI cov txheej txheem ua tau txawm hais tias software tsis siv qhov no tam sim no.

Kauj ruam 3: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke

Daim duab qhia pom cov khoom sib dhos ua ke rau hauv lub thawv me me. Cov ntawv me me tso rau saum ESP-12F module thiab muaj 3.3V tus tswj hwm thiab 2 qhov hluav taws xob tsav hluav taws xob.

Lub zog txhawb 12V yog nyob rau sab laug tau txais nws lub zog nkag los ntawm USB. Cov kab ntawv muaj qhov qhib rau 7 tus pin header block kom tso cai sib txuas rau ATTiny. Tom qab thaiv kab thiab ntsuas USB thiab lub taub hau thaiv tau ruaj ntseg rau hauv lub thawv nrog cov kua nplaum.

Ib daim ntawv tuaj yeem luam tawm ntawm daim duab los lo rau ntawm lub npov kom pab sib txuas cov cim.

Kauj ruam 4: Software thiab Txhim Kho

Lub software rau tus programmer yog nyob hauv Arduino sketch ATTinyHVProgrammer.ino muaj nyob ntawm

Nws siv lub tsev qiv ntawv uas muaj cov haujlwm hauv web yooj yim, wifi teeb tsa kev txhawb nqa, OTA hloov tshiab thiab browser raws cov ntaub ntawv kaw lus nkag mus. Qhov no muaj nyob ntawm

Kev teeb tsa software yog nyob hauv kab ntawv header BaseConfig.h. 2 yam hloov pauv ntawm no yog lo lus zais rau wifi teeb tsa nkag mus thiab tus password rau OTA hloov tshiab.

Sau thiab xa mus rau ESP8266 los ntawm Arduino IDE. IDE teeb tsa yuav tsum tso cai rau SPIFFS kev faib ua piv txwv siv 2M/2M yuav tso cai rau OTA thiab cov txheej txheem foob loj. Kev hloov kho ntxiv tom qab ntawd tuaj yeem ua tiav siv OTA

Thaum xub thawj siv tus qauv yuav tsis paub yuav ua li cas txuas rau wifi hauv zos yog li yuav teeb tsa kev teeb tsa AP network. Siv xov tooj lossis ntsiav tshuaj los txuas rau lub network no thiab tom qab ntawv mus rau 192.168.4.1. Lub vijtsam teeb tsa wifi yuav tshwm thiab koj yuav tsum xaiv lub network tsim nyog thiab nkag mus rau nws tus password. Tus qauv yuav rov pib dua thiab txuas nrog siv tus password no txij tam sim no mus. Yog tias txav mus rau lwm lub network lossis hloov pauv tus password network AP yuav rov qhib dua yog li ua raws cov txheej txheem ib yam. Thaum nkag mus rau lub khoos phis tawj tseem ceeb tom qab txuas rau wifi ces rub cov ntaub ntawv hauv cov ntawv tais ceev tseg los ntawm kev tshawb nrhiav rau tus qauv ip/upload. Qhov no tso cai rau rub tawm cov ntawv. Tom qab tag nrho cov ntaub ntawv raug rub tawm ces txuas ntxiv qhov system nkag mus tuaj yeem ua tiav siv ip/kho kom raug. Yog tias tus ip/ nkag mus tau qhov index.htm tau siv thiab coj los ua lub programmer lub vijtsam tseem ceeb. Qhov no tso cai rau fuse cov ntaub ntawv kom pom, kho thiab sau, lub nti kom raug tshem tawm thiab flashh thiab EEPROM nco kom nyeem thiab sau.

Muaj ntau lub vev xaib hu siv los ua qhov no

  • ip/readFuses tau txais cov ntaub ntawv fuse tam sim no
  • ip/writeFuses sau cov ntaub ntawv fuse tshiab
  • ip/erasechip.erases nti
  • ip/dataOp txhawb kev nyeem thiab sau ntawv ua haujlwm nws muab cov hauv qab no

    • dataOp (0 = nyeem, 1 = sau)
    • dataFile (lub npe ntawm cov ntaub ntawv hex)
    • eeprom (0 = Flash, 1 = eeprom)
    • version (0 = 25, 1 = 45, 2 = 85)

ntxiv rau AP_AUTHID qhov ntsuas tuaj yeem txhais hauv daim duab ua ntej ua ke. Yog tias tau hais tseg nws yuav tsum nkag mus rau hauv lub vev xaib kom tso cai ua haujlwm.

ip/kho kom nkag tau cov ntaub ntawv; ip/firmware muab kev nkag mus rau OTA hloov tshiab.

Hex cov ntaub ntawv hom ntawv yog intel style cov ntaub ntawv sib xws nrog cov uas tsim los ntawm Arduino IDE. Yog tias cov ntaub ntawv pib qhov chaw nyob tam sim no yuav ua rau kev nkag mus rau ntawm RJMP cov lus qhia ntawm qhov chaw 0. Qhov no tso cai rau micronucleus boot loader cov ntaub ntawv kom tau programmed rau hauv erased nti thiab ua haujlwm. Kom yooj yim yooj yim Hex cov ntaub ntawv suav nrog 4 tus cim hex chaw nyob tom qab 16 hex cov ntaub ntawv bytes kuj tseem yuav nyeem thiab siv.

Pom zoo: