As title say;
Is it possible to check multiple hall sensors change at the same time?
I now check every sensor sequentially in a loop, but by the time it checks the 5th if at the mean time some changes are happening at the 4th I will miss that initial value change and just pick up later again.
Bad drawn image explains it. The red lines show what sensor gets checked in time, but I want to know the orange line, and not the green as is happening now.
You can read the state of multiple digital input pins at the same time using direct port manipulation
Google will find you examples
UKHeliBob:
You can read the state of multiple digital input pins at the same time using direct port manipulation
Google will find you examples
But I need the analogue signal...
But I need the analogue signal...
Then you can't read several at the same time. All you can do using an Arduino is to read them sequentially as fast as possible.