Multiple colorpal sensors + issues with serial receiving
lwcyb
Posts: 13
Hello,
I have an issue with communication from 4 colorpals interfaced to a basic stamp 2. I am using a VB.net based GUI to send and receive communication. I am displaying the RGB values on the GUI. Sometimes, it works great, and all 4 sensor RGB values are displayed correctly on the GUI. However, there are also times where I receive 0's, random single, double, triple, or even 4 digit values that do not correspond to the given color (as an example, I can get 0's, or 7's, or 3000+ on a white sheet, while other sensors are reading correctly around 255).
The issue seems to start depending on the first connection. If the first couple sets of data are good then the RGB values never seem to go wrong. If I connect and the RGBs are off, they are always off until I disconnect. They might fluctuate and a correct looking number may show up once in a while, but they are screwed up most of the time. Also, it is possible to disconnect and reconnect and have the values showing up perfectly normal. So, to me it seems as if there is some timing issue.
I've tried changing the delays within the Pbasic program to no avail. I have the serial port settings in vb.net set to 9600, 8 bit, no parity, 1 stop bit.
Would anyone have any insight into this issue?
Thanks
I have an issue with communication from 4 colorpals interfaced to a basic stamp 2. I am using a VB.net based GUI to send and receive communication. I am displaying the RGB values on the GUI. Sometimes, it works great, and all 4 sensor RGB values are displayed correctly on the GUI. However, there are also times where I receive 0's, random single, double, triple, or even 4 digit values that do not correspond to the given color (as an example, I can get 0's, or 7's, or 3000+ on a white sheet, while other sensors are reading correctly around 255).
The issue seems to start depending on the first connection. If the first couple sets of data are good then the RGB values never seem to go wrong. If I connect and the RGBs are off, they are always off until I disconnect. They might fluctuate and a correct looking number may show up once in a while, but they are screwed up most of the time. Also, it is possible to disconnect and reconnect and have the values showing up perfectly normal. So, to me it seems as if there is some timing issue.
I've tried changing the delays within the Pbasic program to no avail. I have the serial port settings in vb.net set to 9600, 8 bit, no parity, 1 stop bit.
Would anyone have any insight into this issue?
Thanks
Comments
-Phil
-Phil