Okay guys here is a brief update:
1- Handshake protocol is one of the difficult thing as the Picture converted into every type of EXTENDED CHARACTERS. So making protocol was a bit difficult task however the software is now working great:
Protocol is like:
XYZ%
= Start of byte
XYZ = three bytes i.e. 8x3= Solenoid valves
% = end of byte and send to shift register
We have all sort of ASCII characters incoming in serial port from VisualBasic to Arduino. We have to make a protocol so that we know that the bytes that are coming having START OF LINE > and END OF LINE% character as per protocol defined above. We have to precisely pick the two bytes between > and %. for example
Lets see a simple protocol:
XX%
Now there is a chance we get the data like:
%% or
%>%
or
a%%
or any combination.
but we have to pick the two middle values.. and we know its a serial data, some time computer through garbage values especially when the device is connecting or very fast data..and the data is coming like >>>%>aa%>we%%%%.......
However, the above job was done proffessionally Took lot of coffee and few nights..
2- Prepared the electronics and tested with the software and its performing brilliantly.
3- One of my friend sent me the waterfall pre-fabricated and now its in washroom for test purpose. it has 8 valves only will be very less resolution but i hope this time we will succeed.