Articles Hierarchy

Articles Home » Arduino Projects » Arduino IDE 2.0 test on ESP ++

Arduino IDE 2.0 test on ESP ++

intro Arduino IDE 2
RPI 2040 support
check on ESP 8266 / 32
restart and test ATtiny
play ESP32 TTGO T-display

something different

intro Arduino IDE 2

i already mentioned that i installed the new IDE 2.0
in my RPI PICO article:
just today find that IDE new v2.0:
i install on win10 PC:

( bad, in terminal ( monitor ) now need to press [space][ctrl][enter] instead [space] like in minicom )

The new IDE is based on the Eclipse Theia framework, which is an open source project based on the same architecture as VS Code (language server protocol, extensions, debugger). The front-end is written in TypeScript, while most of the backend is written in Golang.

to day check again on updates? download nightly but stuck on ( just download )
i do have (2.0.0-beta3-nightly)
but later try again and get ''

RPI 2040 support

UPDATE 25.3.2021:
well, as expected they work on the arduino IDE about the tool chain and board-manager for Raspberry Pi PICO ( or other RP2040 boards )
goto preferences and add there ( if not empty after a ',' )
goto Board Manager and search 'rasp', find Raspberry Pi Pico/RP2040 and press [install] ( download board and tools ( about 170-MB ))
select the board
find already examples ( eeprom / led fade / servo sweep )

UPDATE: restart work with RP2040, but using Arduino IDE 2.0.0 here

at start get a error ( having a sketchbook with many *.ino files open) i want follow and get surprisingly to
so Raspberry Pi AND Arduino, both change the coding environment to VSC???
i hate it but could be good for us?
and that help looks like for linux, here on windows it does not help me much.

ok, why i am here:
one of the questions is if that is compatible in the way that i still can install ESP too

-a- i want to know how the new IDE feels

check on ESP 8266 / 32

-b- i want to know if i can setup a old ESP32 with the new IDE
and follow

-c- i want code some link like UART or I2C between ESP32 and PICO
( because ESP is 3V3 like the PICO and not need to worry the 5V of a arduino board when connect )

i install via board-manager

i have only a small collection of ESP:

use the NodeMCU 32S board v1.1 with the ESP WROOM 32

and start the monitor and my last project info come up MQTT

sofar that all looks good.

i even found the source code ( but not in the /myblog/ zip )
( there is only the ESP8266 OLED test ( like ESP8266_MQTT )
what comes up as PCU213 ( ) on my LAN
as MQTT client ( and show it all on OLED! )

is a version combining ESP32 and ESP8266 code and a compiler switch..
( not even remember if that specific test worked out )
sadly not even can compile it in IDE 2.0???
digging deeper later

for adding ESP8266 change in preferences:,
( you see, added with a ',' )
select new board managers entry ESP8266 and press install
select board .... full flash erase...
compile download ok,
NO OLED show

test with Arduino IDE same BUT there not see that error underlines like in the new IDE
anyhow the serial works and looks like its stuck in the setup and retry MQTT communication with master.
BUT why i see the good OLED show when i connect to power after all this years,
also without MQTT server? must have been a other code revision loaded?
but after first upload that OLED not work anymore?
anyhow the working environments are UP, ( only on win10 PC )
i added also a little more intro text in the code about the needed libraries.
so many tests about the OLED failed..
but main code loop runs, also a test of the default 8266 advanced webserver

in this picture see ( older IDE ) all of that many switches i needed for this board.
so, i have that OLED broken today? or the new software/libraries/settings are not compatible?
ok forget the OLED for today, work slowly towards my webserver ( like with fix IP .. ) again.
more to the original play there

now what i want to explore?
combine the PICO with a ESP board
-1- by UART / I2C /
-A- but possible also way back can use the ESP ( online ) as RTC source for the PICO
ok but first i try ESP8266 web Network Time to set/keep updated the local time ( even this has no RTC )
( but the PICO has a ?useless? RTC ( no extra battery supply possible? )
now if we can connect ESP and PICO ESP can send the required / actual Time settings with

-B- to use it as a WEB print output for the PICO
then start to run a simple web-server
+ + with fix IP

+ + show net-time and up-time

+ + with a line "hallo"
when you run the ardunio monitor can type / send text, and ( with auto update 5sec for webpage )
ESP show it ( via webserver ) instead "hallo"
this is message from USB line

+ + with a line "also hallo"
when the PICO send a text with a predefined header ? like "hallo from PICO"
via the UART1 wires
it will show like:
hallo from PICO

+ + when the PICO send a text in the style SVG commands like '.....'
via the I2C link ( i want to test with that )
that text will be included into a constructed HTM SVG image now shown as a ready rectangle
so with a single text line the PICO can draw a color rectangle 'bar-graph' like with the hight acc Ain reading..
( sounds like the old times when i wrote a dbase tool-set to send HP-GL to a HP-plotter LOL )

but instead just test the UART link between PICO UART and ESP-8266 UART i moved
the ESP project from PC also over to the RPI ( Arduino IDE with ESP environment, the old one, as the 2.0 now not available for arm 32 Raspberry Pi Linux) )
( might be too much current for RPI4 and its PS but i have the official ?5.1V 3.5A? PS so looks good )
but i do not have to worry about a ground connection RPI - PC USB...

when i try to do the same code for the ESP32 i run again into that one-hundred compiler-switches
where ESP32 and ESP8266 code is different.
AND ESP32 need :
UART special hardware serial setup
? must find new NTZ code ?
as that is unreadable UNDO the switch ESP8266 to ESP32

also get 'digdong' about the pin numbering / GPxx position...
now i try my own drawing here

first part on 'old' ESP / via WIFI / by browser on PC.

now back to the PICO ( on RPI4 VSC SDK.. ) and start from the advanced UART example
test a loopback ( jumper cable ) on UART 1: GP4 pin 6 TX, GP5 pin7 RX with that RX interrupt function
store to own char array and print when see '\n' works with BAUD_RATE 115200,
while when i tried to print each incoming character that speed failed...
and test:

well i got the ESP network time send to PICO RTC
and got the PICO ADC 0,1,2 send to ESP ( about 3 times per sec as CSV line)
and make it to SVG graph ( but update HTML only every 5 sec / manual refresh possible )


for a I2C communication see

back to the PC and start again with Arduino IDE 2.0,
try to update the PICO board ( even uninstall / install 0.9.4 )
build and upload the FADE example.. OK
but there are a few issues,
-a- the example menu shows ?badly? eeprom and fade ONLY
when i check the examples in GIT there are many more..
-b- other boards like feather... not show up...

recheck on IDE 1.8.13 much better from there.
try a update of IDE2.0?
ok find a
i must admit, possibly my working style is chaotic,
and at a time where a new IDE version is build and
a new board with very different tool set is incorporated,

better just to wait it out..

restart and test ATtiny

well that might be what i have done recently,
i was not stuck, more demotivated..
mostly around Raspberry Pi PICO RP2040 with up to 4 open projects
where i have some half finished code but i not even started the testing of it..
actually i stopped work/play for some time now,
possibly some health reasons ? too old ? can not concentrate ? virus ? blood problem ( thrombosis )
now i feel little better, still no drive to pick up the old unfinished things,
but with the last shopping i got 2 still unpacked goodies:
++ ESP32 with LCD
++ AtTiny85
and that is what i want test now.

there is a USB port ( no connector, just by the board, but a USB extension cable should work)
and a 5V supply with a Vin 6.. (12preferred)16VDC in-pin for battery operation.
with USB connected there should be
+ 2 analog in
+ 2 digital in OR PWM out OR I2C port

that it is a design from 2014 should not mean its out of date, but yes, it was supposed to be the little brother of Arduino UNO.
interestingly there are now several new boards ( like with RP2040 ) with same form factor )

-1- on my PC i check about arduino IDE needs a update: find a 2.0.0 beta 9,
+ download with 248MB
+ unpack under win10
+ make a desktop icon
+ start / acknowledge java firewall warning
+ select new file

for an hour, a power fail....
if you have a power-fail at the exact same second you start a new program you usually worry...

menu: / file / Preferences / add board manager / ( add with a ',' )

select board Digistump AVR boards [INSTALL]
Choose this board as Digispark(Default-16.5Mhz)

looking for a provided example i only see 2 about SPI..
for a blink i would need to know the hardware revision, if LED on PB0 or PB1
tested its on 1

ok, start about that hardware: stop the IDE and try first connect to PC
( this is about win 10 driver for that USB port... )
plug in the board ( here via a USB extension cable )
( setting up a device / unknown device is ready )
i see a RED LED double blink and a green LED ON

start IDE and select un-named COM1 ( that is very doubtful )
but a board info command seem to work ( so very wrong!! )

idea is again to use a little code for BLINK and Serial print Info and verify the compilation and upload.
-1- using Serial gives a compile error, after:
install serial driver better,
Digistump Arduino Release i found 1.6.7 from 2016
but still port select and board info not work

-2- blink upload with:
+ + press [verify]
+ + disconnect board
+ + press [upload]
+ + connect board

used code
there in you also find the log of my working upload.
( i do have some issues about the contact of the board traces and the USB plug of the extension cable )

a short check on the internet tells me that there is no "port" & "Serial.println & "monitor"
with this board, but soft-serial to other arduino boards for "Monitor" you'll find online.

but i got the blink internal LED on PB1 working, toggle every / about 4sec for 1.000.000 loops/ that's close to UNO speed.

play ESP32 TTGO T-display

as i got a idea for a small project with it, the details you will find in an external article here

something different

from what i understand, the Arduino 2.0 is NOT a new coding environment,
more a rebuild of the old Arduino ?processing based? with modern software tools
but for the user nothing new.

but lets have a look at something real different:
visuino from Boian Mitov /Mitov Software LLC /
( there is a paid PRO version ? industrial links ?to PLC's ..? )