Hi there, should I avoid this combination? I mean the encoder use interruptions, and the GPS is spawning data all the time. Will I loose GPS data this way?
Maybe.
Depends on the details of the project probably.
If the encoder is on a motor and the GPS is using software serial, then I would expect problems.
To be accurate and responsive the motor encoder will need one interrupt, at least. Software serial disables interrupts rather often while it reads serial data.
If the encoder is turned by hand and using a decent library (or code anyway) and the GPS uses hardware serial or another interface like I2C or SPI then I would expect little if any trouble.
What parts are you using?
Hey groundFungus
Thanks, the parts are pretty much what you described. The GPS is Grove GPS Air 530, that use serial to spawn data, the encoder is LPD3806. The encoder will need to update at least once per second, which is not very often, but I also communicate what is received via I2C to another Arduino. SO I will just skip on this, and use separate Arduino, that is dedicated for the encoder.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.