Skip to content

Mistakes in Arduino example #1

@Alexey-Danilchenko

Description

@Alexey-Danilchenko

Hi,

The Arduino example you have (arduino_csv_example.ino) seem to have a few mistakes.

Line 76: int numIntegrationBlocks = (intTime * 1000) / blockTime;
Here the numIntegrationBlocks will overflow as on Uno it will not fit in 15 bit signed integer and the following loop never executes

Line 49: int read_time = 35; // Amount of time that the analogRead() procedure takes (in microseconds)
The comment at line 130 is actually more correct - on Uno analogRead() will take 111 microseconds (according to http://meettechniek.info/embedded/arduino-analog.html). In any case what the read_time is set to seems to be quite a way off.

Could you please correct them since the project is shared publically?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions