S
S
Sergey2015-05-02 16:21:52
Arduino
Sergey, 2015-05-02 16:21:52

How to read arduino pulseIn from multiple analogins in parallel?

In general, here I needed to read positive pulses from the analog input in the arduino, and so, as if everything were fine, there is a pulseIn function, but the fact is that it works in blocking mode, I need such a solution so that I can read several at once analog inputs for the presence of a “pulse”, but the trouble is, there are no events in the arduino, and you can’t put the analog input in a la manual synchronization mode, like in a socket, we blow the pool and run through the sockets in a loop and check the presence of something in the buffer with handles -or. In short, I googled and googled, and did not find anything. The task is the following - there is an array of classes, and each of the classes has its own unique number, an analogue of the input, more precisely several. When a pulse appears on a certain port, we immediately pull the value from another analogue of the input and throw it into the method of the desired class. If the class was one-know problems,

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LittleFatNinja, 2015-05-02
@LittleFatNinja

you can't do anything in parallel on an arduino
, only sequentially

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question