ESP8266 in Ubuntu



Intro

I want to explore in the side of IOT devices for very long time, Arduino or Raspberry Pi. Let’s go shopping but where ???

Ritchie Street of course, It is the second-largest electronic market in India. Managed to grab ESP8266, Breadboard and Jumper wire.

Okay let’s try to run a simple script in ESP8266 in Ubuntu.

Booting ESP8266

lsusb
Bus 003 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
ls /dev/tty*
ls /dev/ttyUSB*
sudo dmesg --follow
[   60.830127] usb 1-2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
sudo apt remove brltty
#define ledPin1 2

void setup() {
  // put your setup code here, to run once:
  pinMode(ledPin1, OUTPUT);
}

void loop() {
  digitalWrite(ledPin1, LOW);
  delay(1000);
  digitalWrite(ledPin1, HIGH);
  delay(1000);
}
arduino Minimal supported version of Python is 3.7

Finally we are able to make the device works, hope this will help others in running code in ESP 8266 from Ubuntu

Reference