Cov txheej txheem:

Yooj Yim Heev Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3: 7 Cov Kauj Ruam
Yooj Yim Heev Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3: 7 Cov Kauj Ruam

Video: Yooj Yim Heev Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3: 7 Cov Kauj Ruam

Video: Yooj Yim Heev Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3: 7 Cov Kauj Ruam
Video: Qhia rub nkauj kho siab yooj yim heev 2024, Hlis ntuj nqeg
Anonim
Yooj Yim Muaj Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3
Yooj Yim Muaj Tsawg Tsawg BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3
Yooj Yim Muaj Tsawg Tsawg Tshaj BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3
Yooj Yim Muaj Tsawg Tsawg Tshaj BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3
Yooj Yim Muaj Tsawg Tsawg Tshaj BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3
Yooj Yim Muaj Tsawg Tsawg Tshaj BLE hauv Arduino Tshooj 2 - Kub/Vaum Xyuas - Rev 3

Hloov tshiab: 23rd Kaum Ib Hlis 2020 - Thawj qhov hloov ntawm 2 x AAA roj teeb txij li 15th Lub Ib Hlis 2019 piv txwv li 22 hli rau 2xAAA AlkalineUpdate: 7th Plaub Hlis 2019 - Rev 3 ntawm lp_BLE_TempHumidity, ntxiv Hnub/Sijhawm cov phiaj xwm, siv pfodApp V3.0.362+, thiab pib kaw thaum xa cov ntaub ntawv

Hloov tshiab: 24th Lub Peb Hlis 2019 - Rev 2 ntawm lp_BLE_TempHumidity, ntxiv ntau txoj hauv kev xaiv thiab i2c_ClearBus

Cov lus qhia no, Lub Hwj Huam Muaj Zog Qub Qis Qis Qis Qis Qis, yog Ntu 2 ntawm 3.

Ntu 1 - Lub Tsev Muaj Tsawg Tsawg heev BLE cov cuab yeej ua tau yooj yim nrog Arduino npog kev teeb tsa Arduino rau tus lej nRF52 cov cuab yeej siv hluav taws xob tsawg, cov qauv txheej txheem thiab ntsuas cov khoom siv tam sim no. Nws tseem suav nrog tshwj xeeb lub sijhawm qis zog thiab cov sib piv thiab nthuav tawm cov tswv yim thiab siv pfodApp los txuas rau thiab tswj lub nRF52 ntaus ntawv.

Ntu 2 - Lub Hwj Huam Muaj Zog Qub Qis Qis Qis Qis Kub, qhov no, siv siv Redbear Nano V2 tus qauv thiab Si7021 qhov ntsuas kub / av noo los tsim lub roj teeb qis / hnub ci saib. Nws tseem suav nrog hloov kho lub tsev qiv ntawv Si7021 kom muaj hwj chim qis, kho BLE lub cuab yeej kom txo nws qhov kev siv tam sim no ntawm <25uA thiab tsim kev cai ntsuas kub/av noo rau koj lub xov tooj.

Ntu 3 - Redbear Nano V2 Hloov pauv siv lwm yam nRF52 raws cov qauv hloov pauv ntawm Nano V2. Nws suav nrog xaiv cov khoom siv, kev tsim kho, tshem tawm nRF52 nti txheej txheem kev tiv thaiv, siv NFC pins li qub GPIO, thiab txheeb xyuas lub nRF52 pawg thawj coj tshiab hauv Arduino.

Cov lus qhia no yog daim ntawv thov siv ntawm Ntu 1 Lub Tsev Muaj Tsawg Tsawg heev BLE cov cuab yeej ua tau yooj yim nrog Arduino los ntawm kev tsim lub zog Tsawg heev BLE Kub thiab Vaum Xyuas. Tus saib xyuas yuav ua haujlwm tau ntau xyoo ntawm Npib Cell lossis 2 x AAA roj teeb, txawm tias ntev dua nrog kev pab hnub ci. Cov ntawv qhia no qhia txog kev hloov pauv BLE qhov ntsuas rau kev siv hluav taws xob tsawg thiab yuav ua li cas kom lub zog koj ntaus ntawv los ntawm roj teeb LOSSIS roj teeb + hnub ci lossis hnub ci nkaus xwb.

Ib yam li tso saib qhov kub thiab txias tam sim no, tus saib xyuas khaws 36 teev dhau los ntawm 10 feeb nyeem thiab 10 hnub kawg ntawm kev nyeem ib teev. Cov no tuaj yeem ua tus cim rau ntawm koj lub xov tooj ntawm tes Android thiab qhov txiaj ntsig tau khaws cia rau hauv cov ntaub ntawv teev cia. Tsis xav tau Android Programming, pfodApp ua txhua yam ntawd. Cov zaub hauv Android thiab kab kos tau tswj hwm tag nrho los ntawm koj daim duab Arduino yog li koj tuaj yeem hloov kho nws raws li xav tau.

Redbear Nano V2 board tau siv rau nRF52832 BLE tivthaiv thiab Sparkfun Si7021 breakout board tau siv rau Qhov Kub / Vaum Sensor. Hloov kho lub tsev qiv ntawv qis zog siv nrog Si7021. Ib lub PCB me tau tsim los tuav NanoV2 thiab muab cov khoom siv. Txawm li cas los xij vim tias tsis muaj cov khoom siv saum npoo siv, koj tuaj yeem yooj yim tsim qhov no ntawm vero board. Peb lub zog hloov pauv tau them. i) Roj teeb ntxiv rau Solar pab, ii) Tsuas yog Roj Teeb, iii) Hnub Ci Tsuas. Hnub ci Tsuas yog kev xaiv tsis muaj lub roj teeb cia thiab yog li yuav tsuas yog khiav thaum muaj qee lub teeb. Lub teeb ci hauv chav lossis teeb rooj yog txaus.

Tus qauv

Txoj haujlwm no muaj 4 ntu sib txheeb ywj pheej:-

  1. Kev Xaiv thiab Kev Tsim Kho
  2. Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
  3. Ntsuas Khoom Tam Sim No thiab Lub Neej Roj Teeb
  4. Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb

Kauj Ruam 1: Xaiv Cheeb Tsam

Kev Xaiv Cheeb Tsam

Raws li tau hais hauv Ntu 1-Txoj hauv kev kom tau txais lub zog daws teeb meem tiag tiag yog tsis ua dab tsi feem ntau, txo qhov tam sim no los ntawm sab nraud rub tawm/rub tawm cov neeg tawm tsam ntawm cov tswv yim thiab tsis muaj ib qho ntxiv. Txoj haujlwm no yuav siv txhua qhov kev dag kom tau txais kev daws teeb meem tsawg.

NRF52832 tivthaiv

Lub nRF52832 nti tuaj yeem ua haujlwm nrog lub zog muab nruab nrab ntawm 1.7V thiab 3.6V (qhov siab tshaj qhov hluav taws xob 3.9V). Qhov no txhais tau tias koj tuaj yeem siv lub nti ncaj qha los ntawm cov npib ntawm tes lossis 2 x AAA roj teeb. Txawm li cas los xij nws yog qhov ceev faj ntxiv qhov ntsuas hluav taws xob los tiv thaiv lub nti los ntawm dhau qhov hluav taws xob. Cov khoom siv ntxiv no los nrog tus nqi hluav taws xob, tab sis nyob rau hauv rooj plaub ntawm NanoV2 pawg thawj coj saib xyuas kev tswj hwm, TLV704, siv tsawg dua 5.5uA max, feem ntau tsuas yog 3.4uA. Rau qhov kev siv hluav taws xob me me ntxiv no koj tau txais kev tiv thaiv txog 24V cov khoom siv nkag mus.

Si 7021 tivthaiv

Si7021 sensor nws tus kheej thim feem ntau <1uA thaum tsis ntsuas, piv txwv li hauv Standby, thiab txog li 4mA thaum xa cov ntaub ntawv ntawm I2C. Txij li thaum peb tsis ntsuas ntsuas tas li, 4mA tsis yog qhov tseem ceeb ntawm qhov nruab nrab muab khoom tam sim no. Kev nyeem ntawv 30 vib nas this ntxiv tsawg dua 1uA rau qhov nruab nrab cov khoom siv tam sim no, saib cov khoom ntsuas tam sim no hauv qab no.

Muaj ob qhov npaj tau muaj Si7021 cov pawg tawm tsam. Ib qho los ntawm Adafruit thiab ib qho los ntawm Sparkfun. Kev nrawm nrawm ntawm ob lub rooj sib tham yuav qhia koj tias Adafruit pawg thawj coj muaj ntau yam khoom siv ntau dua li Sparkfun board, yog li koj yuav xaiv tau xaiv Sparkfun board. Saib cov duab rau txhua pawg thawj coj pom tias Sparkfun pawg thawj coj tsuas yog lub ntsej muag liab qab thiab ob lub 4k7 rub resisotors, thaum Adafruit pawg thawj coj muaj lub rooj tsav xwm, MIC5225, tus tswj hwm uas feem ntau thim 29uA txhua lub sijhawm. Qhov no yog qhov tseem ceeb thaum tag nrho cov tam sim no rau kev so hauv Circuit Court yog <30uA. Txij li peb twb muaj tus tswj hwm rau nRF52832 nti, cov khoom siv ntxiv no tsis xav tau thiab Si7021 tuaj yeem siv tau los ntawm 3.3V cov khoom siv. Yog li txoj haujlwm no yuav siv Si7021 pawg tswj hwm los ntawm Sparkfun.

txo qhov tam sim no los ntawm kev rub tawm sab nraud/rub tawm sab nraud ntawm cov tswv yim

4K7 I2C rub cov neeg tawm tsam tsis tshwj xeeb tus nqi siab thiab yuav kos 0.7mA thaum rub qis. Qhov no yuav yog teeb meem yog tias lawv nyob qhov twg ntawm qhov hloov pauv cov tswv yim uas tau pib rau lub sijhawm ntev. Txawm li cas los xij hauv txoj haujlwm no tam sim no los ntawm cov neeg tawm tsam no tau txo qis los ntawm kev siv I2C interface tsis tu ncua thiab tsuas yog lub sijhawm luv. Feem ntau ntawm cov kab I2C tsis siv thiab yog siab / tri-xeev yog li tsis muaj cov dej ntws tam sim no los ntawm cov tiv thaiv no.

Kauj Ruam 2: Kev tsim kho

Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho
Kev tsim kho

Txoj haujlwm tau tsim los ntawm PCB me me, tab sis txij li tsis muaj cov khoom siv SMD, nws tuaj yeem ua tau yooj yim los tsim siv vero board. PCB tau tsim los ntawm pcbcart.com los ntawm cov ntaub ntawv Gerber no, TempHumiditySensor_R1.zip PCB yog lub hom phiaj dav txaus siv rau lwm qhov haujlwm BLE.

Schematic yog qhia saum toj no. Nov yog daim ntawv pdf.

Daim Ntawv Teev Npe

Kwv yees tus nqi ib chav raws li Lub Kaum Ob Hlis 2018, ~ US $ 62, tsis suav nrog kev xa khoom thiab tus programmer los ntawm Ntu 1

  • Redbear NanoV2 ~ US $ 17
  • Sparkfun Si7021 breakout board ~ US $ 8
  • 2 x 53mm x 30mm 0.15W 5V solar cell xws li Overfly ~ US $ 1.10
  • 1 x PCB TempHumiditySensor_R1.zip ~ US $ 25 rau 5 tawm www.pcbcart.com LOS YOG Vero board (tooj liab tooj liab) piv txwv Jaycar HP 9540 ~ AUD $ 5
  • 2 x 1N5819 schottky diodes piv txwv Digikey 1N5819FSCT-ND ~ US $ 1
  • 1 x 470R 0.4W 1% resistor xws li Digikey BC3274CT-ND ~ US $ 0.25
  • 6 x 6 tus pin txiv neej header pins xws li Sparkfun PRT-00116 ~ US $ 1.5
  • poj niam rau poj niam jumper eg Adafruit ID: 1950 ~ US $ 2
  • 3mm x 12mm nylon screws, xws li Jaycar HP0140 ~ AUD $ 3
  • 3mm x 12mm nylon ceev, xws li Jaycar HP0146 ~ AUD $ 3
  • Scotch Cuam Tshuam Mounting Daim Kab Xev 4010 xws li los ntawm Amazon ~ US $ 6.6
  • AAA x 2 tus tuav lub roj teeb, xws li Sparkfun PRT-14219 ~ US $ 1.5
  • 2 x AAA 750mA Alkaline roj teeb, piv txwv li Sparkfun PRT-09274 ~ US $ 1.0 Cov roj teeb no yuav tsum>> 2 xyoos Energizer Alkaline Roj teeb muaj peev xwm siab dua
  • Lub thawv yas (ABS) 83mm x 54mm x 31mm, xws li Jaycar HB6005 ~ AUD $ 3
  • pfodApp ~ US $ 10
  • 1 x 22uF 63V Tsawg ESR Capacitor (Tsis teb los tau) xws li Jaycar RE-6342 ~ AUD $ 0.5 lossis Digikey P5190-ND ~ US $ 0.25

Kev tsim kho yog ncaj nraim rau pem hauv ntej. Lub roj teeb tuav thiab lub hnub ci ci tau ruaj khov rau hauv lub thawv yas nrog lub luag haujlwm hnyav ob daim kab xev.

Nco tseg Gnd txuas xaim los ntawm CLK rau GND hauv ntu ua tiav. Qhov no tau teeb tsa tom qab lub program los tiv thaiv lub suab nrov ntawm CLK cov tswv yim los ntawm kev ua rau nRF52 nti mus rau hauv hom kev debug tam sim no

Kauj Ruam 3: Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch

Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch
Txoj Cai - Lub Tsev Qiv Qis Qis Qis Qis Qis Qis, Tus Neeg Siv Kev Sib Txuas thiab Arduino Sketch

Rub lub zipped code, lp_BLE_TempHumidity_R3.zip, thiab unzip nws rau koj Arduino Sketches directory. Koj kuj yuav tsum teeb tsa lub tsev qiv ntawv lp_So7021 los ntawm cov ntawv zip no thiab tseem yuav nruab pfodParser lub tsev qiv ntawv.

Lub Tsev Qiv Qis Tsawg Tsawg Sensor, lp_Si7021

Ob qho Adafruit thiab Sparkfun muab kev txhawb nqa lub tsev qiv ntawv kom nkag tau rau Si7021 sensor, txawm li cas los xij ob lub tsev qiv ntawv no tsis tsim nyog rau siv lub zog qis heev. Ob leeg siv ncua sijhawm (25) hauv txoj cai kom ncua kev nyeem ntawv lub ntsuas thaum nws ntsuas nws. Raws li tau hais tseg hauv Tshooj 1 Kev ncua yog qhov phem. Arduino ncua () tsuas yog khaws lub tshuab ua haujlwm me me siv lub zog thaum nws tos rau ncua sijhawm rau lub sijhawm. Qhov no ua txhaum thawj txoj cai ntawm BLE lub zog qis, tsis ua dab tsi feem ntau. Kev hloov lp_Si7021 lub tsev qiv ntawv, hloov txhua qhov kev ncua nrog lp_timers uas tso lub tshuab ua kom lub cev pw tsaug zog thaum tos lub ntsuas kom ua tiav nws qhov ntsuas.

Lub tsev qiv ntawv lp_Si7021 sib txawv ntau npaum li cas? Siv thawj SparkFun Si7021 txhawb nqa lub tsev qiv ntawv thiab nyeem ib qho thib ob yam tsis muaj cov ntawv luam tawm, kos ~ 1.2mA nruab nrab. Hloov Chaw Sparkfun lub tsev qiv ntawv nrog lp_Si7021 lub tsev qiv ntawv txo qhov nruab nrab tam sim no rau ~ 10uA, piv txwv li 100 zaug tsawg dua. Hauv qhov haujlwm no qhov ntsuas nrawm tshaj yog ib zaug txhua 30 vib nas this thaum lub xov tooj txuas nrog, uas ua rau pom qhov ntsuas nruab nrab tam sim no tsawg dua 1uA. Thaum tsis muaj kev sib txuas BLE qhov ntsuas ntsuas yog ib zaug txhua 10 feeb thiab qhov nruab nrab cov khoom siv hluav taws xob tam sim no yog qhov tsis tsim nyog.

Neeg siv interface

Saum toj no yog lub vijtsam tseem ceeb thiab nthuav dav pom ntawm 10 hnub keeb kwm teev teev. Cov phiaj xwm tuaj yeem nthuav dav thiab nthuav dav hauv ob qho kev qhia, siv ob tus ntiv tes.

Tus neeg siv sib cuam tshuam nrog tus lej hauv Arduino kos duab thiab tom qab ntawd xa mus rau pfodApp ntawm thawj qhov kev sib txuas uas nws yog cached rau siv dua thiab hloov tshiab. Cov duab teeb tsa tau tsim los ntawm kev kos duab txheej thaum ub. Saib Kev Cai Tswj Arduino rau Android rau kev qhia qhia yuav tsim koj li kev tswj hwm li cas. Tus pas ntsuas kub, RHGauge thiab khawm cov ntaub ntawv muaj cov duab kos rau cov khoom ntawd.

Nco tseg: Tsis muaj yog tias cov zaub no tau tsim rau hauv pfodApp. Tag nrho cov zaub tau tswj hwm tag nrho los ntawm cov cai hauv koj daim duab Arduino

Tus xaDrawing_z () txoj hauv kev lp_BLE_TempHumidity_R3.ino kos duab piav qhia tus neeg siv interface.

void sendDrawing_z () {dwgs.start (50, 60, dwgs. WHITE); // keeb kwm yav dhau los tsis raug rau WHITE yog tias tshem tawm xws li pib (50, 60); parser.sendRefreshAndVersion (30000); // rov thov dwg txhua 30sec sec. qhov no yog tsis quav ntsej yog tias tsis muaj parser version teeb tsa // kov saum cov nyees khawm kom yuam kev hloov kho tshiab dwgs.touchZone (). cmd ('u'). loj (50, 39).send (); dwgs.pushZero (35, 22, 1.5); // txav xoom mus rau nruab nrab ntawm dwg mus rau 35, 22 thiab ntsuas los ntawm 1.5 zaug rhGauge.draw (); // kos tus tswj dwgs.popZero (); dwgs.pushZero (18, 33); // txav xoom mus rau nruab nrab ntawm dwg mus rau 18, 33 nplai yog 1 (default) tus pas ntsuas kub.draw (); // kos tus tswj dwgs.popZero ();

dwgs.pushZero (12.5, 43, 0.7); // txav xoom mus rau nruab nrab ntawm dwg rau 12.5, 43 thiab ntsuas los ntawm 0.7

hrs8PlotButton.draw (); // kos tus tswj dwgs.popZero (); dwgs.pushZero (37.5, 43, 0.7); // txav xoom rau nruab nrab ntawm dwg mus rau 37.5, 43 thiab ntsuas los ntawm 0.7 hnub1PlotButton.draw (); // kos tus tswj dwgs.popZero ();

dwgs.pushZero (12.5, 54, 0.7); // txav xoom mus rau nruab nrab ntawm dwg rau 12.5, 54 thiab ntsuas los ntawm 0.7

hnub3PlotButton.draw (); // kos tus tswj dwgs.popZero (); dwgs.pushZero (37.5, 54, 0.7); // txav xoom mus rau nruab nrab ntawm dwg rau 37.5, 54 thiab ntsuas los ntawm 0.7 hnub10PlotButton.draw (); // kos tus tswj dwgs.popZero (); dwgs.end (); }

PushZero cov lus txib hloov lub hauv paus chiv keeb thiab ntsuas rau kos cov khoom ntxiv. Qhov no cia koj hloov pauv qhov loj me thiab txoj haujlwm ntawm cov nyees khawm thiab ntsuas ntsuas.

Ntawm thawj qhov kev sib txuas thawj zaug tso saib yuav siv 5 lossis 6 vib nas this los rub lub ~ 800 bytes uas txhais cov lus. pfodApp caches cov zaub kom hloov kho yav tom ntej tsuas yog xav tau xa cov kev hloov pauv, ntsuas txoj haujlwm thiab nyeem. Cov hloov tshiab no tsuas yog siv ob peb feeb los xa 128 bytes xav tau hloov kho cov zaub.

Muaj tsib (5) thaj chaw kov tau piav qhia hauv cov zaub. Txhua lub khawm muaj ib qho kev piav qhia hauv nws txoj kev kos () txoj hauv kev, yog li koj tuaj yeem nyem rau nws kom qhib cov phiaj xwm sib xws, thiab ib nrab ntawm lub vijtsam tau teeb tsa ua ntu thib peb

dwgs.touchZone (). cmd ('u'). loj (50, 39).send ();

Thaum koj nyem rau ntawm lub vijtsam saum cov nyees khawm, 'u' dwg hais kom ua raug xa mus rau koj daim duab kos kom yuam kev ntsuas tshiab thiab tshuaj ntsuam hloov tshiab. Feem ntau thaum txuas nrog, hloov tshiab tsuas yog tshwm sim txhua 30sec. Txhua qhov nyem lossis rov ua dua ntawm daim duab teeb tsa kev ntsuas tshiab. Cov lus teb los ntawm Arduino kos duab rau pfodApp tau ncua kom txog thaum ntsuas qhov tshiab tiav (~ 25mS) kom tus nqi kawg tuaj yeem xa hauv qhov hloov tshiab.

Arduino Sketch

Arduino Sketch, lp_BLE_TempHumidity_R3.ino, yog qhov ua kom zoo dua qub ntawm qhov piv txwv kos duab siv hauv Ntu 1. Lub lp_BLE_TempHumidity_R3.ino kos duab hloov pauv cov ntawv qhia zaub mov nrog cov duab pom saum toj no. Nws tseem ntxiv lp_Si7021 lub cim xeeb txhawb nqa thiab cov ntaub ntawv khaws cia rau 10 feeb thiab teev keeb kwm kev ntsuas.

Qhov teeb meem tseem ceeb hauv lp_BLE_TempHumidity_R3.ino kos duab yog txhawm rau xa cov ntaub ntawv phiaj xwm. Raws li kev ntsuas tau ua nyeem RHResults () ua haujlwm khaws cov txiaj ntsig thiab khaws cia rau hauv keeb kwm yav dhau los. Arrays yog 120 ntev tab sis thaum cov ntaub ntawv raug xa thawj 30 cov ntaub ntawv cov ntsiab lus yog rau ntawm lub sijhawm luv.

Muaj qee qhov ntsiab lus yuav tsum tau saib xyuas thaum xa 200 lub ntsiab lus tsis txaus ntseeg los tso saib:-

  1. Txhua cov ntaub ntawv taw tes yog ~ 25 bytes ntev, hauv CSV ntawv hom ntawv. Yog li 150 cov ntsiab lus yog 3750 bytes ntawm cov ntaub ntawv. Lp_BLESerial chav kawm muaj 1536 byte tsis, 1024 uas yog qhov loj txaus rau cov lus pfod loj tshaj plaws. Lwm 512 bytes yog tshwj tseg rau kev xa cov ntaub ntawv. Thaum cov ntaub ntawv keeb kwm tau sau txog 512 bytes, xa cov ntaub ntawv ntxiv raug ncua kom txog thaum muaj qhov chaw nyob hauv qhov tsis zoo.
  2. Txhawm rau zam cov phiaj xwm cov ntaub ntawv ua rau qeeb cov ntsiab lus hloov tshiab, cov ntaub ntawv cov phiaj xwm tsuas yog xa thaum lub phiaj xwm phiaj xwm tau tshwm sim. Thaum tus neeg siv hloov rov qab mus rau lub vijtsam tseem ceeb, xa cov phiaj xwm cov ntaub ntawv raug ncua. Kev xa cov phiaj xwm cov ntaub ntawv rov pib dua thaum tus neeg siv nyem lub pob nyem kom pom cov phiaj xwm dua.
  3. Cov phiaj xwm keeb kwm pib los ntawm 0 (tam sim no) thiab rov qab mus rau lub sijhawm. Yog tias tsis muaj qhov ntsuas tshiab txij li cov phiaj xwm kawg tau tshwm sim, cov ntaub ntawv dhau los uas twb tau rub tawm lawm tsuas yog tshwm dua tam sim ntawd. Yog tias muaj kev ntsuas tshiab, tom qab ntawd nws tau ntxiv rau cov ntaub ntawv yav dhau los.
  4. Thaum lub ntsuas hluav taws xob tau pib ua ntej, tsis muaj keeb kwm nyeem thiab 0 tau khaws cia hauv cov kab ntawv raws li kev nyeem tsis raug. Thaum cov phiaj xwm tau tshwm sim, nyeem tsis raug tsuas yog hla, ua rau cov phiaj xwm luv.

Celsius thiab Fahrenheit

Lub lp_BLE_TempHumidity_R3.ino kos duab qhia thiab npaj cov ntaub ntawv hauv Celsius. Txhawm rau hloov cov txiaj ntsig mus rau Fahrenheit hloov txhua qhov tshwm sim ntawm

parser.print (sensor. Temp_RawToFloat (..

nrog

parser.print (sensor. CtoF (sensor. Temp_RawToFloat) (…

Thiab hloov lub cim unicode degC hauv Octal / 342 / 204 / 203 nrog lub cim degF / 342 / 204 / 211

pfodApp yuav tso saib ib qho Unicode uas koj lub xov tooj tuaj yeem nthuav tawm.

Saib Siv Tsis-ASCII cov ntawv hauv Arduino kom paub meej ntxiv. Kuj hloov MIN_C, MAX_C nqis hauv Thermometer.h. Thaum kawg kho cov phiaj txwv raws li koj xav tau xws li hloov | Temp C ~ 32 ~ 8 ~ deg C |

hais

| Temp F ~ 90 ~ 14 ~ deg F |

Kauj Ruam 4: Ntsuas Cov Khoom Siv Tam Sim No

Ntsuas Cov Khoom Siv Tam Sim No
Ntsuas Cov Khoom Siv Tam Sim No

Siv lub tsev qiv ntawv lp_Si7021, txawm tias ntsuas qhov ntsuas kub/av noo txhua 10 vib nas this tsuas yog txhawb nqa ~ 1uA rau qhov nruab nrab muab tam sim no, yog li qhov tseem ceeb hauv kev muab khoom tam sim no thiab yog li roj teeb lub neej yog tam sim no siv los ntawm BLE tshaj tawm thiab txuas thiab xa cov ntaub ntawv.

Txuas lub Rooj Tswjhwm Saib Xyuas Kub/Vaum mus rau Tus Kws Tshaj Lij tau piav qhia hauv Tshooj 1 raws li qhia saum toj no.

Nrog lub hnub ci thiab lub roj teeb tsis tau txuas, Vin thiab Gnd txuas nrog tus programmer's Vdd thiab Gnd (Tus coj daj thiab ntsuab) thiab SWCLK thiab SWDIO txuas nrog Clk thiab SIO ntawm tus thawj tswj hwm lub taub hau (Blue thiab Pink ua)

Tam sim no koj tuaj yeem ua haujlwm NanoV2 thiab ntsuas cov khoom siv tam sim no raws li tau piav qhia hauv Ntu 1.

Nruab qhov tsis muaj zog Si7021 lub tsev qiv ntawv los ntawm cov ntawv zip no, lp_Si7021.zip thiab nruab pfodParser lub tsev qiv ntawv thiab unzip lp_BLE_TempHumidity_R3.zip rau koj Arduino sketches directory thiab program Temp/Humditiy board nrog lp_BLE_TempHumidity_R3.ino

Raws li tau hais los saud qhov kev koom tes ntawm lub ntsuas yog <1uA, qhov nruab nrab, ntawm qhov ntsuas siab tshaj plaws siv hauv txoj haujlwm no, yog li BLE kev tshaj tawm thiab kev sib txuas tsis yog qhov txiav txim siab rau roj teeb lub neej.

BLE kev tshaj tawm thiab kev sib txuas tsis cuam tshuam rau kev siv tam sim no yog: -Tx Lub Hwj Chim, Kev Tshaj Tawm Txog Kev Tshaj Tawm, Max thiab Min Kev Sib Txuas Sijhawm, thiab Qhuav Qhuav.

Nco tseg: Siv cov kev sib txuas saum toj no muaj ob (2) tus tswj hwm hauv kev xa khoom, ib qho ntawm NanoV2 pawg thawj coj ntawm Vin thiab MAX8881 ntawm tus neeg tsim khoom siv. Qhov no txhais tau tias ntsuas ntsuas tam sim no yuav yog ~ 5uA siab dua qhov tseeb, vim yog tus tswj thib ob. Cov txiaj ntsig tau hais hauv qab no yog ntsuas ntsuas tam sim no rho tawm 5uA ntxiv.

Tx zog

Tx Lub zog muaj txiaj ntsig muab tam sim no ob qho tib si thaum txuas nrog thiab thaum tshaj tawm (tsis txuas nrog). Txoj haujlwm no siv lub zog tshaj plaws teeb tsa (+4) thiab muab qhov zoo tshaj plaws thiab tiv thaiv lub suab nrov tshaj plaws rau kev sib txuas uas ntseeg tau tshaj plaws. Koj tuaj yeem siv lp_BLESerial setTxPower () txoj hauv kev los hloov lub zog teeb tsa. Cov txiaj ntsig siv tau yog, nce lub zog, -40, -30, -20, -16, -12, -8, -4, 0 +4. Koj yuav tsum hu rau lp_BLESerial pib () txheej txheem ua ntej koj hu setTxPower (). Saib daim duab lp_BLE_TempHumidity_R3.ino.

Koj tuaj yeem sim ua kom txo qis Tx hwj chim, tab sis kev txiav txim siab yog luv dua thiab ntau qhov kev sib txuas poob vim qhov cuam tshuam. Hauv txoj haujlwm no Tx Txiaj Ntsig tau tso tseg ntawm nws lub neej ntawd, +4. Raws li koj yuav pom hauv qab no, txawm tias nrog qhov teeb tsa no, cov khoom siv qis heev tam sim no tseem tuaj yeem ua tau.

Kev Tshaj Tawm Tshaj Tawm

Txog qhov muab Tx Txiaj Ntsig, thaum tsis muaj kev sib txuas, Kev Tshaj Tawm Tshaj Tawm teeb tsa qhov nruab nrab kev siv tam sim no. Qhov pom zoo ntau yog 500 txog 1000mS. Ntawm no 2000mS tau siv. Qhov kev txiav txim siab yog qhov ncua sijhawm tshaj tawm kev tshaj tawm txhais tau tias nws qeeb rau koj lub xov tooj ntawm tes kom pom lub cuab yeej thiab teeb tsa kev sib txuas. Sab hauv, ncua sijhawm tshaj tawm tau teeb tsa hauv ntau ntawm 0.625mS hauv thaj tsam 20mS txog 10.24sec. Lp_BLESerial setAdvertisingInterval () txheej txheem siv mS raws li kev sib cav, kom yooj yim. Rau +4 TxPower thiab 2000mS kev tshaj tawm lub sijhawm siv tam sim no yog ~ 18uA. Rau 1000mS ncua sijhawm tshaj tawm, nws yog ~ 29uA. Rev 2 siv 2000mS ncua sijhawm tshaj tawm tab sis qhov no ua rau kev sib txuas qeeb. Rev 3 hloov mus rau 1000mS ncua kev tshaj tawm kom ua kev sib txuas nrawm dua.

Max thiab Min Kev Sib Txuas Sijhawm

Thaum kev sib txuas tau tsim, qhov kev sib txuas ncua sijhawm txiav txim siab ntau npaum li cas lub xov tooj ntawm tes sib txuas lub cuab yeej. Lp_BLESerial setConnectionInterval () cia koj teeb tsa cov lus pom zoo max thiab min, txawm li cas los xij lub xov tooj ntawm tes tswj hwm qhov kev sib txuas ua ntu zus yog dab tsi. Txhawm rau kom yooj yim cov lus sib cav rau setConnectionInterval () nyob hauv mS, tab sis sab hauv cov kev sib txuas sib txuas yog ntau ntawm 1.25mS, hauv thaj tsam 7.5mS txog 4sec.

Lub neej ntawd teeb tsa tau teeb tsa ConnectionInterval (100, 150) piv txwv li min 100mS mus txog 150mS. Ua kom cov txiaj ntsig no txo qis cov khoom siv tam sim no thaum txuas nrog, tab sis kev pom zoo yog qeeb kis cov ntaub ntawv. Txhua qhov hloov tshiab ntawm lub vijtsam yuav siv txog 7 BLE lus, thaum puv 36 teev ntawm 10 feeb ntsuas yuav siv txog 170 BLE lus. Yog li nce qhov kev sib txuas ua ntu zus ua rau qeeb qhov screen tshiab thiab cov phiaj xwm nthuav tawm.

Lp_BLESerial chav kawm muaj 1536 byte xa tsis thiab tsuas yog xa ib qho thaiv ntawm 20 bytes los ntawm qhov no, txhua qhov kev sib txuas ntau zaus kom tiv thaiv dej nyab BLE txuas nrog cov ntaub ntawv. Tsis tas li ntawd thaum xa cov ntaub ntawv phiaj xwm, daim duab tsuas yog xa cov ntaub ntawv mus txog 512 bytes tab tom tos kom xa tom qab ntawd qeeb xa cov ntaub ntawv ntxiv mus txog thaum qee cov ntaub ntawv raug xa mus. Qhov no zam kev dej nyab xa mus. Qhov kaw qhov xa tawm no ua rau cov ntaub ntawv xa mus rau lub xov tooj ntawm tes txhim khu kev qha, tab sis nws tsis tau ua kom zoo rau qhov siab tshaj plaws los ntawm kev tso.

Hauv qhov haujlwm no qhov sib txuas sib txuas tau raug tso tseg raws li qhov txiaj ntsig qub.

Qhev Latency

Thaum tsis muaj cov ntaub ntawv xa mus rau lub xov tooj, lub cuab yeej tuaj yeem xaiv tsis quav ntsej qee qhov ntawm cov lus sib txuas los ntawm lub xov tooj. Qhov no txuag Tx hwj chim thiab muab khoom tam sim no. Slave Latency teeb tsa yog tus naj npawb ntawm cov lus sib txuas los tsis quav ntsej. Lub neej ntawd yog 0. Tus txheej txheem lp_BLESerial setSlaveLatency () tuaj yeem siv los hloov qhov teeb tsa no.

Lub neej qub qhev Latency ntawm 0 muab ~ 50uA muab tam sim no, tsis quav ntsej lub vijtsam hloov tshiab txhua 30 vib nas this, tab sis suav nrog cov lus keepAlive heev 5 secs. Teeb Tus Qav Latency rau 2 muab qhov nruab nrab txuas nrog tam sim no ntawm ~ 25uA. Kev quab yuam Latency teeb tsa ntawm 4 muab ~ 20uA. Kev teeb tsa siab dua tsis zoo li txo cov khoom siv tam sim no yog li Qiv Qeb Latency teeb ntawm 4 tau siv.

Thaum txuas nrog, txhua 30 vib nas this pfodApp thov hloov kho cov duab. Qhov no yuam lub ntsuas ntsuas thiab xa cov ntaub ntawv rov qab los hloov kho cov duab teeb tsa. Qhov hloov tshiab no ua rau ntxiv ~ 66uA rau 2 vib nas this txhua 30 vib nas this. Qhov ntawd yog qhov nruab nrab ntawm 4.4uA dhau 30 vib nas this. Ntxiv qhov no rau 20uA, muab qhov nruab nrab kev sib txuas tam sim no ntawm ~ 25uA

Kauj Ruam 5: Tag Nrho Cov Khoom Siv Tam Sim No thiab Lub Neej Roj Teeb

Siv cov kev teeb tsa saum toj no, raws li tau teev tseg hauv lp_BLE_TempHumidity_R3.ino, Tag Nrho Cov Khoom Siv tam sim no thaum txuas thiab hloov kho cov zaub txhua 30 vib nas this, kwv yees li 25uA. Thaum tsis txuas nrog, nws yog kwv yees li 29uA.

Rau kev suav lub roj teeb lub neej txuas ntxiv tam sim no ntawm ~ 29uA yog xav tias.

Cov roj teeb sib txawv muaj peev xwm sib txawv thiab cov yam ntxwv hluav taws xob. Cov roj teeb suav nrog ntawm no yog CR2032 npib cell, CR2450 (N) npib cell, 2 x AAA Alkaline, 2 x AAA Lithium thiab LiPo.

Cov ntsiab lus roj teeb

Yog tias siv Solar Assist ces ntxiv 50% rau cov lej roj teeb lub neej (piv txwv li 8 teev nyob rau ib hnub)

Nco tseg: 22uF LowESR capacitor (C1), ntxiv rau ntawm board NanoV2 22uF capacitor, khaws Solar Cell tam sim no thiab tom qab ntawd muab nws rau TX tam sim no pulses. Lwm qhov ntse lub roj teeb muab qee yam ntawm TX tam sim no. Qhov no ntxiv 22uF LowESR ntxiv txog 10% rau lub roj teeb tam sim no thaum lub hnub ci cell tsis yog khoom siv, tab sis kuj txuas lub roj teeb lub neej los ntawm kev them nyiaj rau kev nce roj teeb sab hauv tsis zoo li lub roj teeb mus txog thaum kawg ntawm lub neej. Cov kev ntsuas hauv qab no tau ua yam tsis muaj qhov ntxiv 22uF capacitor.

CR2032 - 235mAHr - roj teeb lub neej 10 hli CR2450 (N) - 650mAHr (540mAHr) - roj teeb lub neej 2.3 xyoos (2yrs) 2 x AAA Alkaline - 1250mAHr - roj teeb lub neej 3.8.yrs2 x AAA Lithium - 1200mAHr - roj teeb lub neej 4.7 yrsLiPo rechargable vim siab tawm tus kheej.

NPE 2032

Cov nyiaj npib ntawm tes no muaj peev xwm feem ntau yog 235mAHr (Energizer Battery), qhov ntsuas hluav taws xob ntawm 3V thiab qhov tshwj xeeb tso tawm hluav taws xob ntawm 2V. Qhov no cuam tshuam txog lub roj teeb lub neej ntawm 8100hrs lossis ~ 0.9yr. Txawm li cas los xij sab hauv ntawm tes tiv taus nce ntxiv vim lub roj teeb mus txog qhov kawg ntawm lub neej thiab yog li ntawd yuav tsis tuaj yeem muab lub ncov tam sim tam sim no. Cov khoom siv hluav taws xob loj tuaj yeem siv los txo qhov txiaj ntsig no, tab sis hais 10 lub hlis lub neej.

CR2450 (N)

Cov nyiaj npib ntawm tes no muaj peev xwm feem ntau 620mAHr (540mAHr rau CR2450N), qhov ntsuas hluav taws xob ntawm 3V thiab qhov tshwj xeeb tso tawm hluav taws xob ntawm 2V. Qhov no cuam tshuam txog lub roj teeb lub neej ntawm 22, 400hrs lossis ~ 2yr 6m (18600hrs ~ 2yrs 2m rau CR2450N). Txawm li cas los xij sab hauv ntawm tes tiv taus nce ntxiv vim lub roj teeb mus txog qhov kawg ntawm lub neej thiab yog li ntawd yuav tsis tuaj yeem muab lub ncov tam sim tam sim no. Cov khoom siv hluav taws xob loj tuaj yeem siv los txo qhov txiaj ntsig no, tab sis hais 2yr 4m (2yr N) lub neej.

Nco tseg: CR2450N version muaj daim di ncauj tuab uas pab tiv thaiv kev teeb tsa tsis raug hauv tus tuav CR2450N. Koj tuaj yeem ntxig CR2450N thiab CR2450 cell hauv tus tuav CR2450 tab sis koj tsis tuaj yeem ntxig CR2450 ntawm tes hauv tus tuav CR2450N

2 x AAA Alkaline hlwb

Cov roj teeb no muaj peev xwm kwv yees li 1250mAHr (Energizer Battery) rau cov dej ntws qis heev, qhov ntsuas hluav taws xob ntawm 2x1.5V = 3V thiab qhov tshwj xeeb tso tawm hluav taws xob ntawm 2x0.8V = 1.6V. Tab sis qhov tshwj xeeb tso tawm qhov hluav taws xob tsawg dua li qhov ua haujlwm ntawm Si7021 sensor (1.9V) yog li lub roj teeb tsuas tuaj yeem siv rau ~ 1V txhua. Qhov no txo lub peev xwm li ntawm 10% mus rau 15% piv txwv li ~ 1000mAHr.

Qhov no cuam tshuam txog lub roj teeb lub neej ntawm 34, 500hrs lossis ~ 4yr. Txawm li cas los xij sab hauv ntawm tes tiv taus nce ntxiv vim lub roj teeb mus txog qhov kawg ntawm lub neej thiab yog li ntawd yuav tsis tuaj yeem muab lub ncov tam sim tam sim no. Cov khoom siv hluav taws xob loj tuaj yeem siv los txo qhov txiaj ntsig no, tab sis hais 3yr 10m lub neej. Nco tseg Alkaline roj teeb muaj tus kheej tso tawm ntawm 2% rau 3% hauv ib xyoos.

2 x AAA Lithium cells

Cov roj teeb no muaj peev xwm li ntawm 1200mAHr (Energizer Battery), qhov ntsuas hluav taws xob ntawm 2x1.7V = 3.4V, ntawm cov dej ntws qis, thiab tso tawm hluav taws xob ntawm 2x1.4V = 2.4V. Qhov no cuam tshuam txog lub roj teeb lub neej ntawm 41, 400hrs lossis 4yrs 8m.

LiPo Rechargable Roj Teeb

Cov roj teeb no los ntawm ntau lub peev xwm los ntawm 100mAHr txog 2000mAHr, hauv cov tiaj tiaj, thiab muaj qhov them hluav taws xob ntawm 4.2V thiab tso tawm hluav taws xob ntawm> 2.7V. Txawm li cas los xij lawv muaj kev tso tus kheej siab ntawm 2% -3%/hli (piv txwv li 24% txog 36% hauv ib xyoos) thiab yog li tsis haum rau daim ntawv thov no ib yam li lwm cov roj teeb.

Kauj Ruam 6: Muab Lwm Yam - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb

Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb
Kev Xaiv Lwm - Kev Pab Hnub Ci, Roj Teeb Xwb, Hnub Ci Xwb

Roj teeb ntxiv rau Hnub Ci Pab

Kev tsim kho saum toj no siv Lub Roj Teeb ntxiv rau Kev Pab Hnub Ci. Thaum lub hnub ci vaj huam sib luag tsim hluav taws xob ntau dua li lub roj teeb hluav taws xob, lub hnub ci cell yuav txhawb lub zog saib, yog li txuas ntxiv lub roj teeb lub neej. Feem ntau lub roj teeb lub neej tuaj yeem txuas ntxiv los ntawm 50%.

Hnub ci vaj huam sib luag siv yog me me, 50mm x 30mm, pheej yig, ~ $ 0.50, thiab lub zog qis. Lawv yog cov npe 5V vaj huam sib luag, tab sis xav tau puv lub hnub ci ncaj qha los tsim 5V. Hauv qhov haujlwm no ob lub vaj huam sib luag tau txuas nrog hauv kab ntawv kom tso lub monitor qee qhov twg nyob ze ntawm lub qhov rais, tawm ntawm lub hnub ncaj, yog txaus los hloov lub roj teeb lub zog. Txawm tias chav teeb pom kev zoo, lossis teeb lub rooj, yog txaus rau lub hnub ci cell los tsim> 3.3V ntawm> 33uA thiab siv los ntawm lub roj teeb.

Ib lub vaj huam sib luag sim yooj yim tau tsim los txiav txim siab qhov Kub thiab Qhov Ntsuas Xyuas tuaj yeem tso rau qhov twg, tawm ntawm lub hnub thiab tseem yog lub hnub ci. Raws li koj tuaj yeem pom los ntawm daim duab saum toj no, ob lub vaj huam sib luag txuas rau 100K resistor tab tom tsim 5.64V hla 100K, piv txwv li 56uA tam sim no ntawm 5.64V. Qhov no ntau tshaj li txaus siv lub zog saib xyuas los ntawm lub roj teeb. Ib qho kev nyeem hluav taws xob sab saud lub npe roj teeb ntawm 3V txhais tau tias lub hnub ci cell yuav ua lub zog saib xyuas tsis siv lub roj teeb.

Ob lub diodes hauv Kev Ntsuas Kub Ntsuas Xyuas Circuit cais cov hnub ci thiab cov roj teeb los ntawm ib leeg thiab tiv thaiv kom tsis txhob txuas lawv rov qab. 10V 1W zener thiab 470R series resistor tiv thaiv NanoV2 tus tswj hwm ntawm lub rooj tsav tsheb los ntawm qhov hluav taws xob ntau dua los ntawm ob lub hnub ci nyob hauv lub hnub ci, tshwj xeeb tshaj yog yog tias 12V lub xov tooj tau tshwm sim los siv 5V ib leeg. Hauv kev ua haujlwm ib txwm ntawm <5V, 10V zener tsuas yog kos ~ 1uA.

Roj Teeb Xwb

Rau Lub Roj Teeb Tsuas Yog Muab, tsuas yog rho R1, D1 thiab D3 thiab lub hnub ci. Koj kuj tseem tuaj yeem hloov D1 nrog daim hlau yog tias koj tsis xav tau kev tiv thaiv rov qab polarity.

Hnub ci xwb

Ua kom lub zog saib xyuas los ntawm Solar Cells nkaus xwb, tsis muaj lub roj teeb, xav tau lub zog hluav taws xob sib txawv. Qhov teeb meem yog tias thaum tus saib xyuas yuav ua haujlwm ntawm 29uA, ntawm lub zog nce nRF52 thim ~ 5mA rau 0.32 sec. Lub Circuit Court qhia saum toj no (pdf version) tuav MAX8881 tus tswj hwm kom txog thaum cov khoom siv hluav taws xob, 2 x 1000uF, them txog 4.04V. Tom qab ntawd MAX6457 tso tawm MAX8881 SHDN cov tswv yim los txhawb lub zog nRF52 (NanoV2) 2 x 1000uF capacitors muab qhov tsim nyog pib tam sim no.

Qhov no cia lub zog saib xyuas sai li sai tau muaj lub hnub ci txaus kom nws khiav ntawm 29uA.

Kauj Ruam 7: Xaus

Cov ntawv qhia no tau nthuav tawm lub roj teeb/hnub ci uas siv lub ntsuas cua sov ua piv txwv piv rau lub zog BLE qis heev hauv Arduino rau nRF52832 nti. Muab cov dej tam sim no ntawm ~ 29uA qhov ua tiav los ntawm kev kho qhov tsis sib txuas. Qhov no ua rau CR2032 npib cell roj teeb lub neej ntev tshaj 10 lub hlis. Ntev dua rau cov peev txheej muaj peev xwm ntau dua cov hlwb thiab cov roj teeb. Ntxiv ob lub hnub ci hnub ci pheej yig yooj yim txuas lub roj teeb tau 50% lossis ntau dua. Lub teeb ci hauv chav lossis teeb lub rooj yog txaus los ua lub zog saib xyuas los ntawm cov hnub ci.

Lub tshuab hluav taws xob tshwj xeeb tau nthuav tawm los tso cai rau saib xyuas kom ua haujlwm tau zoo los ntawm cov peev txheej hnub ci qis.

Pub dawb pfodDesigner cia koj tsim cov ntawv qhia zaub mov/sub-menus, npaj tawm tsam hnub/sijhawm thiab teev cov ntaub ntawv thiab tom qab ntawd tsim lub zog qis Arduino kos duab rau koj. Nov yog kev cai sib tham tau siv tus lej siv pfodApp kos duab txheej thaum ub. Txuas nrog pfodApp qhia tus neeg siv cuam tshuam thiab hloov kho qhov nyeem thaum lub ntsuas saib siv ~ 29uA

Tsis xav tau Android programming. pfodApp ua haujlwm txhua qhov ntawd.

Pom zoo: