Hi all,
I've seem to hit a wall recently.
My original plan was to use a legacy Campbell Scientific data logger (CR10X or CR23X) with an Arduino to push data to a database on my web server. The data logger outputs TTL ASCII serial strings to the Arduino which would in theory be able to parse the data and upload the values. That would make for a simple way to publish my data online without the need for expensive hardware/software.
The problem I am running into is with the input string resolution. When doing diagnostics to originally getting the two to communicate, I used HyperTerminal to make sure the CSI logger was actually outputting data. I found the string the logger output was formatted as "+0000.00" with space delimiters. I got the Arduino to receive the data but it seems as though it truncates the number past the tenths decimal place. Instead of "1001.84" it'll read "1001.80".
Ideally I would like the Arduino to read a string of several numbers, totalling around 60 characters.
Am I doing something wrong? Is this a limitation with the Arduino? I tried float and double to no avail. Should I look into something more robust?
Any feedback is appreciated
Cheers