I am using a TFT Shield with my Arduino Mega but there is a problem. My project uses a PWM pin to create a PWM-signal but the shield takes all the PWM pins. Is there a way to generate PWM Signal externally with an IC or module.
Don't you think that telling us what shield it is you are using might be useful information to have in order to provide an answer beyond "maybe"?
Exactly which pin numbers does the TFT shield use ?
The Driver IC of the TFT shield is ILI9341. It is 240x320 TFT Shield designed for Arduino
Uno but it is also compatible with Arduino Mega. The shield uses a parallel interface to communicate with the Arduino. According to online sources, The Shield only leaves A5 pin un - used that's why I am using Arduino Mega to allow me to connect more modules to it.
So it covers all the Mega's pins except A5, is that what you're telling us? I find that hard to believe. Because if it only covers the pins on an Uno, there's still 3 PWM capable pins down on the double row header. Provide a link to this shield, please.
As I said, It is designed for Arduino Uno. It does not use all the pins of Mega. The shield uses all the pins from pin 2 to pin 13 which happen to be the PWM pins of the Mega.
Amazon listing of the product
Amazon.com: HiLetgo 2.4" ILI9341 240X320 TFT LCD Display with Touch Panel LCD for Arduino UNO MEGA2560 : Industrial & Scientific
Can you tell me the said 3 PWM pin ?
Thank you for providing a link to the shield.
Now, what is preventing you from using any of pins 44 through 46 for PWM purposes?
Link:
Thanks for the info man. I don't use Arduino Mega frequently. On the board itself, It only says pin 2 to pin 13 are PWM enabled. So don't know anything about the double row header.