Cov txheej txheem:

Npib-O-Matic Token Dispenser: 11 Kauj Ruam
Npib-O-Matic Token Dispenser: 11 Kauj Ruam

Video: Npib-O-Matic Token Dispenser: 11 Kauj Ruam

Video: Npib-O-Matic Token Dispenser: 11 Kauj Ruam
Video: Txom nyem vim kev vum loj 7/18/2018 2024, Hlis ntuj nqeg
Anonim
Image
Image

Ntawm peb lub chaw haujlwm peb muaj lub tshuab muag khoom uas tuaj yeem siv nyiaj tiag lossis tokens. Kev tswj hwm txiav txim siab tias peb tuaj yeem tau txais qee yam khoom qab zib dawb (hauv qhov txwv) kom peb zoo siab thiab txaus siab nrog cov nyiaj hli qis uas peb tau txais. Qhov teeb meem yog, koj yuav tswj qhov ntawd li cas? Lub tshuab muag khoom yog rau ib lub tuam txhab sab nrauv, yog li kev hloov kho rau lub tshuab muag khoom tsis muaj lus nug.

Nkag mus rau Frankenstein Npib-O-Matic, kev tsim ntawm kuv lub siab mob. Txiav txim siab yuav ua li cas no, Kuv xav tias RFID cov cim npe yuav yog qhov zoo tshaj plaws, muab rau txhua tus neeg ua haujlwm daim npav RFID thiab khaws cov ntaub ntawv ntau npaum li cas lub sijhawm RFID lossis tau swiped. Thaum daim ntawv tau swiped, tus cim npe tau faib rau siv nrog lub tshuab muag khoom (ib lub qhov cua dawb). Txhua lub sijhawm TAG tau swiped, sau cov ntaub ntawv ntawm daim npav SD. TAG tus lej tseem raug xa mus rau "huab" siv LoraWAN. Kuv twb tau ua si nrog LoRaWAN thiab thethingsnetwork (TTN) nrog qee qhov ntsuas kub thiab av noo, yog li peb muaj TTN Gateway. Lub TTN Gateway yog Raspberry PI 3 nrog IMST cov neeg mloog txuas nrog TTN.

Kauj Ruam 1: Nqi Khoom

  1. Qee qhov 3mm Perspex
  2. Qee qhov 1mm Perspex
  3. Arduino Mega Cov
  4. Arduino Pro Mini
  5. Xov tooj cua RFM95 Lora
  6. Me RTC DS1307 Lub Sijhawm Tiag I2C Module
  7. Cov duab xim 2.2 "TFT LCD 240x320 ILI9341
  8. 2 x 4 Channel Bidirectional Level Converters
  9. NeoPixel Nplhaib 24 - RGB LED WS2812
  10. RFID Starter Kit 13.56MHz
  11. ESP8266 ESP12 Test Board WiFi Module
  12. SD Card Module
  13. 5 x Laub khawm
  14. 2 x Tri-xim LED
  15. Qhov ntau thiab tsawg ntawm cov kab sib txuas
  16. Muaj ntau ntawm breadboard jumpers
  17. 40mm x 40mm ntoo
  18. 2 Channel 5V Relay Module 10 AMP
  19. 5VDC Infrared Lub Teeb Beam Photoelectric Sensor Module

Kauj Ruam 2: Pib Tsim Lub Hauv Paus Ntoo thiab Perpex

Pib Tsim Lub Hauv Paus Ntawm Ntoo thiab Perpex
Pib Tsim Lub Hauv Paus Ntawm Ntoo thiab Perpex

Pib nrog tsim lub thawv rau tsev tag nrho cov khoom siv hluav taws xob los ntawm 3mm Perspex, Perspex thiab logo tau txiav siv lub tshuab CNC. Lub hau ntej ntawm lub npov yog lub vijtsam, cov nyees khawm thiab qee lub teeb ci ci. Cov LEDs yog ib txwm muaj peb-xim LEDs uas hloov pauv txawm tias cov xim, saib BOM

Tom qab ntawd kuv siv qee qhov 40mm x40mm ntoo thaiv los tsim qhov chaw rau lub npib dispenser thiab chute rau lub token kom poob rau hauv. Lub token dispenser suav nrog 3 Perspex round daim hlau, sab saum toj thiab hauv qab ib qho yog 3mm Perspex thiab ib nrab uas nqa tus cim npe yog 1mm Perspex. Txoj hauv kev nws ua haujlwm yog tias daim phaj nruab nrab tig thiab tuav tus cim cim los ntawm cov pawg thiab rub nws mus rau lub qhov hauv qab phaj thiab cov token poob rau hauv token chute rau hauv grubby tos ob txhais tes ntawm qee tus neeg ua haujlwm tshaib plab.

Lub token stacker yog lub raj xa dej qub uas kuv tau tso puag ncig thiab txoj kab uas hla tau zoo ib yam li cov tokens. Kuv tau nqus qee qhov hauv lub raj xa dej kom koj tuaj yeem pom pes tsawg tokens tau teeb rau txhawm rau txhawm rau yog tias xav tau. Lub raj xa dej tau txhaws rau sab saum toj phaj Perspex.

Kauj ruam 3: Lub Token Dispenser

Lub Token Dispenser
Lub Token Dispenser
Lub Token Dispenser
Lub Token Dispenser
Lub Token Dispenser
Lub Token Dispenser

Lub cav tsav lub phaj nruab nrab yog 220V AC synchronous lub cev los ntawm…. Kuv tsis muaj lub tswv yim, pom nws hauv kuv lub thawv khoom, tsuav nws qeeb thiab muaj zog. Lub taub hau tau lo rau nruab nrab phaj nrog qee cov kua nplaum epoxy hu ua Pratex. Cov qauv xa tawm tau tshwm sim thiab cov xaim hluav taws xob txuas nrog ua kom lub cav khiav. Kuv drilled qee qhov hauv qab phaj los tiv thaiv kev sib txhuam, yog tias nws ua qhov sib txawv, Kuv tsis paub. 2 qhov raug txiav ntawm ob sab ntawm phaj nruab nrab kom "tuav" cov cim. Txoj kab uas hla ntawm lub qhov tsuas yog me ntsis loj dua txoj kab uas hla ntawm tokens, yog li ntawd muaj qee qhov npoo rau qhov yuam kev thaum thawb lub tokens.

Kauj Ruam 4: Txheeb Xyuas Yog tias Tus Nqi Token raug xa tawm

Txheeb Xyuas Yog tias Lub Token raug xa tawm
Txheeb Xyuas Yog tias Lub Token raug xa tawm
Txheeb Xyuas Yog tias Tus Nqi Token raug xa tawm
Txheeb Xyuas Yog tias Tus Nqi Token raug xa tawm

Kuv siv Photoelectric Sensor Module rau qhov no, peb tsis xav kom tshem tawm ib tus neeg ua haujlwm, yog tias nws/nws tsis tau txais tus cim tom qab luam theej duab. tam sim no peb yuav?. Cov ntaub ntawv tsuas yog sau rau SD daim npav, thaum kev txheeb xyuas ntawm tus lej cim tau ua tiav, yog tias tsis pom tus cim cim, cov zaub nkag mus rau qhov npau taws, liam qhov kev pabcuam hauv tuam txhab thiab qhov kev pabcuam nqus.. Tsis muaj cov ntaub ntawv sau hauv rooj plaub uas tsis muaj tokens los faib. Kuv glued tus yees duab transistor mus rau hauv qab ntawm lub chute kom lub token yuav tsoo lub nqaj thaum nws hla hla nqaj

Kauj ruam 5: Electronics

Electronics
Electronics

Arduino Mega-Qhov no yog lub hlwb ntawm Npib-o-Matic, txhua lub ntsuas thiab lwm yam txuas nrog rau Mega

Arduino Pro Mini thiab RFM95 Lora Xov Tooj Cua - Arduino Pro Mini thiab Arduino Mega tau txuas nrog ib leeg dhau ntawm lub npav npav, thaum daim npav raug txheeb xyuas, tus lej lej raug xa ntawm lub npav loj ntawm Mega mus rau Pro Mini. Tus Pro Mini nyob hauv lub voj txhua lub sijhawm, sai li sai tau qee yam tau txais ntawm Pro Mini lub npav loj, tus lej cim npe tau xa mus rau thethingsnetwork (TTN) siv LoraWan. Kuv tsis tau ua tiav kev koom ua ke ntawm qhov ntawd, tab sis txoj kev npaj yuav muaj AWS piv txwv los khaws thiab txheeb cov ntaub ntawv. Saib cov kauj ruam tom ntej kom paub ntau ntxiv.

Me me RTC DS1307 Lub Sij Hawm Tiag Sijhawm I2C Module-Thaum Npib-O-Matic khau raj, nws yuav nkag mus rau WiFi network thiab tau txais lub sijhawm los ntawm NTP server ntawm ESP8266 ESP12 Test Board WiFi Module thiab tom qab teeb tsa RTC sijhawm raws li

Cov duab xim 2.2 TFT LCD 240x320 ILI93412 - Cov zaub tseem ceeb, nws ib txwm pom lub moos thiab yuav muab qee lo lus ntawm kev xav rau tus neeg siv

4 Channel Bidirectional Level Converters - Raws li Mega's digital pins yog 5V, Kuv xav tau cov hloov pauv los sib txuas lus ntawm qib nyab xeeb rau qee qhov qauv

NeoPixel Ring 24 RGB LED WS2812 - Ua rau qee lub teeb kom daze thiab ua rau cov neeg siv tsis meej pem

RFID Starter Kit 13.56MHz - Tus nyeem ntawv RFID

SD Card Module - Sau tus lej cim, hnub tim thiab sijhawm rau txhua daim los so

Laub khawm - Tus thawj tswj hwm uas muaj tus tswv cim, yuav thauj khoom cim npe tshiab thiab kuv siv ib lub nyees khawm los ncua cov zaub kom txog thaum lawv tuaj yeem theej tus lej cim npe thiab sau cia leej twg muaj daim ntawv cim npe. Lwm 4 khawm tau txuas tab sis tsis tau siv nyob rau lub sijhawm no

Tri -xim LED - Ntau lub teeb kom daze thiab ua rau cov neeg siv tsis meej pem

Ntau thiab ntau qhov kev sib txuas cable - Sim thiab tau txais qee qhov kev xaj rau txhua lub xov hlau

Muaj ntau lub khob cij zaub mov dhia - Hlau cov khoom tuaj

2 Channel 5V Relay Module 10 AMP 5VDC - Ib qho kev xa tawm tau siv los txhawb lub zog ntawm lub tshuab xa nyiaj npib thiab lwm qhov los txhawb ESP8266 tus qauv, ESP8266 qhov program yog nyob hauv lub voj ib yam nkaus, sai li sai tau nws tau txais lub zog, nws yuav nkag mus rau WiFi network thiab ua kom tau NTP lub sijhawm hu. Txhawm rau txo qis NTP lub sijhawm hu, Kuv txiav txim siab ua lub zog nrog kev xa rov qab, IE qhib qhov txuas, qhib ESP module, ESP module tau txais lub sijhawm thiab txuas lub zog module rov qab dua … Thiab nws ua suab zoo ib yam thiab

Infrared Lub Teeb Beam Photoelectric Sensor Module - Txheeb xyuas yog tias tus lej cim tau raug xa tawm

Kauj Ruam 6: LoRaWAN Sensor Board

LoRaWAN Sensor Board
LoRaWAN Sensor Board

Eagle tsim cov ntaub ntawv txuas nrog, pawg thawj coj yog kuv ua, tab sis kuv siv lub tuam txhab los tsim lub rooj tsavxwm nws tus kheej. Lub rooj tsavxwm no tuaj yeem siv ua LoRAWAN lub rooj tsavxwm ib yam nkaus, nws yog qhov tsawg heev, ~ 37mm x 54mm, nws ua haujlwm rau DHT 22 lossis DHT 11 Kub thiab Vaum Sensor zoo li.

Kauj Ruam 7: TTN - Cov Khoom Network

TTN - Cov Khoom Network
TTN - Cov Khoom Network

Muaj ntau cov ntaub ntawv ntawm qhov no ntawm

www.thethingsnetwork.org/

Yeej, Npib-O-Matic tham ntawm LoraWAN (Arduino Pro Mini nrog lub xov tooj cua RFM95) mus rau lub qhov rooj (Raspberry Pi nrog IMST tus mloog) uas txuas nrog TTN hauv internet, los ntawm TTN koj tuaj yeem ua ntau qhov kev sib koom ua ke, IE Swagger, AWS, http thiab lwm yam, daim duab saum toj no qhia qee qhov swipes ntawm cov cim npe hauv chaw ua haujlwm

Kauj ruam 8: Software

Lub software tau muab faib ua 3 ntu

getNTPtime_instructables - ESP8266 program, koj yuav tsum hloov ssid, password thiab ntpServerName ua ntej rub tawm. Kuv siv FTDI cov programmer yooj yim, txuas hauv av, TX thiab RX. Nco ntsoov xaiv ESP module hauv Arduino IDE thiab txheeb tawm cov pins ntawm ESP kom muab tso rau hauv hom phiaj ua haujlwm

Npib-O-Matic_instructables-Npib-O-Matic txoj haujlwm. Qhov no tau thauj khoom ntawm Arduino Mega, kev hloov pauv xav tau ntawm no yog Tus Thawj Tus lej -

byte masterCard [cardSize] = {121, 178, 151, 26};

pro_mini_instructables - LoRaWAN txoj haujlwm. Qhov no tau ntim rau ntawm Pro Mini, saib cov txheej txheem kom paub ntau ntxiv txog yuav ua li cas xaim xov tooj cua thiab siv tus lej PIN twg. Qhov Chaw Nyob, Ntaus Tus Kheej Network thiab Lub Sijhawm Sib Ntsib App yuav tsum raug hloov tom qab kev tso npe ntaus ntawv tau ua tiav ntawm TTN, yog tias koj yuav siv ABP

zoo li qub PROGMEM u1_t NWKSKEY [16] = {}; s]

zoo li qub u1_t PROGMEM APPSKEY [16] = {};

zoo li qub u4_t DEVADDR = 0x; // <- Hloov qhov chaw nyob no rau txhua qhov!

Kauj ruam 9: Boot Up

Cov vis dis aus qhia qhov txuas txuas tau qhib (txuas 1), ESP8266 tus qauv nkag mus rau WiFi Network, xa lub cim teeb liab getNTP thiab tau txais lub sijhawm los ntawm NTP server, tom qab lub sijhawm tau hloov kho tshiab, kev xa tawm tsis ua haujlwm thiab tshem lub zog rau ESP8266. Yog tias muaj qee yam tsis raug thiab tsis muaj lub sijhawm hloov pauv tau zoo, Arduino Mega rov pib dua thiab sim dua. ESP8266 module thiab Arduino Mega txuas nrog ib leeg dhau ntawm cov chaw nres nkoj (Serial2 ntawm Mega), Arduino Mega mloog rau cov lus teb los ntawm ESP8266, cov lus zoo li no "UNX [thiab lub sijhawm lub sijhawm stamp]", Kuv nyob hauv GMT+2, yog li hauv Arduino Mega code, kuv ntxiv GMT+2 raws li hauv qab no

time_t gmtTimeVar = newTimeVar+7200;

rtc.adjust (DateTime (gmtTimeVar));

Kauj Ruam 10: Ntxiv/tshem tawm Cov Ntawv

Image
Image

Tus Thawj Xibfwb tau luam theej duab thiab cov duab qhia tias qhov no yog tus tswv cim. Cov ntawv tshiab tau raug tshuaj xyuas thiab tus lej cim npe tau tshwm ntawm qhov screen thiab nws muab sijhawm rau tus neeg siv los txo tus lej thiab sau tseg leej twg muaj daim ntawv tshiab. Tus lej cim npe yuav raug sau rau lub chaw khaws ntaub ntawv sai li sai tau thaum tus neeg siv nias lub pob sab laug. Cov txheej txheem zoo ib yam yog ua raws kom tshem tawm cov cim npe los ntawm cov ntaub ntawv khaws tseg

Kauj Ruam 11: Qee Cov Yeeb Yaj Kiab Qhia Txog Kev Ua Haujlwm ntawm Npib-O-Matic

Kuv siv node-liab los koom ua ke nrog Telegram, node-red muaj kev sib koom ua ke rau TTN, yog li yuav muaj dab tsi tshwm sim thaum koj luam theej duab?

  • Tag yog scanned
  • txt cov ntaub ntawv ntawm SD daim npav tau nyeem kom pom tias nws yog daim ntawv siv tau
  • Yog tias daim ntawv siv tau, lub sijhawm thwj cim nrog tus lej cim tau sau rau hauv txt cov ntawv hauv SD card
  • Tus lej lej yog xa los ntawm LoRaWAN thiab Raspberry PI Gateway mus rau TTN network
  • Node-red sau npe mus rau MQTT cov lus ntawm TTN network
  • Node-Red xa cov cim HEX rau DEC lossis tus lej rau bash tsab ntawv ua haujlwm ntawm tus neeg rau zaub mov hauv zos
  • Tsab ntawv bash scans cov ntaub ntawv txt nrog TAG NUMBERS thiab NAMES
  • Cov ntawv sau bash xa cov lus mus rau Telegram BOT nrog cov lus uas muaj TAG TAG thiab tus neeg lub npe

Zoo thiab nyuaj, Kuv nyiam li cas txoj haujlwm yooj yim dhau los ua qhov nyuaj

Qhia rau kuv paub koj xav li cas hauv cov lus hauv qab no

Pom zoo: