Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
PixelShady
Posts: 9
Joined: Mon Sep 02, 2019 4:36 pm

Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by PixelShady » Sun Nov 03, 2019 3:07 pm

Have been searching online and got a lot of mixed information - some saying that you need an Arduino to sit between the chromebook and ESP8266, because an ESP8266 won't be recognised/accepted directly over USB - is this true?

What's the current cheapest/easiest route for someone with only an ESP8266, a usb cable, and a new chromebook?

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by rpr » Sun Nov 03, 2019 8:50 pm

I too have been looking for a solution using a Chromebook using crostini/Linux. Unfortunately it is not possible as of right now as USB support for such serial devices is not present in chrome. Maybe it will change in the future.

For Arduino, there appears to be some sort of web app and ide.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by jimmo » Mon Nov 04, 2019 5:22 am

PixelShady wrote:
Sun Nov 03, 2019 3:07 pm
some saying that you need an Arduino to sit between the chromebook and ESP8266, because an ESP8266 won't be recognised/accepted directly over USB - is this true?
The ESP8266 (and ESP32) don't have a USB interface on them. Originally, it was very common to buy ESP8266 modules that were not much more than just the chip itself with a spiflash. If you wanted to connect them to a computer, you used a separate USB->UART board (e.g. FTDI). Or an Arduino, where you wrote a simple sketch to read bytes in from USB and sent them out the UART (which I suspect is what this is referring to -- it's especially easy on the Leonardo).

Nowadays, it's much more common to see all-in-one boards that have the ESP8266 or ESP32 and a USB-UART adaptor built-in. In other words, if your ESP8266 board has a USB port, it probably has this.

So... this means that if you can get an Arduino serial console to work in Chrome OS, you can almost certainly access an ESP8266 running MicroPython (i.e. MicroPython just looks like an Arduino program). Once you have a prompt on the device via the serial console, you can set up WebREPL and then use that to access it from any browser, and also use it to copy files. (It looks like Arduino Create might be a great option here, and possibly Chromeduino 2).

You just won't be able to actually flash the MicroPython firmware onto it (but that only has to be done once).

I'm surprised to hear that Crostini doesn't provide access to USB serial ports... but I don't know much about Chrome OS.

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by rpr » Sat Jun 20, 2020 7:45 am

Looks like the most recent update on my Chromebook to Chrome stable version 83 has finally enabled pass through of the serial ports to crostini. I have only tried it on my nodemcu esp32. Once you connect it, you get a popup asking if you want to pass to Linux.

It then shows up as /dev/ttyUSB0 inside linux. I was able to connect after installing rshell. The first time, I used sudo rshell to connect but on subsequent connects just rshell seemed to be enough. I was also able to flash the firmware after installing esptool.

I'm glad that this works after waiting for a really long time.

Richardson
Posts: 4
Joined: Thu Dec 24, 2020 9:07 am
Location: https://mini-militia.com/

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by Richardson » Sat Dec 26, 2020 6:19 am

rpr wrote:
Sun Nov 03, 2019 8:50 pm
I too have been looking for a solution using a Chromebook using crostini/Linux. Unfortunately it is not possible as of right now as USB support for such serial devices is not present in chrome. Maybe it will change in the future.

For Arduino, there appears to be some sort of web app and ide.
I think you'll have a hard time programming on a 2GB chromebook TBH. Python will be ok, so will some web and a little javascript. But something heavyweight like Java will be out of the question.

Background: I had a 4GB Samsung Chromebook Plus and was frequently frustrated by the dev experience. I've since upgraded to a Slate 16GB which I would recommend in every way for development.

If you want to use the Chromebook you have (or any browser, really), you might consider checking out Cloud 9 from Amazon. I use it quite a bit and it's a pretty decent experience.

rizarefaldi
Posts: 2
Joined: Wed Jun 02, 2021 6:27 pm

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by rizarefaldi » Wed Jun 02, 2021 6:28 pm

Unfortunately it is not possible as of right now as USB support for such serial devices is not present in chrome.

kirito
Posts: 1
Joined: Sat Jul 10, 2021 8:06 pm

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by kirito » Sat Jul 10, 2021 8:11 pm

Richardson wrote:
Sat Dec 26, 2020 6:19 am
rpr wrote:
Sun Nov 03, 2019 8:50 pm
I too have been looking for a solution using a Chromebook using crostini/Linux. Unfortunately it is not possible as of right now as USB support for such serial devices is not present in chrome. Maybe it will change in the future.

For Arduino, there appears to be some sort of web and ide.
I think you'll have a hard time programming on a 2GB chromebook TBH. Python will be ok, so will some web and a little javascript. But something heavyweight like Java will be out of the question..

Background: I had a 4GB Samsung Chromebook Plus and was frequently frustrated by the dev experience. I've since upgraded to a Slate 16GB which I would recommend in every way for development.

If you want to use the Chromebook you have (or any browser, really), you might consider checking out Cloud 9 from Amazon. I use it quite a bit and it's a pretty decent experience.
Thank you for sharing your views Richard and the suggestion for checking the cloud 9. it helped me. i hope for the same support in the future too.

EthanWinters
Posts: 1
Joined: Mon Sep 13, 2021 9:11 am

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by EthanWinters » Mon Sep 13, 2021 9:15 am

PixelShady wrote:
Sun Nov 03, 2019 3:07 pm
Have been searching online and got a lot of mixed information - some saying that you need an Arduino to sit between the chromebook and ESP8266, because an ESP8266 won't be recognised/accepted directly over USB - is this true?

What's the current cheapest/easiest route for someone with only an ESP8266, a usb cable, and a new chromebook?
I have the same question, Sir. Please if there's someone who knows an accurate answer to this question, let us know. I really don't want to spend money of buying an Arduino. I'm on a tight budget.
best regards: Ethan.Winters

Erhe
Posts: 1
Joined: Fri Nov 19, 2021 10:35 am

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by Erhe » Fri Nov 19, 2021 10:42 am

I prefer usb cable with the ESP8266 and andruino.

Dishan
Posts: 2
Joined: Thu Aug 11, 2022 4:23 pm

Re: Programming ESP8266 on Chromebook in Nov 2019; with both Linux/android apps now accessible, is it easier?

Post by Dishan » Fri Jul 14, 2023 9:52 am

PixelShady wrote:
Sun Nov 03, 2019 3:07 pm
Have been searching online and got a lot of mixed information - some saying that you need an Arduino to sit between the chromebook and ESP8266, because an ESP8266 won't be recognised/accepted directly over USB - is this true?youtube vanced
What's the current cheapest/easiest route for someone with only an ESP8266, a usb cable, and a new chromebook?
No, it is not true that you need an Arduino to sit between a Chromebook and an ESP8266. While it is true that Chromebooks have limited support for external devices compared to other platforms, you can still program and communicate with an ESP8266 directly from a Chromebook without the need for an Arduino.

The ESP8266 can be programmed using the Arduino IDE, which is available as a web-based version called Arduino Create. With the Arduino Create web editor, you can write and upload code to the ESP8266 using the Chromebook.

Post Reply