Cov txheej txheem:

Automated Bartender: 6 Kauj Ruam
Automated Bartender: 6 Kauj Ruam

Video: Automated Bartender: 6 Kauj Ruam

Video: Automated Bartender: 6 Kauj Ruam
Video: Robot • Mitzvah - Sci-Fi short film made for the 48HFPLA 2024, Hlis ntuj nqeg
Anonim
Tsis siv neeg Bartender
Tsis siv neeg Bartender

Lub hom phiaj ntawm txoj haujlwm no yog ua kom cov txheej txheem ntawm ua/sib xyaw cocktails yooj yim dua los ntawm IoT (Internet ntawm Yam). cov zaub mov txawv cocktail (ib zaug nkag mus) yuav nco qab los ntawm txoj haujlwm. Cov ntim rau cov dej haus tau suav nrog cov ntsuas ntsuas uas ntsuas qhov kub thiab cov ntsiab lus ntawm lub raj mis. Txhua qhov haujlwm yuav raug tswj los ntawm lub vev xaib ntawm smartphone/computer.

Khoom siv

HardWare:

- mdf ntoo ntawv (0, 5cm)

- ntoo ntsia hlau

- 4mm sab hauv txoj kab uas hla

- 4 lub thawv yas

- 40 mm pvc tub

hluav taws xob:

Raspberry Pi 3 - Cov

- 4x ultrasonic sensor (hc-sr04)

- 4x 10k ntc (tsis muaj dej)

- ADC mcp3008

- rfid scanner

- lcd npo

- 4 module relay

- 4 peristaltische pomp

- 12v dc zog adapter

cuab yeej:

- tec7 pob tshab silicon

- tshuab drilling

- 3D tshuab luam ntawv

- sawv

tus nqi ntawm qhov haujlwm yuav nyob ib puag ncig 130 Euro.

Kauj Ruam 1: Kauj Ruam 1: Txuas Hluav Taws Xob

Thaiv:

thaum tsim cov thaiv ntawm tag nrho txoj haujlwm kuv tau txais kev pom zoo siv qee cov xov hlau ntev dua rau lub ntsuas hluav taws xob ultrasonic, qhov laj thawj rau qhov no yog tias lawv xav tau mus txog txhua lub thawv. ua zoo ib yam nrog cov qauv xa tawm sinds qhov no yuav nyob ntawm lwm sab ntawm kev tsim.

Solder lub twj tso kua mis txuas mus rau 12v dc adapter thiab txuas nws mus rau qhov txuas txuas. (daim ntawv lo lub twj tso kua mis kom nws yooj yim dua kom pom lub twj tso kua mis txuas nrog qhov hloov pauv qhov twg, qhov no yuav siv tau tom qab hauv kev tsim)

xaiv tau (qhov no yuav tseg haujlwm thaum tsim tag nrho cov ntaub ntawv):

- koj tuaj yeem sau daim ntawv ntsuas ultrasonic txuas nrog tus lej nrog cov lej hauv qab no

- sau ntc raws li txuas nrog mcp3008

Raspberry Pi (BCM):

GPIO2 (sda1/i2c) ==> relay module 1

GPIO3 (scl1/i2c) ==> relay module 2

GPIO17 ==> txhais ultrasonic 1

GPIO27 ==> ncha ultrasonic 1

GPIO22 ==> txhais ultrasonic 2

SPI_MOSI (GPIO10) ==> mcp3008 (Din) & rfid (MOSI)

SPI_MISO (GPIO9) ==> mcp3008 (Dout) & rfid (MISO)

SPI_SCLK (GPIO11) ==> mcp3008 (CLK) & rfid (CLK)

GPIO5 ==> ncha ultrasonic 2

GPIO6 ==> txhais ultrasonic 2

GPIO13 ==> ncha ultrasonic 3

GPIO19 ==> txhais ultrasonic 4

GPIO26 ==> ncha ultrasonic 4

GPIO14 (uart0_TXD) ==> relay module 3

GPIO15 (uart0_RXD) ==> relay module 4

GPIO23 ==> LCD (D7)

GPIO24 ==> LCD (D6)

GPIO25 ==> rfid (RST)

SPI0_CE0 (GPIO8) ==> rfid (SDA)

SPI0_CE1 (GPIO7) ==> mcp3008 (CS/SHDN)

GPIO12 ==> LCD (D5)

GPIO16 ==> LCD (D4)

GPIO20 ==> LCD (E)

GPIO21 ==> LCD (RS)

Kauj Ruam 2: Kauj Ruam 2: Kho Raspberry Pi

teeb tsa:

txuas tus pi rau koj lub wifi thiab pab kom SPI hauv cov ntawv qhia zaub mov teeb tsa (sudo rasp-config => cuam tshuam kev xaiv => SPI => pab tau)

nruab cov pob hauv qab no:

- Txc522

-RPLCD

- lub hwj

- flask_cors

- flask_socketio

database:

nruab mariadb ntawm raspberry pi.

ua qhov kev sib txuas nyob deb rau ssh nrog mysql workbench.

ntshuam cov ntaub ntawv tus kheej nrog lub hauv paus mus rau raspberrypiand kom ntseeg tau tias tus neeg siv koj muaj txhua txoj cai rau lub database.

txoj haujlwm:

hauv qab ntu no yog rar-file rub tawm nws thiab rho tawm cov ntawv hauv.

cov ntawv sau no muaj cov flask server thiab cov chav kawm tsim nyog rau txoj haujlwm.

hloov cov ntaub ntawv no mus rau raspberry pi, kuv xav kom ua daim ntawv qhia rau koj cov neeg siv hu ua bartender tsis siv neeg, thiab tso cov ntawv ntim rau hauv

ua ntej peb tuaj yeem ua haujlwm qhov program koj yuav tsum qhib lub app.py thiab tshawb rau 'db = DataBase (app, "user", "password", "cocktails_db")'

hloov tus neeg siv thiab tus password rau koj tus mariadb username thiab password

lub vev xaib:

nruab apache2 server rau raspberry pi.

txuas los ntawm filezilla.

rho tawm cov ntawv hauv qab no thiab koj yuav tsum tau hloov qee yam ntxiv, hauv js cov ntaub ntawv muaj 4.js cov ntaub ntawv.

thiab thaum kawg hloov txhua yam mus rau /var /www daim ntawv qhia ntawm raspberry pi nrog filezilla.

Kauj Ruam 3: Kauj Ruam 3: Tsim Rooj Plaub

Kauj Ruam 3: Tsim Rooj Plaub
Kauj Ruam 3: Tsim Rooj Plaub
Kauj Ruam 3: Tsim Rooj Plaub
Kauj Ruam 3: Tsim Rooj Plaub
Kauj Ruam 3: Tsim Rooj Plaub
Kauj Ruam 3: Tsim Rooj Plaub

Cov ntaub ntawv muaj nyob ntawm tus ncej ua los ntawm ntoo thiab tom qab ntawd ntxiv cov ntawv mdf.

Ncej:

nrog 2x1 ntoo ntoo koj yuav tsum tau pom lawv kom raug qhov loj me.

- 6 x 20 cm ib

3 x49cm

- Luas 2 x 15 cm

sab nraum qab (thav duab):

coj 2 daim ntawm 50cm ntoo kab txaij thiab 2 daim ntawm 25cm

thiab ua ib lub duab plaub yooj yim. (yees duab)

pem hauv ntej (thav duab):

coj dab tsi sab laug ntawm ntoo, uas yuav tsum yog 4 daim 25cm, 1 piec ntawm 50cm thiab 2 daim ntawm 17, 5cm

thiab npaj lawv zoo li daim duab hauv qab no.

Rooj plaub:

nrog 0, 5cm mdf nplooj ntawv txiav cov hauv qab no:

rooj plaub loj:

- 1x 51x36cm (sab saum toj)

- 1x 50x35cm (hauv qab)

- 2x 50x23, 5cm (pem hauv ntej & nram qab)

- 2x 35, 5x23, 5cm (sab vaj huam sib luag)

khawb:

-1 x 19,5 x 19 cm

-3 x 10 x 19 ซม

1. coj 50x36cm rau hauv qab thiab peb yuav muab nraub qaum thiab sab xub ntiag ntawm tus ncej rau nws.

2. (yog vim li cas peb tsis tau ua cov phiaj ntoo rau lub thav duab yog kom muaj chaw seem hauv qhov haujlwm).

3. tam sim no lob pem hauv ntej vaj huam sib luag vaj huam sib luag thiab peb yuav xav tau ua ib qho indent thiab lub qhov nyob rau sab saum toj sab laug rau lub lcd zaub.

khawb:

- rau qhov kev nkag mus thawj zaug koj yuav tsum tau tshem tawm ib lub duab plaub los ntawm lub vaj huam sib luag pem hauv ntej uas yog 18cm siab los ntawm 19 cm

- tom qab ntawd lob koj 4 daim rau qhov khawb thiab lo lawv ua ke nrog qee cov kua nplaum ntoo tso rau hauv rooj plaub.

19, 5x19cm yog lub vaj huam sib luag rov qab rau qhov indent.

lcd zaub qhov:

- nyob rau sab laug saum toj ntawm lub vaj huam sib luag pem hauv ntej koj yuav tsum ua lub qhov uas yog 7cm hauv qhov ntev los ntawm 2, 5cm hauv qhov dav

Kauj Ruam 4: Kauj Ruam 4: Ua Cov Thawv

Kauj Ruam 4: Ua Cov Thawv
Kauj Ruam 4: Ua Cov Thawv
Kauj Ruam 4: Ua Cov Thawv
Kauj Ruam 4: Ua Cov Thawv

lub hau thiab lub ntim nws tus kheej yuav tsum tau hloov kho, lub ntim xav tau lub qhov nkag mus rau hauv lub raj rau tso dej rau nws tus kheej thiab lub qhov rau qhov ntsuas kub ntsuas lub hau xav tau 3 qhov 1 rau nchuav cov dej haus thiab lwm 2 rau lub ntsuas cua ultrasonic hauv txhua lub thawv.

thawv hau:

- Dril 1 qhov ntawm 4, 5cm nyob rau sab saum toj ntawm lub hau

- ntawm sab hauv qab 2 qhov ntawm 1, 6cm nrog 0, 8cm nyob nruab nrab

ntim nws tus kheej:

- koj yuav xav tau laum 2 qhov nyob hauv qab ntawm lub ntim nws tus kheej ntawm ob sab ntawm lub thawv (sab luv)

- 1 ntawm 2 qhov xav tau nyob ib puag ncig 1, 5 cm tawm hauv qab vim tias sab nraub qaum ntawm tus ncej, lwm qhov yuav tsum qis rau hauv qab.

Kauj Ruam 5: Kauj Ruam 5: Sib Sau Cov Khoom Siv Hluav Taws Xob

Kauj Ruam 5: Kev Siv Hluav Taws Xob
Kauj Ruam 5: Kev Siv Hluav Taws Xob
Kauj Ruam 5: Kev Siv Hluav Taws Xob
Kauj Ruam 5: Kev Siv Hluav Taws Xob
Kauj Ruam 5: Kev Siv Hluav Taws Xob
Kauj Ruam 5: Kev Siv Hluav Taws Xob

1. ua ntej ntawm peb yuav pib bij lo lub khob cij rau sab laug raws li pom los ntawm sab xub ntiag.

2. tom ntej no sim thiab tso lub lcd tsis pub dhau lub saw duab plaub nyob rau sab xub ntiag qhov no yuav tsum nruj txaus kom haum los ntawm nws tus kheej. tab sis koj tuaj yeem siv cov ntsia hlau yog tias koj xav tau

3. Txoj cai hauv qab lub lcd koj yuav tsum tau ntsia hlau/kab xev rfid scanner nyob rau hauv qhov chaw. (Ob leeg yuav ua haujlwm)

4. Ntawm sab xis peb yuav tso tus neeg xa khoom raws li pom hauv daim duab thiab ntsia lub twj tso kua mis ntawm sab xis, nrog cov xov txuas rau raspberry pi hla hla qhov nkag mus rau sab xub ntiag.

5. Tam sim no koj yuav xav tau lub taub ntim nrog lub qhov qis tshaj tig rau sab hauv thiab ntxig qhov ntsuas kub raws li tus lej nrog lub raj mis naj npawb 1 pib ntawm sab laug mus rau sab xis. lub qhov nrog cov ntsuas kub xav tau yuav tsum tsis muaj dej yog li lo nrog tec7.

6. ntxig cov raj rau ntawm lwm sab thiab ntsuas qhov ntsuas qhov ntev uas xav tau kom mus rau lub twj thiab txiav lawv. nco ntsoov lo rau qhov no.

7. lub sijhawm no peb tuaj yeem ntxig lub ntsuas hluav taws xob ultrasonic thiab pvc raj rau hauv qhov sib xws tsis muaj kua nplaum xav tau lawv yuav tsum haum zoo heev.

Kauj Ruam 6: Kauj Ruam 6: Ua Kom tiav

- tau txais 2 lub zog hloov pauv sab nraub qaum thiab ntsia hlau rau sab nraub qaum.

- Ntsia lub hau kaw ntawm lub pvc tubing tso rau sab saum toj ntawm rooj plaub nws tus kheej koj tuaj yeem ntsia hlau nws yog tias koj xav tau, tab sis kuv tsis nyiam sinds Kuv tuaj yeem nkag mus rau qhov ntawd tom qab nws ua.

Txoj haujlwm tau ua tiav tam sim no, koj tuaj yeem kho txawm li cas los xij koj xav tau.

Pom zoo: