I’m not dis’n the Arduino, and don’t want to start a fire… I just had a curious moment. From a 10000 foot view, what do Arduino people do when they want to deal with many sensors? Is it simply a big round-robin loop of checking one sensor at a time? Or are there some methods/techniques to do things like interrupts to get notified when something happens?
Netduino vs Arduino
Started by Inquisitor, Sep 09 2011 11:36 AM
1 reply to this topic
#1
Posted 09 September 2011 - 11:36 AM
Doing my best to keep the smoke in the little black boxes.
If my message helped you... how 'bout giving me a
www.MessingWithReality.com
If my message helped you... how 'bout giving me a
www.MessingWithReality.com
#2
Posted 09 September 2011 - 11:54 AM
No fight from me: comparing N with A is much like comparing oranges and dogs.
IMHO, when you have to collect raw sensors data it is easy that you must perform some operation. My experience shows that almost 99% you must calculate average/filtering, check for over/under ranges, etc.
This is better done by a native coding, like A offers. Typically there's no hard task to do, only calculations, fast and real-timed.
I've used interrupts just for collecting bytes from some serial (e.g. SPI, UART). Most of the work is done in a big main loop.
Hope it answers.
Cheers
Biggest fault of Netduino? It runs by electricity.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users