Barcode Scanner

Basic tutorial of how to setup a USB barcode scanner with the Raspberry Pi. PARTS: RPI 3 – https://amzn.to/2VA9pQY 4 Amp Power Adapter – https://amzn.to/2CTptWu 16GB micro SD – https://amzn.to/2SFMwd3 USB Barcode Scanner: https://amzn.to/2D8LvVu UPC Database: https://upcdatabase.org/ CODE: ***RUN SCRIPT IN SUDO*** #!/usr/bin/python import sys import requests import json api_key = "" #https://upcdatabase.org/ def barcode_reader(): """Barcode code obtained … Read moreBarcode Scanner