Cov txheej txheem:

Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis tas yuav tsum muaj tus lej: 8 Kauj Ruam (nrog Duab)
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis tas yuav tsum muaj tus lej: 8 Kauj Ruam (nrog Duab)

Video: Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis tas yuav tsum muaj tus lej: 8 Kauj Ruam (nrog Duab)

Video: Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis tas yuav tsum muaj tus lej: 8 Kauj Ruam (nrog Duab)
Video: #2 - Bluetooth Controllers 2024, Kaum ib hlis
Anonim
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding
Adafruit Feather NRF52 Kev Tswj Tus Kheej, Tsis Xav Tau Coding

Hloov kho 23rd Plaub Hlis 2019 - Txog rau hnub/sijhawm phiaj xwm siv tsuas yog Arduino millis () pom Arduino Hnub/Sijhawm Npaj/Nkag Nkag Siv Millis () thiab PfodApp Qhov tseeb pub dawb pfodDesigner V3.0.3610+ tsim ua tiav daim duab Arduino los npaj cov ntaub ntawv tawm tsam hnub/sijhawm siv Arduino millis ()

Hloov tshiab 28th Kaum Ib Hlis 2017 - Siv Adafruit Feather nRF52 Arduino IDE board addon V0.7.5, TX thiab RX pins tau pauv. (saib cov lus hauv qab no rau qhov chaws xeem). Cov lus qhia no tsis siv TX/RX pins.

Nyeem Qhov No Ua Ntej

Nyeem Qhov No Ua Ntej - Koj puas xav tau BLE tiag? - BLE Teeb Meem thiab Yuav Kho Li Cas

Taw qhia

Adafruit Feather nRF52 yog BLE (Bluetooth Tsawg Zog) pawg thawj coj txhawb nqa Bluetooth V5. Txhua lub rooj sib tham BLE sib txawv nws muaj nws tus kheej lub tsev qiv ntawv txhawb nqa, pin tawm thiab lub peev xwm uas tuaj yeem ua rau nws nyuaj rau sawv thiab khiav.

Cov ntawv qhia no suav txog kev tsim kev tswj hwm ntawm koj lub xov tooj Android rau Adafruit Feather nRF52. Nws siv dawb pfodDesigner V3.3221+ los tsim kev cai ntau qib cov ntawv qhia zaub mov, cov phiaj xwm thiab cov ntaub ntawv txiav uas tuaj yeem tshwm ntawm pfodApp (them nyiaj app).

PfodDesigner tsim txhua txoj cai Arduino xav tau rau Adafruit Feather nRF52.

Lub hom phiaj dav pfodApp saib xyuas cov neeg siv khoom saib thiab cuam tshuam ntawm koj lub xov tooj hauv. Tsis xav tau Android programming.

Dab tsi tshwm sim rau tus neeg siv ntawm lawv lub xov tooj yog tswj tau tag nrho los ntawm cov cai koj thauj mus rau hauv koj li Feather52. Txawm hais tias koj txiav txim siab tsis siv pfodApp, dawb pfodDesigner tseem yuav tsim cov qauv qauv uas tso cai rau koj teeb tsa Nordic 'uart' txuas rau koj li Feather52 board.

pfodDesignerV3.3221+ qhia txog Feather52 qhov kev xaiv tshwj xeeb ntawm pawg thawj coj saib thaum koj xaiv tus pin twg los txuas cov ntawv qhia zaub mov rau.

Cov lus qhia no tseem muaj nyob hauv online Adafruit Feather nRF52 LE - Kev tswj hwm tus kheej nrog pfodApp

Kauj Ruam 1: Daim Ntawv Teev Npe

Nqi raws li ntawm Kaum Ib Hlis 2017 tsis suav nrog kev xa khoom

  • Adafruit Feather nRF52 LE - ~ US $ 25
  • USB A rau Micro B - ~ US $ 3
  • Arduino IDE V1.8.5 - dawb
  • pfodDesignerV3 Android app - dawb
  • pfodApp V3 - ~ US10
  • Hloov ntaub ntawv app (lossis cable) - piv txwv li Hloov Cov Ntaub Ntawv Wifi (pub dawb) lossis Wifi Hloov Cov Ntaub Ntawv Pro ~ US $ 3
  • Ib Android Txawb los khiav cov apps - Xav tau los txhawb Bluetooth Tsawg Zog V4 piv txwv li khiav Android V4.4 lossis siab dua.
  • Ib lub Computer los khiav Arduino IDE

Nruab Arduino IDE hauv koj lub computer thiab tom qab ntawd rub tawm thiab teeb tsa Tus Thawj Saib Xyuas Haujlwm rau Adafruit Feather nRF52 Txheeb xyuas koj tuaj yeem txuas rau thiab teeb tsa koj li Feather nRF52 board.

Kauj Ruam 2: Tsim Kev Cai Android Menus rau Adafruit BLE Feather52 thiab Tsim Txoj Cai

Tsim Kev Cai Android Menus rau Adafruit BLE Feather52 thiab Tsim Txoj Cai
Tsim Kev Cai Android Menus rau Adafruit BLE Feather52 thiab Tsim Txoj Cai

Pub dawb pfodDesignerV3 V3.3221+ Android app tso cai rau koj tsim cov ntawv tshwj xeeb thiab tom qab ntawd tsim txhua txoj cai rau koj qhov tshwj xeeb BLE module. pfodApp yog tom qab siv los tso tawm koj cov ntawv qhia zaub mov ntawm koj lub xov tooj ntawm tes thiab cia koj tswj koj tus qauv. Tsis tas yuav muaj Android lossis Arduino coding.

Pub dawb pfodDesignerV3 tau siv los tsim cov ntawv qhia zaub mov hauv WISIWYG zam thiab qhia koj qhov tseeb ua ntej ntawm yuav ua li cas cov ntawv qhia zaub mov yuav zoo ntawm koj lub xov tooj. PfodDesignerV3 tso cai rau koj los tsim cov ntawv qhia zaub mov thiab sub-menus nrog cov nyees khawm thiab swb, xaiv tau txuas nrog I/O pins, thiab tsim cov lej kos rau koj (saib pfodDesigner piv txwv qhia) tab sis pfodDesignerV3 tsis npog tag nrho cov yam ntxwv pfodApp txhawb nqa. Saib pfodSpecification.pdf kom ua tiav cov npe suav nrog dwg txheej thaum ub, cov ntaub ntawv txiav tawm thiab phiaj xwm, ntau yam thiab xaiv ib leeg cov ntxaij vab tshaus, sliders, cov ntawv nkag, thiab lwm yam.

Tsim cov ntawv qhia tshwj xeeb los tswj Adafruit BLE Feather52 RED LED

Kev qhia Tsim Cov Ntawv Qhia Tshwj Xeeb kom tig Arduino Led rau thiab tawm muaj cov lus qhia ib qib zuj zus rau kev tsim cov ntawv qhia no siv pfodDesignerV3. Yog tias koj tsis nyiam cov xim ntawm cov font loj lossis cov ntawv, koj tuaj yeem hloov kho lawv yooj yim hauv pfodDesignerV3 rau yam koj xav tau thiab pom WYSIWYG (Koj Pom Dab Tsi Koj Tau Txais) tso tawm ntawm cov ntawv qhia zaub mov tsim tawm. ua rau Adafruit BLE Feather52 thiab yog kuv) teeb tsa Feather52 raws li Lub Hom Phiaj rau lub tshuab tsim hluav taws xob rau cov ntawv qhia zaub mov tshiab ua ntej ntxiv Led tswj cov ntawv qhia zaub mov khoom thiab ii) hloov kev xaiv On/Off tswj PWM slider raug xaiv thiab tsim hauv RED LED tau teeb tsa ua tus pin.

Kauj Ruam 3: Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Txoj Cai Tsim

Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Txoj Cai Tsim
Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Txoj Cai Tsim
Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Code Code
Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Code Code
Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Code Code
Xaiv Adafruit Feather NRF52 Raws li Lub Hom Phiaj rau Code Code

Thaum tau pib ua Ntawv Qhia Tshiab hauv pfodDesigner, ua ntej koj yuav tsum xaiv Adafruit Feather nRF52 raws li Lub Hom Phiaj rau kev tsim cov cai. Thaum koj pib cov ntawv qhia zaub mov tshiab lossis hloov kho cov ntawv qhia zaub mov uas twb muaj lawm, lub pob saum toj qhia cov Phiaj Xwm Phiaj Xwm. Lub neej ntawd yog Serial.

Nyem rau ntawm Lub Hom Phiaj khawm kom qhib Lub Hom Phiaj xaiv.

Xaiv Bluetooth Tsawg Zog khawm. Muaj tus lej ntawm BLE cov laug cam txhawb nqa nqes los saib lawv txhua tus. Xaiv Adafruit Feather nRF52 ua lub hom phiaj

Tom qab ntawd siv lub xov tooj rov qab khawm kom tawm ntawm Lub Hom Phiaj xaiv lub vijtsam thiab rov qab mus rau Khoos phib tawj Khoos phis tawj.

Kauj Ruam 4: PWM Tswj ntawm RED Led

PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led
PWM Tswj ntawm RED Led

Tam sim no koj tuaj yeem txuas ntxiv nrog Tsim Tus Qauv Ntawv qhia zaub mov kom tig Arduino Led rau thiab tawm qhia kom Tsim Txoj Cai tshwj tsis yog xaiv PWM tso tawm raws li cov ntawv qhia zaub mov ntxiv.

Tom qab ntawd thaum nqes mus rau txuas I/O tus pin thiab nyem nws kom hloov pauv

Tom qab ntawv nqes mus rau cov npe pins muaj rau PWM siv ntawm Feather52 thiab xaiv RED Led.

Ua kom tiav cov ntawv qhia zaub mov los ntawm kev kho cov ntawv ua thawj coj, Teeb BOLD, RED Tom Qab RED thiab ua kom cov font loj li +5

Kauj Ruam 5: Teeb Cov Lus Cog Tseg thiab Tsim Txoj Cai

Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai
Teem Cov Lus Cog Tseg thiab Tsim Txoj Cai

Koj tuaj yeem rov qab mus rau cov ntawv qhia zaub mov tseem ceeb thiab teeb tsa Hloov Kho kom "Feather52" BOLD, font loj +6 thiab tom qab Dawb.

Thaum kawg rov qab mus rau cov ntawv qhia zaub mov tseem ceeb thiab saib ua ntej koj tsim ua ntej nqes mus rau xaiv Tsim Cov Cai

Tawm pfodDesigner thiab xa cov ntaub ntawv code (pfodAppRawData / pfodDesignerV3.txt) rau koj lub computer (saib pfodAppForAndroidGettingStarted.pdf page32)

Ib daim qauv ntawm cov qauv tsim qauv kos duab nyob ntawm no (Feather52_Led_Chart.ino) Ua haujlwm rau koj Feather52 thiab tom qab ntawd tsim kev sib txuas BLE hauv pfodApp thiab txuas rau koj lub rooj tsavxwm thiab tso cov slider los kho RED Led. Nws yuav tso tawm raws nraim li qhov saib ua ntej.

Kauj Ruam 6: Ntxiv Cov Phiaj Xwm rau Feather52 Tswj Cov Ntawv Qhia

Ntxiv ib zaj lus qhia rau Feather52 Control Menu
Ntxiv ib zaj lus qhia rau Feather52 Control Menu
Ntxiv Ib Zaj Lus Qhia rau Feather52 Tswj Cov Ntawv Qhia
Ntxiv Ib Zaj Lus Qhia rau Feather52 Tswj Cov Ntawv Qhia
Ntxiv ib zaj lus qhia rau Feather52 Control Menu
Ntxiv ib zaj lus qhia rau Feather52 Control Menu

Siv Led Tus Thawj Coj los ua lub hauv paus, koj tuaj yeem ntxiv cov ntawv qhia zaub mov ntau ntxiv rau kev nyeem lossis tswj hwm lwm tus Digital pins thiab rau kev nyeem ntawv, phiaj xwm thiab txiav cov Analog inputs, piv txwv. Txheeb xyuas ntau yam pfodDesigner cov lus qhia ntawm kev siv ntau yam khoom noj khoom haus. Yuav Ua Li Cas Qhia Cov Ntaub Ntawv Arduino ntawm Android rau Cov Pib Qhia qhia npog tsim cov phiaj xwm.

Hauv qab no yog saib ua ntej nrog cov kab kos khawm ntxiv thiab thiab saib ua ntej ntawm daim duab ntawm A0 nrog qee cov ntaub ntawv dag. Nco tseg: Qhov ntsuas hluav taws xob siv hluav taws xob rau ADC ntawm Feather52 yog 3.6V yog li thaum teeb tsa lub phiaj xwm "Kho Max Display" tau teeb tsa rau 3.6 yog li ntawd 0 txog 1023 kev nyeem tau raug ntsuas rau 0 txog 3.6 rau kev txiav thiab tso saib.

Qhov tsim cov duab kos rau cov zaub no nyob ntawm no (Feather52_Led_Chart.ino)

Thaum thauj khoom rau hauv koj Feather52 thiab txuas nrog koj lub xov tooj, ntawm pfodApp, koj tuaj yeem kov A0 pawg thawj coj tus pin nrog koj tus ntiv tes kom tau txais qee qhov nyeem thiab qhia cov phiaj xwm.

Ntxiv rau kev npaj cov txiaj ntsig Analog, kev nyeem ntawv kuj tseem raug nkag, hauv CSV hom ntawv, rau cov ntaub ntawv ntawm koj lub xov tooj ntawm tes. Yog tias koj lub npe kev sib txuas hauv pfodApp, zoo li "Feather52", raws li tau hais los saud, tom qab ntawd cov ntaub ntawv CSV nkag tau raug khaws tseg rau hauv cov ntaub ntawv / pfodAppRawData / Feather52.txt Koj tuaj yeem rub tawm cov ntawv CSV no rau kev siv ntxiv.

Kauj Ruam 7: Ntxiv Kev Cai Tswj rau Feather52 Ntawv Qhia

Ntxiv Kev Cai Tswj rau Feather52 Ntawv Qhia
Ntxiv Kev Cai Tswj rau Feather52 Ntawv Qhia

pfodApp V3 ntxiv dwg txheej thaum ub. Koj tuaj yeem siv cov txheej txheem no:- duab plaub, lub voj voos, daim duab, daim ntawv lo, touchZones, thiab lwm yam. Saib Kev Cai Tswj Arduino rau Android rau kev qhia ntawm dwg txheej thaum ub. Saib Arduino rau Cov Pib Pib rau cov piv txwv ntawm kev ntsuas thiab ua kom pom lub ntsej muag UI.

Siv cov duab qub muab rau koj ua tiav kev tswj cov zaub, tab sis xav tau ntau txoj haujlwm los tsim koj lub interface. PfodDwgControl lub tsev qiv ntawv muab tus lej ntawm kev tsim ua ntej tswj hwm, qhib/tua cov nyees khawm, cov lus, kab ntawv swb, koj tuaj yeem tso rau hauv koj daim duab. PfodDesigner tso cai rau koj ntxig cov ntawv qhia yooj yooj yim yam khoom nrog tsuas yog qhib/kaw khawm kom koj cov cai tsim tawm yuav muaj tus qauv koj tuaj yeem hloov kho tom qab ntxiv koj tus kheej duab.

Cov duab tsuas yog lwm cov ntawv qhia zaub mov thiab tuaj yeem ntxiv rau txhua daim ntawv qhia zaub mov. Nov yog tus lej tsim rau cov ntawv qhia zaub mov no, Feather52_Led_Chart_Dwg.ino Cov duab no xav tau pfodParser.zip thiab pfodDwgControls.zip cov tsev qiv ntawv yuav tsum tau nruab ua ntej.

Cov duab UIs tuaj yeem siv tus lej xov tooj los txheeb xyuas txhua qhov tseem ceeb, xim, ntawv cim thiab lwm yam siv. pfodApp txwv txhua cov lus los ntawm koj lub cuab yeej mus rau 1024 bytes, tab sis tso cai rau cov duab los txhais los ntawm ntau cov lus. Cov cai tsim tawm tau muab rau 2 cov lus tab sis qhov thib ob ntawm tsuas yog khoob thiab yog li pfodApp paub tsis thov tus thib peb. Koj tuaj yeem txuas qhov no mus rau ntau cov lus raws li koj xav tau los tsim koj cov zaub. Arduino101 Starter, tswj los ntawm Android/pfodApp siv 8 lus. pfodApp caches cov ntawv qhia zaub mov thiab cov duab tawm tsam cov kab ntawv cais kab ntawv kom tom ntej no koj txuas koj tsuas yog tsis tas yuav xa tag nrho cov duab dua, tsuas yog hloov tshiab yog tias muaj.

Kauj Ruam 8: Piv Cov Vev Xaib thiab Lwm Yam Kev Tswj

Cov ntxaij vab tshaus thiab lwm yam kev tswj hwm tus kheej
Cov ntxaij vab tshaus thiab lwm yam kev tswj hwm tus kheej
Cov ntxaij vab tshaus thiab lwm yam kev tswj hwm tus kheej
Cov ntxaij vab tshaus thiab lwm yam kev tswj hwm tus kheej

PfodDesignerV3 tsuas yog txhawb nqa ib txheej ntawm cov ntxaij vab tshaus uas pfodApp txhawb nqa. Txog daim ntawv teev npe tiav saib pfodSpecification.pdf. SampleAdafruitFeather52Screens.ino kos duab suav nrog cov ntxaij vab tshaus ntxiv txhawb los ntawm pfodApp tab sis tsis suav nrog hauv pfodDesigner. Feem ntau ntawm cov ntxaij vab tshaus tsis muaj kev teeb tsa los khaws cov lus kom meej thiab yooj yim. Koj tuaj yeem ntxiv koj tus kheej xim thiab tus cwj pwm, siv pfodDesignerV3 ua tus qhia. Kuj pom pfodDemo Android app rau lwm qhov piv txwv.

Tus Qauv AdafruitFeather52Screens.ino xav tau pfodParser.zip thiab pfodDwgControls.zip cov tsev qiv ntawv yuav tsum tau teeb tsa ua ntej.

Ib qho ntawm cov ntxaij vab tshaus hauv SampleAdafruitFeather52Screens.ino suav nrog ob txoj cai tswj hwm. Ib qho kev cai slider los tswj RED coj thiab ntsuas kom pom qhov teeb tsa tam sim no. Lub vijtsam ntawd siv pfodApp kos duab txheej thaum ub los kos lub rooj tswj hwm thiab txheeb xyuas cov neeg siv thaj chaw thiab ua. Raws li koj txav koj tus ntiv tes hla tus slider tswj nws hloov kho lub vijtsam tam sim ntawd los qhia qhov chaw tshiab. Ib qho ntxiv qhov hloov tshiab no TSIS tsim rau hauv pfodApp tab sis tau tswj hwm tag nrho los ntawm cov cai hauv koj Feather52 yog li koj tuaj yeem kho nws raws li koj xav tau.

Kev Cai Tswj Arduino rau Android kev qhia qhia txog yuav ua li cas rau koj tus kheej kev tswj hwm thiab Arduino101 Starter, tswj los ntawm Android/pfodApp qhia piav qhia yuav ua li cas Zoom thiab Pan ua haujlwm.

Xaus

Cov ntawv qhia no tau qhia tias koj tuaj yeem sib txuas lus tau yooj yim nrog thiab tswj hwm Adafruit Feather nRF52 pawg thawj coj. Tsis xav tau Android programming. pfodApp ua haujlwm txhua qhov ntawd. Tsis xav tau Arduino coding. (Pub dawb) pfodDesignerV2 tsim cov duab kos tiav rau qhov no thiab ntau yam ntawm lwm cov qauv BLE ntxiv rau ESP8266 thiab WiFi, Bluetooth thiab SMS tiv thaiv.

Pom zoo: