I am currently working on a senior design project, we are to build a automated barcode dispenser and applicator. I want to know how I can connect this photo eye senor to the Arduino.
It is a ULINE photo eye senor assembly: it has 3 wires red, green, and black. I have tried red to 5v, black to GND, and green to a digital. I'm not sure what code to use to make it run, or if it even is working right any help would be greatly appreciated.
What I do is find a library for the device, then look at the example sketches in the library.
Sorry if I am being literal, but you want to build a machine to dispense barcodes, and apply them to what?
What do barcodes have to do with a photo eye sensor? Or do you mean a bar code scanner?
Show us the source code you have created so far, use code tags and before copying it do a Tools/Auto Format.
sorry I should have been more clear on the goal. So the barcodes are applied to tires the photo eye sensor is used to determine if a barcode has been peeled off of the dispenser. The sensor will tell a stepper motor to produce another barcode. I'm more worried about the sensor right now I'm not sure if it is even compatible with the Arduino.
I just have this simple line of code to see if it even is registering anything:
void setup(){
pinMode(2,INPUT);
Serial.begin(9600);
}
void loop() {
Serial.print("Sensor");
Serial.println(digitalRead(2));
}
Thanks you!
Are there not some numbers like a model or part or anything beside ULINE, ULINE makes hundreds of stuff. Just type the following into google.
ULINE bar code reader
ULINE photo eye assembly kit, Model NO. H-1276-45105. I found no real information on how it works.
I found some documentation, but there is no indication that it is 'programmable' at all. It is 'hard wired to dispense the next label when the one before is removed. Here are the instructions.
IH-1276-SPFR.pdf (814.4 KB)
BTW, the green wire is Ground, Red and Black are power. It is self contained and has no digital interface.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.