Cov txheej txheem:

Arduino Raws Li Xov Tooj (Cov Qauv): 7 Kauj Ruam
Arduino Raws Li Xov Tooj (Cov Qauv): 7 Kauj Ruam

Video: Arduino Raws Li Xov Tooj (Cov Qauv): 7 Kauj Ruam

Video: Arduino Raws Li Xov Tooj (Cov Qauv): 7 Kauj Ruam
Video: Qhia txuas xaim hluav taws xob daim: 02 2024, Hlis ntuj nqeg
Anonim

Nyob zoo sawv daws, Hnub no hauv cov lus qhia no peb yuav pom txog xov tooj ntawm arduino. Nov yog lub xov tooj yog tus qauv nws tseem tab tom txhim kho. Cov peev txheej yog qhib rau txhua tus neeg tuaj yeem hloov kho cov cai.

Nta hauv xov tooj: 1. Suab nkauj

2. Yeeb yaj duab

3. Sau ntawv

4. Qhov

5. Duab

6. Daim ntawv qhia chaw

7. Hu xov tooj

8. Xov tooj cua

9. Chaw

10. Calculator

Txoj haujlwm ntawm txoj haujlwm yuav siv lub cim xeeb tsawg. Txawm tias koj tuaj yeem txuas ntxiv cov yam ntxwv ntawm lub xov tooj zoo li ntxiv: lub taub ntiv tes, Cov Lus, GPS ……..etc.

Cov tub ntxhais ntawm lub xov tooj no yog arduino mega 2560. Cov duab tau khaws cia hauv daim npav SD los ntawm qhov ntawd cov duab tau kos rau ntawm lub vijtsam. Koj tuaj yeem siv daim npav SD 16GB lossis 32GB.

Yog tias koj xav kho qhov chaws ces xub pom tus qauv piv txwv thiab tom qab ntawd sim kho qhov chaws, vim tias txoj cai muaj ze li ntawm 2000 kab. Yog li thawj zaug txheeb xyuas cov qauv piv txwv.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

1. Arduino Mega 2560x1

2. SD daim npav x1

3. Voltage sensor lossis tam sim no sensor 25v x1

4. 3.5 nti mcu phooj ywg tft zaub x1

5. Df Player Mini x1

6. GSM 900A x1

7. Suab amplifier x1

8. tus neeg hais lus x2

9. 2N2222A NPN transistor x1

10. 1k ohm resistor x2

11. Programmer rau arduino x1

12. Mic amplifier x1

13. Txiv neej rau Poj niam jumper hlau x40 (kwv yees.)

14. SD Card 16GB lossis 32GB x2

15. LED x1

16. Lead acid roj teeb 12v x1

17. lead acid roj teeb charger x1

18. HW-816-V1.0 (BUCK CONVERTER) x1

19. Txiv neej rau Txiv neej jumper xov x15 (aaprox.)

20. Buzzer 5v x1

21. Txiv neej thiab poj niam 2-tus pin JST SM txuas teeb x2

22. Txiv neej lub taub hau x10 (kwv yees)

23. Pawg thawj coj saib xyuas 18x30cm x1

24. Tactile laub khawm x2

25. Poj niam lub taub hau x20 (kwv yees)

26. Stylus

27. DS3231

Kauj ruam 2: Khoos phis tawj khoos phis tawj

Kho vajtse thaiv
Kho vajtse thaiv
Kho vajtse thaiv
Kho vajtse thaiv

Thawj txuas arduino mega 2560 txog 3.5 nti mcu tft shield. Tom ntej txuas sd daim npav module rau arduino mega spi pins. Tsis txhob hnov qab ntxig rau SD daim npav hauv daim npav SD daim npav tawg. Thiab kuj tseem ua rau 5v thiab kab gnd. Tam sim no txuas ds3231 rau arduino mega I2C pins. Txuas qhov ntsuas hluav taws xob mus rau arduino mega tus pin A5. Txuas coj mus rau arduino mega tus pin 47.

Nco tseg: Lub xov tooj no muaj ib qho teeb meem loj uas yog teeb meem tam sim no lub xov tooj no siv ntau qhov tam sim no nws xav tau ze li 2.1 Amps ntawm tam sim no. Qhov no yog vim pom nws siv ze li 400ma. Yog tias koj tuaj yeem tswj lub teeb ci ntawm lub teeb pom kev tom qab pom lub zog teeb meem tuaj yeem daws tau.

SD Card Arduino Mega 2560:

CS - 53 tus pin

SCK - 52 tus pin

MOSI - 51 tus pin

MISO - 50 pin

VCC - 5V

GND - NCO

Arduino Mega 2560 Voltage module 25V:

A5 - tus pin tso tawm ntawm tus qauv

GND - GND ntawm module

JACK + ve - + ntawm module

JACK -ve - - ntawm module

Arduino Mega 2560 2560 DS3231:

SDA - SDA ntawm Arduino mega

SCL - SCL ntawm Arduino mega

VCC - 5V

GND - NCO

Arduino Mega 2560 Df Player Mini:

TX1 ntawm Serial1port - RX (Nco tseg: ntxiv 1k ohm resistor nyob nruab nrab ntawm TX1 rau RX)

RX1 of Serial1port - TX

GND ntawm Arduino mega - GND

5 V - VCC

Hais lus + - spk1

Hais lus-spk2

Arduino Mega 2560 LED:

tus pin 47 - +ve ntawm coj

GND --ve ntawm coj (tso 1k ohm resistor nyob nruab nrab ntawm gnd ntawm arduino mega thiab -ve coj)

Arduino Mega 2560 2560 2N3904 NPN transistor: (Qhov kev sib txuas no yog hais txog kev rov pib dua arduino ntawm txoj cai)

GND Emitter Cov

48 tus pin Base ntawm npn (Nco tseg: ntxiv 1k ohm resistor nyob nruab nrab ntawm 49 tus pin ntawm arduino thiab lub hauv paus ntawm transistor)

RESET Tus Sau

Arduino Mega 2560 GSM 800l

TX3 ntawm Serial3port ntawm arduino mega 2560 RX ntawm GSM

RX3 ntawm Serial3port ntawm arduino mega 2560 TX ntawm GSM

GND GND

5 V VCC

Mic Amplifier GSM:

MIC+ MIC+ ntawm GSM

MIC- MIC- ntawm GSM

GND ntawm mic GND ntawm arduino mega

VCC ntawm mic 5V ntawm arduino mega

Lub Suab Amplifier GSM:

Sab laug Spk- ntawm GSM

Txoj Cai Spk+ ntawm GSM

VCC 5V ntawm arduino mega

GND GND ntawm arduino mega

Spk+ Hais lus+

Spk- Hais Lus-

ShutDown Circuit:

Saib hauv daim duab saum toj no.

txuas ctrl (tswj tus pin) rau tus pin 49 ntawm arduino mega

Kauj Ruam 3: Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps Xwb Tom Qab Pom Qhov No)

Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps nkaus xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps nkaus xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps Xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps Xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps nkaus xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps nkaus xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps Xwb Tom Qab Pom Qhov No)
Yuav Ua Li Cas Pom Qhov Sib Koom Tes ntawm Lub Icon (Yog Koj Xav Ntxiv Ib Lub Apps Xwb Tom Qab Pom Qhov No)

Ua ntej qhov no koj yuav tsum ua peb yam. Thawj hom ntawv ntawm daim duab yuav tsum yog ".bmp", Qhov thib ob yog lub npe ntawm daim duab yuav tsum sib npaug li 8 tus ntawv lossis tsawg dua ntawd, Qhov thib peb yog qhov kev daws teeb meem ntawm daim duab yuav tsum yog 320x480 nkaus xwb.

Tam sim no txhawm rau txhawm rau nrhiav kev sib koom ua ke ntawm cov cim ntawm lub vijtsam koj yuav tsum tau siv lub qhov rais pleev xim, uas feem ntau yog dawb hauv windows. Tam sim no qhib cov xim pleev xim thiab qhib cov duab uas koj xav pom ua ke.

Nco ntsoov tias cov duab loj yog 320x480 yog tias nws tsis yog siv qhov kev xaiv hloov kho kom hloov pauv cov duab (yog tias koj tab tom hloov pauv cov duab tom qab ntawd xaiv qhov kev xaiv pixels thiab ntaus 320 hauv thawj lub thawv thiab 480 hauv lub npov thib ob thiab nyem ok.)

Tam sim no txhawm rau nrhiav kev sib koom ua ke thiab thaj chaw ntawm lub cim tso tus nas nyob rau sab saum toj sab laug ntawm lub cim tam sim no nyem rau sab laug ntawm nas thiab rub tus nas kom npog lub cim. Tam sim no thaum koj pom hauv qab ntawm cov xim siv thaj tsam ntawm lub cim. Txhawm rau pom kev sib koom ua ke ntawm lub cim tso tus nas nyob rau ntawm lub ces kaum sab saud tam sim no pom hauv qab kaum sab laug ntawm cov xim koj yuav pom cov kev sib koom ua ke ntawm lub cim tsis txav tus nas tsuas yog sau cia ua ke. Nov yog qhov koj tuaj yeem pom cov kev sib koom ua ke.

Yog tias koj xav nrhiav qhov x1, y1 sib koom ua ke kuj, tom qab ntawd xub pom qhov ntev ntawm lub cim hauv kab rov tav ces ntxiv qhov ntsuas qhov ntev no nrog x sib koom ua ke ntawm lub cim tom qab ntawd qhov txiaj ntsig koj tau txais yog koj x1 kev sib koom ua ke tib yam kom pom y1 kev sib koom ua ke ntawm no koj yuav tsum ntsuas qhov ntev ntawm lub cim ntsug thiab ntxiv nws nrog y sib koom ua ke ntawm lub cim thiab qhov tshwm sim koj tau txais yog y1 sib koom ua ke.

Kauj ruam 4: Cov tsev qiv ntawv

Tsev qiv ntawv
Tsev qiv ntawv

Rub tawm Cov Tsev Qiv Ntawv los ntawm hauv qab no thiab ntxiv rau koj lub tswv yim arduino.

1. DS3231:

2. Adafruit_GFX Library:

3. MCU Cov Phooj Ywg Qhua:

4. Adafruit_TouchScreen Libary:

Rub tawm cov tsev qiv ntawv no tsuas yog tsis tas yuav rub DF player lub tsev qiv ntawv me me, SD daim ntawv qiv ntawv thiab SPI lub tsev qiv ntawv.

SPI thiab SD daim ntawv tsev qiv ntawv twb tau teeb tsa ua ntej hauv Arduino IDE thiab DF player mini program tau sau rau hauv txoj cai.

Kauj Ruam 5: Yuav Teem Sijhawm thiab Sijhawm Li Cas

Yuav Teeb Hnub thiab Sijhawm Li Cas
Yuav Teeb Hnub thiab Sijhawm Li Cas
Yuav Teeb Hnub thiab Sijhawm Li Cas
Yuav Teeb Hnub thiab Sijhawm Li Cas

Ua ntej qhov no ua kom ntseeg tau tias lub tsev qiv ntawv DS3231 tau teeb tsa hauv Arduino lub tswv yim.

Ua ntej qhib Arduino lub tswv yim, nyem rau ntawm cov ntawv, tom ntej no mus rau piv txwv, tshawb rau DS3231, qhib DS3231 thiab xaiv arduino thiab qhib DS3231_Serial_Easy piv txwv. Tam sim no nqes mus rau 57 kab ntawm cov cai thiab tsis pom zoo cov cai los ntawm 57 kab rau 59 kab thiab teeb hnub tam sim no, lub sijhawm tam sim no, hnub tam sim no. Tam sim no upload cov cai rau arduino mega tam sim no qhib lub ntsuas saib thiab teeb tsa baud tus nqi rau 115200 thiab koj yuav pom hnub tim, sijhawm, hnub thiab txhua yam. Tam sim no kaw tus saib xyuas thiab tawm tswv yim kab uas peb tsis tau pom dua thiab rov tso dua cov cai. Nws yog lub sijhawm, hnub, hnub…..etc yog txhua yam teeb tsa tam sim no koj yuav pom lub sijhawm raug.

Kauj Ruam 6: Kov Calibration rau Screen

Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen
Kov Calibration rau Screen

Ua ntej qhib Arduino IDE, qhib cov ntawv tom ntej, mus rau cov piv txwv, nqes mus thiab tshawb rau MCUFRIEND_KBV thiab nyem rau nws thiab tshawb rau TouchScreen_Calibr_native program thiab qhib nws. Thiab xa cov cai mus rau Arduino Mega thiab tom qab rub tawm cov cai qhib lub koos pij tawj saib thiab pom cov zaub thiab kov lub vijtsam kom ntsuas qhov kov thiab ua raws li nws hais. Tom qab ua tiav qhov nws hais qhia pom tus lej saib thiab luam qhov ntsuas qhov ntsuas los ntawm qhov ntawd thiab muab nws tso rau hauv tus lej xov tooj lossis tus lej piv txwv. Ntawd yog nws qhov ntsuas ntawm kov tau ua tiav.

Nco tseg: Nco ntsoov tias koj hloov lub npe tsav tsheb hauv cov cai raws li koj tus tsav tsheb tso saib.

Kauj Ruam 7: Txoj Cai ntawm Txoj Haujlwm

Txoj Cai ntawm Txoj Haujlwm
Txoj Cai ntawm Txoj Haujlwm

Txuas ntawm cov cai & duab nyob ntawm no: https://github.com/shiva1485/Arduino-Based-Phone …

Nco tseg: Nco ntsoov tias theej cov duab rau SD daim ntawv teev npe hauv paus

Pom zoo: