I'm just wondering is it possible to scan and store a randomly generated barcode on an Arduino, initialize it as an integer and then later on when the barcode is scanned, it will identify it as said integer? If not a barcode then maybe a qr code? I'd like to create several different unique codes.
I'm willing to use any arduino and/or buy some form of additional hardware or storage.
Sorry if the question is hard to understand, it's my first time posting !
I'm just wondering is it possible to scan and store a randomly generated barcode on an Arduino, initialize it as an integer and then later on when the barcode is scanned, it will identify it as said integer? If not a barcode then maybe a qr code? I'd like to create several different unique codes.
I'm willing to use any arduino and/or buy some form of additional hardware or storage.
Sorry if the question is hard to understand, it's my first time posting !
Well I'm looking to maybe make a machine that sorts paper documents at the touch of a button. So press a button and it fetches a piece of paper from a bundle of pages and presents it to the user. Now the mechanics and motor usage I'm ok with but I need to scan a barcode that's printed on the page so that it's registered in the Arduino's memory. Then when the barcode is re scanned, the Arduino will recognise it. I hope that's an adequate example, it's a brief idea I have for a college project!
ShaneReno:
Well I'm looking to maybe make a machine that sorts paper documents at the touch of a button. So press a button and it fetches a piece of paper from a bundle of pages and presents it to the user. Now the mechanics and motor usage I'm ok with but I need to scan a barcode that's printed on the page so that it's registered in the Arduino's memory. Then when the barcode is re scanned, the Arduino will recognise it. I hope that's an adequate example, it's a brief idea I have for a college project!
Sorry, I should have asked for examples of what the barcode reader will read and the integer you want to associate it with. Barcodes can be various formats.
Paul_KD7HB:
Sorry, I should have asked for examples of what the barcode reader will read and the integer you want to associate it with. Barcodes can be various formats.
Paul
That's ok, well any barcode that I can generate online and stick it on each page, for eg. A 1-D, EAN 13 barcode? I want to associate a barcode with a string actually (for example "Page 1"). I'm still exploring options though so anything that's possible I'm willing to try!
ShaneReno:
I need to scan a barcode that's printed on the page so that it's registered in the Arduino's memory.
I realise your thoughts are still at the "hmmm I wonder" stage, but I'm not clear what you want to do.
Sounds like:
You pre-print a bunch of unique bar code labels
One label is stuck on each sheet to uniquely define that sheet
You scan the batch of sheets in and those sheets are registered
The user somehow enters the code for the required sheet
The mechanism runs through the batch, reading the codes
... and spits out the requested sheet
If that's correct, what's the point of registering the sheets? It will in any case need to read the codes on retrieval to ensure it has the right sheet, even if it knows the one it needs is the 15th from the top.
I've never used a barcode scanner on an Arduino, but all the ones I ever used were intelligent, that is, they recognise the code's symbology and simply spit out the content. So presumably (and assuming a scanner can be connected to Arduino) it would be a simple matter of comparing the user-entered "target" value to the barcode scanner's "actual" value until a match is found or the end of the pack is reached.
Code39 might do the trick: an proprietary printer would I'm sure just be able to spit out a label from a typed in number.
ShaneReno:
Now the mechanics and motor usage I'm ok with
You sure about that? I have a feeling that reliably riffling through a stack of sheets ensuring they feed one at a time and then shooting out the right one from the middle of the stack, even at low speeds, may be more complicated than you imagine. (Or have you built your mechanism already?)
Actually this is a fascinating mechatronics type project and I hope, once you straighten your thoughts out, it turns into something.