Arduino Multiplexer

Hi Guys,Having trouble with implementing my arduino328 based multiplexer. Problem is with the "pulsein" command being too slow to read more than one channel. As a result the output pulses are sporadic on all the channels. The code is attached. A better description can be found at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252467952/0#0Thankyou very much to anyone who can help resolve this problem.Regards,Will

Atmega328.pde

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    Pulsein sucks for more than one channel; it takes something like 40% of available CPU cycles per channel!. Use interrupt-driven code instead (see our Blimpduino code for an example)
This reply was deleted.

Activity