Can i use arduino nano code on and esp 32

so i was making a robotic arm and i wired the some thing wrong and fried the nano
it is getting exreamly hot and all the lights are on (tx ,rx , pwr , except the pin 13 built in led ) but it doesent work .
I only have a esp 32 develop board on hand so can i just upload the same code to the esp 32 ?
Is there any thing that nano has that esp doesent or
what kind of changes to the code must be done to run the same code

I was making using this as reference https://www.robotshop.com/community/robots/show/micro-servo-robot#

please help me

You may have problems driving a servo with an ESP32 because the output voltage is lower (I haven't tried it), but find out what you did wrong before wrecking another board.

i used +5v pin as power input instead of the vin and overvolted it i used 2 18650 battery in series to power it i am pretty sure that killed it

can i use the esp to give it a signal and power the servo from the battery?
also which pins should i use for the servo
i am not familiar with esp

A Google search points to this tutorial;

"Note: in this case, you can use any ESP32 GPIO, because any GPIO is able to produce a PWM signal. However, we don’t recommend using GPIOs 9, 10, and 11 that are connected to the integrated SPI flash and are not recommend for other uses."

thanks
but i found this video that already did what i am trying to achieve

so i am going to use this
:slight_smile:

For the benefit of the forum, can you explain what 'this' is ?

a was trying to make a robotic arm with arduino but i fried the arduino nano chip and i only had an esp 32 left so i found a tutorial that shows how to make the same thing but with esp and some differences .
by 'this' i meant a tutorial that tries to achieve a similar result

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.