Cov txheej txheem:

DIY -Prototype- Arduino Timed USB Charger: 8 Kauj Ruam
DIY -Prototype- Arduino Timed USB Charger: 8 Kauj Ruam

Video: DIY -Prototype- Arduino Timed USB Charger: 8 Kauj Ruam

Video: DIY -Prototype- Arduino Timed USB Charger: 8 Kauj Ruam
Video: DIY 18650 Liion Battery Charger using TP4056 2024, Hlis ntuj nqeg
Anonim
DIY -Prototype- Arduino Sijhawm USB Charger
DIY -Prototype- Arduino Sijhawm USB Charger
DIY -Prototype- Arduino Sijhawm USB Charger
DIY -Prototype- Arduino Sijhawm USB Charger

Thaum lub sijhawm peb tham txog arduino peb yuav tsum tau tsim qhov zoo siab hack ua piv txwv nrog arduino. Peb txiav txim siab ua lub cuab yeej uas yuav txiav lub zog los ntawm kev them cov cuab yeej siv qee cov cai rau arduino. Powerbuddy! Cov qauv no tsis tau them nqi khoom li arduino tsis muaj lub zog txaus, tab sis yuav muaj txiaj ntsig zoo rau ib tus neeg muaj peev xwm nrog transistors kom ua tiav.

Hauv cov lus qhia no koj yuav kawm paub yuav ua li cas tus qauv no uas yuav txuas thiab tshem tawm cov cuab yeej them nyiaj. Koj tseem yuav kawm paub teeb tsa tus neeg siv cuam tshuam li cas rau lub sijhawm siv lub OLED mini zaub!

CEEB TOOM: lub cuab yeej tsis ua haujlwm rau peb. Qhov no vim tias peb tsis tuaj yeem tau txais peb lub transistor los ua haujlwm zoo li hloov hluav taws xob, tab sis koj yuav tuaj yeem ua kom nws ua haujlwm.

Kauj Ruam 1: Kauj Ruam 1: Cov Khoom

Rau qhov kev qhia no koj yuav xav tau:

-1pc arduino UNO programmable chip-1pc 0.96 nti OLED 128x64 I2C-20pcs arduino xaim (10 FF/10 MM) -1pc 9V roj teeb yas dhos + roj teeb (koj tuaj yeem xaiv siv AC adapter) -4pcs Mini Push Button Switch-7pcs resistor 221 Ohm-1pc RGB LED 5MM -usb-chaw nres nkoj (poj niam)

-roll cork-sticker (rau ua kom haum haum)

Kauj Ruam 2: Kauj Ruam 2: Kev Teem Caij Nyeem Ntawv Breadboard

Kauj Ruam 2: Kev Xeem Tua Hluav Taws Xob
Kauj Ruam 2: Kev Xeem Tua Hluav Taws Xob
Kauj Ruam 2: Kev Xeem Tua Hluav Taws Xob
Kauj Ruam 2: Kev Xeem Tua Hluav Taws Xob

Saib daim duab rau txoj hlua uas koj yuav tsum tau ua. Piav qhia tus lej ua haujlwm: PIN2: siv khawm PIN3: txav tus lej -PIN4: khawm ntxiv tus lej PIN5: Rov pib dua PIN7: USB hloov GNDPIN-A1: Lub teeb ntsuab PIN-A2: Lub teeb xiavPIN-A4: SCL-screen dataPIN-A5: SDA-screen cov ntaub ntawv

Kauj Ruam 3: Kauj Ruam 3: Ua Haujlwm Arduino

Kauj ruam 3: Programming Arduino
Kauj ruam 3: Programming Arduino

Code:

Txoj cai muaj nyob ntawm ob peb qhov kev cai ua haujlwm sau rau kev ua tau zoo thiab yooj yim.

OLED zaub tau teeb tsa txoj hauv kev yog li nws muaj ob lub xeev: Timer Xaiv theem, thiab Lub Xeev Them.

Plaub lub khawm nkag tau muab tso rau hauv cov txheej txheem yooj yim: [UP] - [NEXT] - [RESET] - [THOV]

Hauv Timer Xaiv theem koj tuaj yeem siv [UP] khawm txhawm rau nce tus lej xaiv, zoo li hauv lub tswb moos qub. Nrog [NEXT] koj mus los ntawm txhua tus lej tus kheej.

Yog li nrog ob txoj kev tswj hwm no koj tuaj yeem teev sijhawm them nqi hauv teev, feeb thiab vib nas this. Tom qab qhov no koj ntaus [APPLY] kom pib them lub xeev. Lub sijhawm no lub sijhawm muab sijhawm yuav txo qis kom txog thaum nws xoom, thiab rov pib dua rau Lub Sijhawm Xaiv theem, thaum tso cov teeb liab digital (tus lej 7) ntawm LOW kom USB tsis tau txais tam sim no.

Cov tsev qiv ntawv siv hauv daim duab no yog: - Adafruit_GFX (Lub tsev qiv ntawv duab duab rau OLED) https://github.com/adafruit/Adafruit-GFX-Library - Adafruit_SSD1306 (Cov tsev qiv ntawv kho vajtse rau qhov tshwj xeeb OLED zaub) https:// github.com/adafruit/Adafruit-GFX-Library-SPI (built-in Arduino)-Hlau (built-in Arduino)

NCO TSEG: Peb tau siv tus Font uas yuav tsum tau xa mus rau Adafruit_GFX/Fonts folder: Org_01.h

Kauj Ruam 4: Kauj Ruam 4: Xeem

Kauj ruam 4: Xeem
Kauj ruam 4: Xeem

Kuaj yog tias koj lub cuab yeej ua haujlwm raws li lub hom phiaj, tswj lub sijhawm zoo ib yam li teeb tsa lub tswb tswb: 1 khawm rau ntxiv tus lej rau tam sim no xaiv. 1 khawm hloov mus rau tus lej tom ntej. 1 khawm kom rov qhib lub moos (thaum lub moos yog khiav koj yuav tsum tau nias nws li ntawm ib pliag kom tiv thaiv qhov yuam kev nias) 1 khawm rau pib lub moos. schematics dua.

Kauj Ruam 5: Kauj Ruam 5: Npaj Koj Cov Ntaub Ntawv rau Cheeb Tsam

Kauj Ruam 5: Npaj Koj Cov Ntaub Ntawv rau Cheeb Tsam
Kauj Ruam 5: Npaj Koj Cov Ntaub Ntawv rau Cheeb Tsam
Kauj Ruam 5: Npaj Koj Cov Ntaub Ntawv rau Cheeb Tsam
Kauj Ruam 5: Npaj Koj Cov Ntaub Ntawv rau Cheeb Tsam

Peb cov ntaub ntawv qhov ntev yog 138mm*98mm*50mm. Featuring tus kheej lasercut hau uas peb yuav qhia hauv cov lus qhia no!

Xaiv lub thawv lossis lwm yam uas yuav haum rau cov khoom siv uas xav tau rau Powerbuddy los ua haujlwm. Txog cov ntaub ntawv xav tau, saib hauv qib 1: Cov Khoom. Siv qee yam zoo li daim kab xev me me lossis xaim xaim xaim ua ke txhawm rau txuag chaw tom qab. Nco ntsoov txuas cov xov hlau mus rau Arduino ua ntej tso lawv ua ke. Kuj sim yog tias arduino ua haujlwm, thaum txhua tus pin txuas nrog.

Raws li koj tuaj yeem pom ntawm kaum sab laug, peb siv lub roj teeb 9 volt ua peb lub zog siv. Nco ntsoov tias sab saum toj ntawm lub hwj chim phooj ywg raug txiav tawm zoo txaus kom haum cov pob qhov rooj, coj thiab tso saib. Yog tias tsis yog, siv koj li cuab yeej ua ntaub ntawv thov kom nthuav dav qhov. Thaum lawv loj, ntxiv ob peb daim cork rau ntawm ntug ntawm pob qhov rooj thiab sab saum toj ntawm Powerbuddy.

Kauj Ruam 6: Kauj Ruam 6: Hloov Xov Tooj

Kauj Ruam 6: Hloov Xov Tooj
Kauj Ruam 6: Hloov Xov Tooj

Tam sim no hloov cov thaiv los ntawm daim ntawv qhia zaub mov mus rau lub casing. nco ntsoov ua ib feem ntawm ib lub sijhawm, vim tias nws tuaj yeem ua rau npau suav phem ib zaug thaum qhov khoom raug tangled.

Kauj Ruam 7: Kauj Ruam 7: Xeem & Hloov Kho

Tam sim no xyuas kom txhua yam tseem ua haujlwm zoo li nws tau ua dhau los. Peb muaj teeb meem ntau nrog kev sib txuas tsis zoo hauv cov xaim hluav taws xob, yog li ua siab ntev. Tau txais koj tus kheej lub khob zoo vim tias qhov no yuav siv sijhawm me ntsis. ib zaug txhua qhov tau ua haujlwm, siv qee lub cork ntxiv los ua kom nruj ntawm lub hau thiab txuas ntxiv mus rau theem tom ntej.

Kauj Ruam 8: Kauj Ruam 8: Ua Tiav

Kauj ruam 8: Ua tau
Kauj ruam 8: Ua tau

Presto! koj tus kheej yuav luag-tswv yim-thiab-ua haujlwm powerbuddy! Peb vam tias qhov no yuav muaj txiaj ntsig zoo rau ib tus neeg hauv txhua txoj kev.

Pom zoo: