Mega and Leonardo

150 views
Skip to first unread message

Пал Саныч

unread,
Jul 21, 2013, 10:27:06 AM7/21/13
to arduino-pincha...@googlegroups.com
I've read the library supports both Mega and Leonardo but I failed to run the examples. I have a low rate ~200 Hz square wave input with 50:50 duty cycle. I'd expect this would work with this library but I see no events at all. I tried to play with the PinChangeIntExample. The version I use is 2.19 beta.

Please, advise.

Michael Schwager

unread,
Jul 21, 2013, 10:30:11 AM7/21/13
to arduino-pincha...@googlegroups.com
You're just trying to run the example, is that all? I don't know if the example works with them but I will check.

Did you modify the code at all? If so, does your circuit work to, say, turn on the LED (without using interrupts)?


On Sun, Jul 21, 2013 at 9:27 AM, Пал Саныч <fax.k...@gmail.com> wrote:
I've read the library supports both Mega and Leonardo but I failed to run the examples. I have a low rate ~200 Hz square wave input with 50:50 duty cycle. I'd expect this would work with this library but I see no events at all. I tried to play with the PinChangeIntExample. The version I use is 2.19 beta.

Please, advise.

--
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/groups/opt_out.
 
 



--
-Mike Schwager

Пал Саныч

unread,
Jul 23, 2013, 2:14:02 PM7/23/13
to arduino-pincha...@googlegroups.com
Hi, thanks for the prompt reply!

I've ran the samples and also tried to adapt the circuit that worked fine with external interrupts before. I'm afraid, I'm missing something fundamental, or the library just does not support these two boards.

I tried both external board generating a square wave (with common ground) and also tried to use a 3-positional switch connected to ground and VCC. Nothing worked for me, unfortunately.

Other than Leonardo and Mega, I only have Nano v3. Is it supported?


On Sunday, July 21, 2013 5:30:11 PM UTC+3, GreyGnome wrote:
You're just trying to run the example, is that all? I don't know if the example works with them but I will check.

Did you modify the code at all? If so, does your circuit work to, say, turn on the LED (without using interrupts)?
On Sun, Jul 21, 2013 at 9:27 AM, Пал Саныч <fax.k...@gmail.com> wrote:
I've read the library supports both Mega and Leonardo but I failed to run the examples. I have a low rate ~200 Hz square wave input with 50:50 duty cycle. I'd expect this would work with this library but I see no events at all. I tried to play with the PinChangeIntExample. The version I use is 2.19 beta.

Please, advise.

--
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-discuss+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
-Mike Schwager

Michael Schwager

unread,
Aug 1, 2014, 5:48:35 PM8/1/14
to arduino-pincha...@googlegroups.com
This one is not so prompt... :-( Well, at least you're getting your money's worth! :-)

Anyway: I don't know that the Leonardo will work. The Pin Change Interrupt pins seem to vary between the ATmega32u4 (on the Leonardo) and the ATmega328 (which I have). The Mega should work, but I have not tried it.

Also, the Nano V3 should work, as I believe the pinout is the same as the Arduino Uno. Please double check for me and let me know if the pins are the same. The chips are the same; the library should work on either the ATMega168 or 328 without modification. And my short overview shows me that the pinouts are the same so I'm going to give a qualified yes, because I don't have a Nano and I would like someone with a Nano to verify that they are identical, and that the library works. Can you do that?

Thanks.


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/groups/opt_out.
 
 



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