UPC Barcode Recycling Scanner




In many cases people want to recycle, but they don't know if the item is recyclable or not.

Our Recycling Scanner scans the UPC barcode and immediately gives the answer:

- Green light - RECYCLE

- Red light - TRASH

- Both red and green - UKNOWN (follow traditional recycling rules)

See demo at:

Parts list

(1) Arduino board (e.g. Arduino Uno)

(1) PS/2 barcode scanner (e.g. http://www.adafruit.com/products/1202)

(1) 5V Reed Relay (e.g. https://aerobasegroup.com/part-number/HE421A5623)

(1) 10KOhms Resistor

(2) 1KOhms Resistor

(1) 2N2222 Transistor

(1) Power source with USB output (e.g.http://www.amazon.com/Estone-Battery-Portable-Emer...


(1) Casing/box

(1) USB cable


1. Follow RecycleBarcodeScanner.pdf to connect parts together

2. Upload RecyScan.ino to Arduino board

3. Power up the scanner

4. Start scanning!

5. You can modify RecyScan.ino to add more green (recyclable) / red (trash) bar code

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    7 Discussions


    Question 3 months ago

    hello there, i try to build up this project i tried the code it compiles perfectly after put on my own barcode but, whenever i scan a code, it sacnned but the red or green led seem not giving a signal can you explain to me why. are there a mising code?


    3 years ago

    hai.. I really impressed with this project, I try to goggle for the ps/2 but I could not found it. can u give me the link to buy the ps/2


    3 years ago

    Hello ,

    My name is Barış , I am from Turkey

    I m really impressed about your project and I want to do similar one but I m so rookie about pic programming.

    I would like to do when the servo motor change the direction according to barcode scanner read.

    Could you please show me the source about this project?

    2 replies

    Reply 3 years ago

    Hi Baris, thanks for your interest!

    You can download the source code for our scanner above (see RecyScan.ino file).

    Let me know if you plan to use Arduino board - I can assist you to modify the code to control servo.



    Reply 3 years ago

    Hello Vlad ,

    I would like to run the barcode scanner depends on photocell sensor .

    when the sensor detect some object barcode scanner activate and read the object.

    Can you help me ? Do you have source of the codes like this project?