Issue with PinChangeInt 2.40rc2 and Arduino 1.0.5

25 views
Skip to first unread message

carolus magnus

unread,
Feb 12, 2015, 9:05:15 PM2/12/15
to arduino-pincha...@googlegroups.com
Greetings,

I've been trying to use PinChangeInt to capture R/C servo pulsewidths, an application that it has served very successfully in. I haven't done so since last year, however, and in that timespan, both Arduion and PinChangeInt advanced a few versions.
I'm currently using 2.40 rc2 and have been running into a very strange interrupt-dropping issue.

The majority of my experience is on the Arduino forum here: http://forum.arduino.cc/index.php?topic=87195.msg2084799#msg2084799

I'm going to try a few different ways of approaching the same function, but I'm really hoping it is a random small copy and paste error on my part and not due to version differences.

Any insight would be appreciated. Thanks everyone.

Michael Schwager

unread,
Feb 13, 2015, 1:42:47 PM2/13/15
to arduino-pincha...@googlegroups.com
I'll take a look. There's a lot of information there so it'll take some time to dig in...

--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-Mike Schwager

Michael Schwager

unread,
Feb 13, 2015, 2:11:32 PM2/13/15
to arduino-pincha...@googlegroups.com, theorang...@gmail.com
The first thing I notice is that your vol_ch1_pw is a signed int. For numbers this weird I would check that you are not overflowing. Make that value a long and see what you get. Compare to your oscilloscope readouts (I'm not sure wide your time graph delta's are on your oscilloscope picture).

On Thu, Feb 12, 2015 at 8:05 PM, carolus magnus <theorang...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "arduino-pinchangeint-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arduino-pinchangeint...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-Mike Schwager
Reply all
Reply to author
Forward
0 new messages