***Long post ahead
Sorry for possible English mistakes, it ain't my mother tongue
***
Hi guys, my name's Steve and I'm currently finishing my formation in Tech. EE here in Canada.
**Background info***
I'm currently doing my final project with my partner and we've encountered some problems we can't resolve so I decided to try the forums since I know there are very knowledgeable people here
Our project is a basic liquor inventory system for bars/restaurants. A waitress would take an inventory reading of their bottles (26oz/40oz mainly) of hard alcohol/liquor at the begining of her work shift then take one at the end to know wich quantity of alcohol was sold during the night.
Here's how it should work
First you identify the bottle using a bar-code scanner and some pre-applied bar codes sticker. The data sent by the bar-code scanner (a ps/2 modified cuecat) is sent into the pic (P16F877) who selects the good bottle (we need to do this cause each alcohol has a different volumic mass when weighted). We then drop the bottle on our RS232-enabled scale (Acculab VIR-4KG) wich sends the weight into the pic. This weight is transformed into ounces using a pre-calculated algebric transformation stored inside the pic. The result is then displayed on an alphanumeric LCD.
And now here's the problem
Our knowledge of the RS232 interface is somewhat limited and for various reasons we don't wanna rely too much on our teachers so I'm hoping some people can help us here.
We tried hooking up the bar-code scanner to a logic analyser to see what kind of data stream we always got random strings of data. Were guessing it's because we left the CLK pin floating ... I looked around the net and couldn't find anything about it.
What should I input into this pin? It usually comes from the computer so I'm guessing a square wave signal at a specific frequency?
If anyone has other comments regarding the subject feel free to post
Thanks,
Steve
Hi guys, my name's Steve and I'm currently finishing my formation in Tech. EE here in Canada.
**Background info***
I'm currently doing my final project with my partner and we've encountered some problems we can't resolve so I decided to try the forums since I know there are very knowledgeable people here
Our project is a basic liquor inventory system for bars/restaurants. A waitress would take an inventory reading of their bottles (26oz/40oz mainly) of hard alcohol/liquor at the begining of her work shift then take one at the end to know wich quantity of alcohol was sold during the night.
Here's how it should work
First you identify the bottle using a bar-code scanner and some pre-applied bar codes sticker. The data sent by the bar-code scanner (a ps/2 modified cuecat) is sent into the pic (P16F877) who selects the good bottle (we need to do this cause each alcohol has a different volumic mass when weighted). We then drop the bottle on our RS232-enabled scale (Acculab VIR-4KG) wich sends the weight into the pic. This weight is transformed into ounces using a pre-calculated algebric transformation stored inside the pic. The result is then displayed on an alphanumeric LCD.
And now here's the problem
We tried hooking up the bar-code scanner to a logic analyser to see what kind of data stream we always got random strings of data. Were guessing it's because we left the CLK pin floating ... I looked around the net and couldn't find anything about it.
What should I input into this pin? It usually comes from the computer so I'm guessing a square wave signal at a specific frequency?
If anyone has other comments regarding the subject feel free to post
Thanks,
Steve