Cov txheej txheem:

Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/cov khoom yooj yim: 4 kauj ruam
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/cov khoom yooj yim: 4 kauj ruam

Video: Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/cov khoom yooj yim: 4 kauj ruam

Video: Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/cov khoom yooj yim: 4 kauj ruam
Video: The Step-by-Step Guide to Mastering Eddystone Beacon Implementation 2024, Hlis ntuj nqeg
Anonim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim
Beacon/eddystone thiab Adafruit NRF52, Tshaj Tawm Koj Lub Vev Xaib/khoom yooj yim

Nyob zoo txhua tus, hnub no kuv xav qhia rau koj txog qhov haujlwm kuv tau ua tsis ntev los no, Kuv tau nrhiav lub cuab yeej los txuas nws sab hauv tsev/sab nraum zoov thiab cia cov neeg txuas nrog nws siv lawv lub xov tooj smartphone, thiab muab lawv lub peev xwm mus ntsib lub vev xaib tshwj xeeb lossis tshaj tawm ib yam khoom rau lawv.

qhov kev daws teeb meem zoo tshaj plaws yog siv qee yam hu ua "Eddystone" uas tso cai rau koj xa qhov url mus rau cov neeg siv khoom "Smartphone /Tablet".

yog li hauv kab lus no kuv yuav qhia koj ib qib zuj zus yam kuv tau siv thiab Yuav ua li cas kuv tau txuas txhua yam ua ke thiab software/apps uas kuv tau siv hauv txoj haujlwm no.

Ua ntej: qhia qhov teeb meem

txhawm rau siv cov cuab yeej sab hauv / sab nraum koj yuav tsum ua nws:

  1. dej tsis qab.
  2. hwj chim nws los ntawm roj teeb
  3. roj teeb ntev li ntev tau
  4. rov them lub roj teeb tau yooj yim "los ntawm micro USB piv txwv"

ua kom nws tsis muaj dej, qhov kev daws teeb meem zoo tshaj plaws yog nrhiav cov khoom 3d luam tawm uas tuaj yeem tuav lub cuab yeej sab hauv thiab yooj yim qhib nws thiab kaw nws dua, thiab kom paub tseeb tiv thaiv cov dej los ntawm sab hauv lub cuab yeej thiab ua rau nws puas tsuaj.

siv Li-ion polymer Roj teeb yog qhov kev xaiv zoo tshaj plaws, qhov loj me, lub peev xwm loj thiab yooj yim dua los them nws txij li Adafruit nRF52 plaub tau muaj lub hauv paus li-ion roj teeb them hluav taws xob.

cia peb pib los ntawm cov ntawv luam tawm 3D, Kuv pom qhov kev tsim qauv no nyob ntawm ntau lub vev xaib, tsim los ntawm: Jorg Jorgensen "ua tsaug Jorg" Kuv tau luam tawm nrog cov nplai ntawm 100% tab sis nws me me kom haum rau txhua qhov khoom hauv nws yog li kuv luam tawm nrog qhov ntsuas ntawm 200% thiab muab rau kuv yam kuv xav tau raws nraim

Kuv nyiam qhov kev tsim no vim tias yog koj kaw nws zoo zoo cov dej yuav tsis nkag hauv.

download tus tsim los ntawm qhov txuas hauv qab no

https://www.thingiverse.com/thing:2246144

Kauj Ruam 1: Cov Txheej Txheem rau Txoj Haujlwm no

Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no
Cheebtsam rau Txoj Haujlwm no

tsuas yog ob peb yam koj xav tau los ua qhov haujlwm no:

  1. Adafruit nRF52 feather board, los nrog nRF52832 BE.
  2. Pin header, Poj niam lossis txiv neej header "thiab nws yog nyob ntawm yeem".
  3. Li-ion polymer roj teeb, Kuv siv 3.7V / 1000mA roj teeb, yog tias lub roj teeb los tsis txuas, xyuas kom yuav JST 2pin nkaus.
  4. mini khob cij.
  5. UHU nplaum nplaum.

Kauj Ruam 2: Npaj Kho Vajtse / Software

Npaj Hardware / Software
Npaj Hardware / Software
Npaj Hardware / Software
Npaj Hardware / Software
Npaj Hardware / Software
Npaj Hardware / Software

nws tsis nyuaj rau txuas txhua yam ua ke, tab sis ua ntej peb yuav tsum teeb tsa lub khob cij me me thiab lub roj teeb sab hauv lub cuab yeej siv UHU cov kua nplaum, xyuas kom muab nws tsawg kawg ib teev kom qhuav.

them lub roj teeb Li-ion, hauv kuv kis kuv tau siv cov xov hlau rau lub roj teeb kom txuas nws mus rau JST txuas.

Tam sim no cia peb txav mus rau software:

ua ntej koj yuav tsum muaj Arduino IDE "donwload nws los ntawm no" thiab tom qab ntawd mus rau cov ntawv >> Nyiam

Ntxiv https://www.adafruit.com/package_adafruit_index.js… ua 'Tus Thawj Saib Xyuas Haujlwm Ntxiv URL' (saib daim duab hauv qab no).

Tom qab ntawd mus rau cov cuab yeej >> pawg thawj coj >> pawg thawj coj saib thiab tshawb rau nRF52 thiab nruab nws

tam sim no rov pib dua arduino IDE, thiab los ntawm cov laug cam xaiv adafruit nRF52.

lub software tau npaj siv thiab koj tuaj yeem xa cov duab kos rau nRF52 lub rooj tsavxwm

Kauj Ruam 3: Beacon Hom

Beacon Hom
Beacon Hom
Beacon Hom
Beacon Hom
Beacon Hom
Beacon Hom
Beacon Hom
Beacon Hom

los ntawm Wikipedia Kuv hais "Bluetooth beacons yog cov khoom siv khoos phis tawj - chav kawm ntawm Bluetooth lub zog qis (LE) cov cuab yeej uas tshaj tawm lawv tus cim rau cov khoom siv hluav taws xob uas nyob ze. "yog li peb tuaj yeem xa UUID" thoob ntiaj teb tus cim tshwj xeeb "mus rau cov cuab yeej nyob ze

koj tuaj yeem xa UUID, Tus Loj thiab Tus Zauv Me, thiab teeb tsa lub zog tx thiab RSSI @ 1 meter.

upload cov cai no rau koj pawg nRF52

koj tuaj yeem DOWNLOAD nws los ntawm github

/********************************************************** ******************** MIT daim ntawv tso cai, txheeb xyuas LICENSE rau cov ntaub ntawv ntau ntxiv Txhua cov ntawv sau saum toj no, thiab lub vijtsam txaws hauv qab no yuav tsum suav nrog hauv kev rov faib dua tshiab

Thawj Txoj Cai coj los ntawm Adafruit Bluefruit Piv txwv

Hloov Kho Los Ntawm: Mohannad Rawashdeh https://mb-raw.blogspot.com/ tus lej no yuav ua haujlwm ntawm Android/ IOS li

Android App lub npe: Beacon scanner

apple app name: core beacons go to beacon app and you will see the device name (ibeacon /Rawashdeh) UUID: B3D6F818-DA71-09ED-EA80-F3C45FB19A50 Major = 0x01 Meor = 0x08 Beacon_RSSI -73db; ********************************************************** ****** ****************************** #ncig

#define MANUFACTURER_ID 0x004C // Apple siv tau Chaw Tsim Khoom ID

int Loj = 0x01;

int Me = 0x08; int Beacon_RSSI = -73; int Tx_power = 4; // AirLocate UUID: B3D6F818-DA71-09ED-EA80-F3C45FB19A50 uint8_t beaconUuid [16] = {0xB3, 0xD6, 0xF8, 0x18, 0xDA, 0x71, 0x09, 0xED, 0xEA, 0x80, 0xF3, 0xC4, 0x5F, 0x50,; ib. BLEBeacon beacon (beaconUuid, Loj, Me, Me, Beacon_RSSI);

void teeb tsa ()

{Bluefruit.begin (); Bluefruit.autoConnLed (tsis tseeb); Bluefruit.setTxPower (Tx_power); Bluefruit.setName ("Rawashdeh"); beacon.setManufacturer (MANUFACTURER_ID); Bluefruit. ScanResponse.addName (); Bluefruit. Advertising.setBeacon (beacon); Bluefruit. Advertising.restartOnDisconnect (muaj tseeb); Bluefruit. Advertising.setInterval (160, 160); // hauv chav ntawm 0.625 ms Bluefruit. Advertising.setFastTimeout (15); // tus naj npawb ntawm vib nas this hauv hom nrawm Bluefruit. Advertising.start (0); // 0 = Tsis txhob tso kev tshaj tawm tom qab n vib nas this // Tshem Tawm Loop () kom txuag tau lub zog suspendLoop (); }

void lub voj ()

{ }

yog tias koj muaj Android Device

Mus rau tom khw thiab rub lub beacon scanner app "Kuv siv 2 apps ntawm no thiab qhov no"

yooj yim txuas lub roj teeb rau lub cuab yeej, thiab qhib lub app thiab koj yuav pom cov txiaj ntsig "tshawb xyuas cov duab saum toj no"

yog tias koj muaj IOS ntaus ntawv "iphone/ipad"

qhov zoo tshaj plaws app kuv pom yog Core beacons, rub tawm nws daim ntawv thov khw

lwm app "rau beacons nkaus xwb" yog lub teeb beacon ", tsis yog qhov zoo tab sis kuv siv nws rau qhov kev sim nrawm.

rau IOS cov cuab yeej, yog tias koj siv lub teeb nyem Sib Tw koj yuav tsum ntxiv UUID ua ntej thiab tom qab ntawd txuas rau lub cuab yeej uas tsis ntseeg tau, yog li siv Core beacon hloov chaw

Kauj Ruam 4: Eddystone, Qhia Koj Lub Vev Xaib/cov khoom lag luam/kev pabcuam rau txhua tus

Image
Image
Eddystone, Qhia Koj Lub Vev Xaib/cov khoom/kev pabcuam rau txhua tus
Eddystone, Qhia Koj Lub Vev Xaib/cov khoom/kev pabcuam rau txhua tus
Eddystone, Qhia Koj Lub Vev Xaib/cov khoom/kev pabcuam rau txhua tus
Eddystone, Qhia Koj Lub Vev Xaib/cov khoom/kev pabcuam rau txhua tus

nrog eddystone, koj tuaj yeem xa qhov URL mus rau lub cuab yeej nyob ze thiab coj lawv mus rau koj lub vev xaib lossis nplooj ntawv web lossis txawm tias qhov chaw nyob url… lwm

upload cov cai, koj tuaj yeem rub nws los ntawm github

/********************************************************** ******************** MIT daim ntawv tso cai, txheeb xyuas LICENSE rau cov ntaub ntawv ntau ntxiv Txhua cov ntawv sau saum toj no, thiab lub vijtsam txaws hauv qab no yuav tsum suav nrog hauv kev rov faib dua tshiab

Thawj Txoj Cai coj los ntawm Adafruit Bluefruit Piv txwv

Hloov Kho Los Ntawm: Mohannad Rawashdeh https://mb-raw.blogspot.com/ tus lej no yuav ua haujlwm ntawm Android/ IOS li

Android App lub npe: Beacon scanner

apple app name: core beacons go to beacon app and you will see the device name (ibeacon/Rawashdeh) url: https://mb-raw.blogspot.com Beacon_RSSI -56db; ********************************************************** ****** ****************************** #ncig

// kuv blog url

#define URL "https://mb-raw.blogspot.com" //#define URL "https://www.instructables.com" int Tx_power = 4; int Beacon_RSSI = -56; EddyStoneUrl eddyUrl (Beacon_RSSI, URL);

void teeb tsa ()

{Bluefruit.begin (); Bluefruit.setTxPower (Tx_power); Bluefruit.setName ("Rawashdeh"); Bluefruit. ScanResponse.addName (); Bluefruit. Advertising.setBeacon (eddyUrl); Bluefruit. Advertising.restartOnDisconnect (muaj tseeb); Bluefruit. Advertising.setInterval (320, 320); // hauv chav ntawm 0.625 ms Bluefruit. Advertising.setFastTimeout (15); // tus naj npawb ntawm vib nas this hauv hom nrawm Bluefruit. Advertising.start (0);

}

void lub voj ()

{

}

Yog tias koj muaj lub Android ntaus ntawv Mus rau tom khw thiab rub lub cim teeb tsa lub app "Kuv tau siv 2 apps ntawm no thiab lwm qhov" txuas lub roj teeb tau yooj yim rau lub cuab yeej, thiab qhib lub app thiab koj yuav pom cov txiaj ntsig "txheeb cov duab saum toj no"

yog tias koj muaj IOS ntaus ntawv "iphone/ipad" qhov zoo tshaj plaws app kuv pom yog Core beacons, rub tawm nws daim ntawv thov khw.

koj tuaj yeem pom cov vis dis aus rau kuv qhov kev sim nrawm rau tus lej.

Pom zoo: