Cov txheej txheem:

Browser Interface ATTiny Fuse Editor: 4 Cov Kauj Ruam
Browser Interface ATTiny Fuse Editor: 4 Cov Kauj Ruam

Video: Browser Interface ATTiny Fuse Editor: 4 Cov Kauj Ruam

Video: Browser Interface ATTiny Fuse Editor: 4 Cov Kauj Ruam
Video: #144 PCB for ATTiny85 Fuse Resetter (using JLCPCB & EasyEDA) 2024, Hlis ntuj nqeg
Anonim
Browser Interface ATTiny Fuse Editor
Browser Interface ATTiny Fuse Editor
Browser Interface ATTiny Fuse Editor
Browser Interface ATTiny Fuse Editor

Cov lus qhia no yog rau ATTiny fuse editor siv ESP8266 thiab browser raws tus neeg siv interface qhov no ua rau hloov ib qho ntawm cov kev teeb tsa tswj los ntawm 2 fuse bytes ua haujlwm 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
  • USB siv nrog lub tshuab hluav taws xob 12V sab hauv rau lub tshuab hluav taws xob siab
  • Header pin cuam tshuam nrog 7 xov uas xav tau los txuas rau ATTiny module
  • Wifi network teeb tsa teeb tsa siv wifiManager Access point
  • Browser nkag mus rau ESP8266 SPIFFS cov ntaub ntawv kaw lus rau kev hloov kho cov vev xaib
  • 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 2x n channel AO3400 1 x p-channel AO3401
  • Resistors 2 x 4k7 1x 100k 1x 1K 1x 1R2
  • 7 tus pin header block
  • Daim me me ntawm lub khob cij rau kev txhawb nqa Circuitry
  • txuas xov
  • Cov ntaub ntawv kaw (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.

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.

Kauj ruam 3: Sib dhos

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.

Kauj ruam 4: Software thiab Txhim Kho

Lub software rau fuse editor yog nyob hauv Arduino sketch fuseEditorHV.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 nyob nrog OTA thiab lub kaw lus 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 mus rau lub ntsiab fuse editor tshuaj ntsuam. Qhov no tso cai rau fuse cov ntaub ntawv kom pom, kho thiab sau. Nws siv ip/readFuses thiab ip/writeFuses kom ua tiav qhov no.

Pom zoo: