Is there any interrupt pin on Lilypad Arduino Simple

I noticed that there is no pin 2 and pin 3 on Lilypad Arduino Simple board. I need the interrupt pin to work with the gesture sensor. If no interrupt pins are available, could I modify other pins to work around? Any help will be appreciated! Thanks!!

Hello, and thank you for posting in the forum!

Unfortunately the [LilyPad Arduino Simple Board does not break out the two interrupt pins that the ATmega328 has. (Arduino pinsD2 and D3 or PD2 and PD3 on the ATmega328 chip)

We do have a few Lilypad boards that have pins accessible pins that can do interrupts. The boards below will work for you on this.

  • - [LilyPad Arduino 328 Main Board - Pins 2 and 3 (Mega328)
  • - [[LilyPad Arduino USB - ATmega32U4 Board](https://www.sparkfun.com/products/12049) - Pins 2 and 3. (32U4)
  • [/list]

    Unfortunately you can’t modify other pins to work as interrupts, the micro controllers on these boards don’t support interrupts on any other pins.

    Hope this helps, and good luck with your project!](https://www.sparkfun.com/products/12049)](LilyPad Arduino 328 Main Board - DEV-13342 - SparkFun Electronics)](https://www.sparkfun.com/products/10274)

    Thanks for your reply. Do you know if any of the Lilypads support the Arduino keyboard library? I want to use the gesture sensor to control the computer keyboard? (keyboard mapping)

    The Lilypad Arduino USB (Or any other ATmega32U4 / SAMD21 based board) does support the keyboard and mouse libraries.

    But there is no FTDI interface on Lilypad USB board. I need that to connect to the bluetooth mate. Is that possible to work around even without the arduino keyboard/mouse libraries support? Any suggestions? Thanks for your quick response!

    The [LilyPad Arduino USB doesn’t have a FTDI interface since it’s programmed via the USB connector built into the board but you could use the [software serial library to create a software UART on pins 9 & 10, 10 & 11, or 9 & 11. You’d then connect your Bluetooth device to those pins.](https://www.arduino.cc/en/Reference/softwareSerial)](https://www.sparkfun.com/products/12049)

    Google arduino pin change interrupt

    Here’s a shortcut from darrellg’s note => https://playground.arduino.cc/Main/PinChangeInt/ and https://github.com/GreyGnome/PinChangeInt . I remember testing the PinChangeInterrupt out for the RGB rotary encoders on a RedBoard https://github.com/sparkfun/Rotary_Enco … lluminated and LilyPad MP3 Player https://github.com/sparkfun/LilyPad_MP3 … r_Demo.ino. Both of which have an ATmega328P . Good luck! =)