Loconet – Part IV – More powerful controller !

While the Arduino UNO and Arduino Mega is “enough” for most projects,
sometimes you need something more powerfull … In my case, I always grab an ESP32.
Let’s begin with a comparison, ESP32 has a much more powerfull microcontroller
AND has much more memory (and even has WIFI and Bluetooth onboard)
So, with these ESP32 modules, you can even control full-color TFT screens ! (see my project with the ESP32-Cam)

Comparison table

ESP32 NodeMCUESP8266 WeMos D1 MiniArduino NANO 3Arduino UNO R3Arduino Mega
MicrocontrollerESP32ESP8266ATmega328pATmega328pATmega2560
Operating Voltage3.3V3.3V5V5V5V
Power supply7V – 12V4V – 6V7V – 12V7V – 12V7V – 12V
Current consumption20 – 240 mA19 – 180 mA45 – 80 mA50 – 200 mA
Current consumption Deep Sleep5 µA23 µA35 mA500 µA
Digital I/O Pins3611141454
Digital I/O Pins with PWM36116615
Analog Input Pins1518616
SPI / I2C / I2S / UART4 / 2 / 2 / 21 / 1 / 1 / 11 / 1 / 1 / 11 / 1 / 1 / 11 / 1 / 1 / 4
DC Current per I/O Pin20 mA40 mA40 mA20 mA
DC Current for 3.3V Pin40 mA50 mA150 mA150 mA
Flash Memory4 MB4 MB32 KB32 KB256 KB
SRAM520 KB2 KB2 KB8 KB
EEPROM1024 bytes1024 bytes4096 bytes
Clock Speed80 / 160 Mhz80 / 160 Mhz16 Mhz16 Mhz16 Mhz
Length52 mm34 mm45 mm69 mm102 mm
Width31 mm26 mm18 mm53 mm53 mm
WIFIyesyesnonono
Bluetoothyesnononono
Touch sensor10nononono
CANyesnononono
Ethernet MAC Interfaceyesnononono
Temperature Sensoryesnononono
Hall effect sensoryesnononono
Power jacknononoyesyes
USB connectionyesyesyesyesyes

Because the ESP32 works a bit different then Arduino UNO or Arduino Mega, you need a different Loconet library.
You can download the ESP32 Loconet library here.

This entry was posted in Blog, Electronics, Railroading. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *