Light ware Sf 30/c give us wrong value using serial communication
Danian
Posts: 2
my Light ware sf 30/c give right value using usb mode after trying serial communication its gives us worng value
Comments
I think other forum members will need a bit more information to help you.
Could you tell us a bit more about your setup (maybe include a photo)?
Also, post some example output data from both usb and serial (maybe between 3 and 5 values from each). Something that demonstrates the problem you see.
In the meantime, have you verified your hardware connections, including pullup or pulldown resistors if required, and that you are using the correct serial baud and protocol (ie. your Arduino matches the type of serial the laser is using, if that's open, true, driven, etc.. Check the datasheet).
Also, is your code able to read the serial data fast enough, without dropping any bits. Check the serial output from the laser with an oscilloscope if you can, to make sure you see the data you are expecting, and then move step-by-step through your hardware and code to figure out where things are going wrong.
That's all I can suggest, but good luck with it. Let us know how it goes, and hopefully your solution will help others too.