-2

Does any one know - can I use Arduino shields with ESP32?

  • 3
    This is far too broad, it will entirely depend on the shield in question, and you would probably need to change any library to remap pins – hardillb Oct 19 '19 at 21:46
  • It's also probably off topic (better asked in the electronics it Arduino specific sites) – hardillb Oct 19 '19 at 21:49
6

This is possible using an ESP32 that has Arduino headers, like the ones found on the ESPDuino-32. This project uses the Duino and an ST shield (with theTSYS02D sensor) to get you up and running. I've made a building monitor project using the ESPDuino-32 and an ST shield using this set up before and it worked out great (screen shot below).

If the board doesn't have the headers you can link via jumper wires as mentioned above but that kind of defeats the purposes of using an Arduino shield in the first place. This does require you clip a pin to avoid power feedback on the ST board (image attached) enter image description here enter image description here

  • Geeat answer, thanks! but, "This does require you clip a pin to avoid power feedback on the ST board (image attached) " - I am not a h/w guy ... to clip a pin means to remove it? "a pin"? Seems like the second from bottom in the image? I just want this here, rather than in the link, which requires email registration and may break. Thanks again, I *really appreciate this - my first shield will be Grove connectors. – Mawg says reinstate Monica Oct 24 '19 at 10:02
  • Your link takes me to https://platform.atmosphereiot.com/#%7B%22location%22%3A%22Studio%22%7D, which says "There was an error loading the example project". Do you have a better URL? – Mawg says reinstate Monica Oct 25 '19 at 6:13
  • if you can answer the questions in my comments, I will award you the answer – Mawg says reinstate Monica Oct 31 '19 at 12:46
3

The short answer is yes, you can likely use the shields. But, the following will apply:

  • This is obvious, but you won't be able to just plug it in to an ESP32 like a shield. You'll have to use another way of making the connections. Jumper wires should be fine for prototyping.
  • If you plan on using the Arduino software libraries instead of coding from scratch, they will need modifications to work with the ESP32. Depending on the complexity, it may be easier to start with ESP32 specific code designed for similar hardware, and adapt it to the shield.
  • The ESP32 is 3.3V and some Arduinos are 5V. You will need to keep this in mind when making your connections.
  • It may be easier to just use bare hardware (sensors, relays, or whatever) than to try and retrofit an Arduino shield to do what you need. That will depend on the individual shield, and if you are just trying to use something you happen to have on hand.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.