Difference between revisions of "Pico-Barcode-HAT"

From SB-Components Wiki

(Created page with "<div class="row"> <div class="large-8 column"> == Pico Barcode Hat == Barcode HAT for Pico is a robust and compact barcode scanner board that consists of DE2120 scanner mod...")
 
 
(5 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
The design of the barcode HAT makes it simple for the users to explore all the DE2120’s features without having to deal with the complicated wires. Through appropriate drive circuits, a buzzer, a push-button tactile switch, and a status LED scanning to become easier
 
The design of the barcode HAT makes it simple for the users to explore all the DE2120’s features without having to deal with the complicated wires. Through appropriate drive circuits, a buzzer, a push-button tactile switch, and a status LED scanning to become easier
  
=== Features ===
+
== Features ==
 
* 1D/2D/QR Code/Data Matrix/MSI  
 
* 1D/2D/QR Code/Data Matrix/MSI  
 
* Onboard Micro-USB connector for USB HID Interface, Virtual COM Port, Support USB Barcode Information  
 
* Onboard Micro-USB connector for USB HID Interface, Virtual COM Port, Support USB Barcode Information  
Line 12: Line 12:
 
* UPC-A * GS1-128 * Matrix 2-of-5 * Datalogic 2-of-5 * UPC-E * Code 39 * Industrial 2-of-5 * 2D Symbologies    * EAN-8 * Code 93 * Codabar * QR Code * EAN-13 * Code 11 * MSI * Data Matrix * Code 128 * Interleaved 2-of-5 * GS1 DataBar * PDF 417
 
* UPC-A * GS1-128 * Matrix 2-of-5 * Datalogic 2-of-5 * UPC-E * Code 39 * Industrial 2-of-5 * 2D Symbologies    * EAN-8 * Code 93 * Codabar * QR Code * EAN-13 * Code 11 * MSI * Data Matrix * Code 128 * Interleaved 2-of-5 * GS1 DataBar * PDF 417
  
=== Specifications ===
+
== Specifications ==
 
* Operating Voltage - 3.3 V  
 
* Operating Voltage - 3.3 V  
 
* Display - 1.14 Inch LCD  
 
* Display - 1.14 Inch LCD  
Line 23: Line 23:
 
   </div>
 
   </div>
 
</div>
 
</div>
 
  
 
== Installation ==
 
== Installation ==
 +
===Setting up Pico Barcode Hat===
 +
* First you need to change the mode of the Pico Barcode Hat. 
 +
  * Mode is TTL/RS232 (serial communication interface) for this you need to scan below the barcode, Connect USB to pico barcode hat.
 +
[[File:RS232.PNG|400px]]
 +
 
 +
  * Change the baud rate to (9600) for this you need to scan the below barcode by pressing the scan button on the Pico Barcode Hat
 +
[[File:9600.PNG|400px]]
 +
 
 
==== MicroPython ====
 
==== MicroPython ====
 
* Stack Raspberry Pi Pico on the female header of Pico Sense HAT.
 
* Stack Raspberry Pi Pico on the female header of Pico Sense HAT.
Line 31: Line 38:
 
* Choose interpreter as MicroPython (Raspberry Pi Pico).
 
* Choose interpreter as MicroPython (Raspberry Pi Pico).
 
[[File:Thonny-interpreter.PNG|600px]]
 
[[File:Thonny-interpreter.PNG|600px]]
 +
 
 +
* In the folder you see two files one is "st7789.py" and the other is "firmware.uf2"
 +
      * Save the "st7789.py" file in the pico ( this is the LCD library file )
 +
      * For the second file "firmware.uf2" do this, Before raspberry pico connects to the laptop, press the boot button of the pico then connect to the laptop, you see the new device named "RPI-RP2". Drag and drop the "firmware.uf2" file to the RPI-RP2.
  
* Save all the libraries inside the raspberry pi pico.
+
* In the folder you see a file name "Barcode_Scanner_demo.py", run this file, this is demo code. From this code, you easily understand the working of this module. using this basic code you make many applications.
* Rename the pico_sense_hat.py to main.py and save it also inside pico (main.py code automatically run when pico power on).
+
 
 
+
* One of the applications we mention in that folder, the folder name is "smart attendance system". when you open this folder you see three file
'''Files in the folder'''
+
    * employee.py (the file you need to enter the employee name and the barcode of that employee (it is like a database ))
 
+
    * main.py (the file you need to run (this is the main file ))
In the folder, you will see 6 python files
+
    * servo_control.py ( this file controls the servo motor )
* There are 5 libraries in this folder you need to save these libraries in the raspberry pi pico, 4 libraries of sensors, and 1 library of LCD display
+
   
  * sgp40.py  
+
* Save the three files in the pico, "main.py" file is automatically run when you give power to pico
  * sht31.py
 
  * bme280.py
 
  * tcs34725.py
 
  * Lcd1_14driver.py
 
 
* One file is there in the folder which runs the main code (this code display the sensor reading), this code import all the libraries of sensors and LCD display,
 
  * pico_sense_hat.py  
 
 
 
* Download Pico sense hat repository from the below link:
 
Source code: https://github.com/sbcshop/Pico-Barcode-HAT
 
  
 
== Resources ==
 
== Resources ==
 
<b> Github </b>
 
<b> Github </b>
 
* [https://github.com/sbcshop/Pico-Barcode-HAT.git Source Code]
 
* [https://github.com/sbcshop/Pico-Barcode-HAT.git Source Code]

Latest revision as of 10:30, 8 January 2022

Pico Barcode Hat

Barcode HAT for Pico is a robust and compact barcode scanner board that consists of DE2120 scanner module, buzzer, 1.14” LCD screen, micro-USB port. It is designed to scan 20 different barcode symbologies in the segment of both 1D and 2D symbology like barcodes and QR codes. The design of the barcode HAT makes it simple for the users to explore all the DE2120’s features without having to deal with the complicated wires. Through appropriate drive circuits, a buzzer, a push-button tactile switch, and a status LED scanning to become easier

Features

  • 1D/2D/QR Code/Data Matrix/MSI
  • Onboard Micro-USB connector for USB HID Interface, Virtual COM Port, Support USB Barcode Information
  • Transmission Read 20 Different Barcode Symbology
  • UPC-A * GS1-128 * Matrix 2-of-5 * Datalogic 2-of-5 * UPC-E * Code 39 * Industrial 2-of-5 * 2D Symbologies * EAN-8 * Code 93 * Codabar * QR Code * EAN-13 * Code 11 * MSI * Data Matrix * Code 128 * Interleaved 2-of-5 * GS1 DataBar * PDF 417

Specifications

  • Operating Voltage - 3.3 V
  • Display - 1.14 Inch LCD
  • Symbology - 1D and 2D
  • Compatibility - Raspberry Pi Pico
Pico Barcode HAT
Buy it From : Click Here

Installation

Setting up Pico Barcode Hat

  • First you need to change the mode of the Pico Barcode Hat.
 * Mode is TTL/RS232 (serial communication interface) for this you need to scan below the barcode, Connect USB to pico barcode hat.

RS232.PNG

 * Change the baud rate to (9600) for this you need to scan the below barcode by pressing the scan button on the Pico Barcode Hat

9600.PNG

MicroPython

  • Stack Raspberry Pi Pico on the female header of Pico Sense HAT.
  • Connect USB cable on Raspberry Pi Pico USB port.
  • Choose interpreter as MicroPython (Raspberry Pi Pico).

Thonny-interpreter.PNG

  • In the folder you see two files one is "st7789.py" and the other is "firmware.uf2"
     * Save the "st7789.py" file in the pico ( this is the LCD library file )
     * For the second file "firmware.uf2" do this, Before raspberry pico connects to the laptop, press the boot button of the pico then connect to the laptop, you see the new device named "RPI-RP2". Drag and drop the "firmware.uf2" file to the RPI-RP2.
  • In the folder you see a file name "Barcode_Scanner_demo.py", run this file, this is demo code. From this code, you easily understand the working of this module. using this basic code you make many applications.
  • One of the applications we mention in that folder, the folder name is "smart attendance system". when you open this folder you see three file
    * employee.py (the file you need to enter the employee name and the barcode of that employee (it is like a database ))
    * main.py (the file you need to run (this is the main file ))
    * servo_control.py ( this file controls the servo motor )
    
  • Save the three files in the pico, "main.py" file is automatically run when you give power to pico

Resources

Github