Cov txheej txheem:

USB Barcode Scanner (Raspberry Pi): 4 Cov Kauj Ruam
USB Barcode Scanner (Raspberry Pi): 4 Cov Kauj Ruam

Video: USB Barcode Scanner (Raspberry Pi): 4 Cov Kauj Ruam

Video: USB Barcode Scanner (Raspberry Pi): 4 Cov Kauj Ruam
Video: USB Barcode Scanner (Raspberry Pi) 2024, Kaum ib hlis
Anonim
USB Barcode Scanner (Raspberry Pi)
USB Barcode Scanner (Raspberry Pi)

Kev qhia yooj yim ntawm yuav teeb tsa USB barcode scanner nrog Raspberry Pi.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov

RPI 3 -

4 Amp Power Adapter -

16GB micro SD -

USB Barcode Scanner:

Kauj ruam 2: Teeb

Teeb
Teeb

1. Txuas USB Barcode Scanner rau Raspberry Pi

2. Boot Pi thiab qhib davhlau ya nyob twg

Ntaus "sudo raspi-config"

3. Mus rau cov kev xaiv cuam tshuam thiab pab kom "Serial"

4. Txhim kho kev vam khom

Ntaus "pip install applications"

5. Nkag mus rau https://upcdatabase.org/ thiab tsim tus as khauj dawb thiab sau tseg ntawm tus yuam sij api

6. Kho kab 6 ntawm barcode.py thiab sau koj tus lej api

7. Ntaus "sudo nab hab sej barcode.py" los sau tsab ntawv (nias ctrl+c kom tawm tsab ntawv)

Kauj ruam 3: Code

Code
Code

Kev vam khom:

"pip nruab thov"

khiav:

sudo nab hab sej barcode.py

Kauj Ruam 4: Cov Lus Qhia Ntxiv

Image
Image

Phau Ntawv Qhia Hauv Online:

Pom zoo: