ESP8266, Programming, Python, Tech

MicroPython on NodeMCU V3 / ESP8266

I’m a big fan of Python. It’s easy to use and quite powerful. When I heard that there is Python firmware for microcontrollers I had to try it.

The NodeMCU V3 board I used looks like this:

71ainkxuyil._sx425_


Here are instructions to flashing the MicroPython firmware:

NOTE: The following instructions are to be executed on Linux. I used a Ubuntu virtual machine to do this.

1. Open a Bash terminal

2. Create a new folder “esp” and go inside it

3. Download the new firmware from http://micropython.org/download under the section titled “Firmware for ESP8266 boards”. Click on the file that looks like “esp8266-20190125-v1.10.bin”.

4. Install the “esptool” firmware flashing tool:

sudo pip install esptool

5. Connect the ESP board to your computer

6. Check which port the board is connected by executing “dmesg” and you should see something like this:Capture1

Look at the line which says “…now attached to…” and note that device name, eg ttyUSB0.

7. Execute the command to erase the flash memory. Remember to change the device name to whatever it is on your computer

sudo esptool.py --port /dev/ttyUSB0 erase_flash

You should see this:

Capture2

8. Execute the command to flash the new firmware

esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp8266-20170108-v1.8.7.bin

You should see this:

Capture3

9. That’s it!


Here are the instructions to check the new firmware:

1. Install picocom

sudo apt install picocom

2. Run picocom

sudo picocom /dev/ttyUSB0 -b115200

You should see this:
Capture4

3. That’s it!

NOTE: Hit Ctrl + A + X to exit picocom.


Woo hoo! Good luck 🙂

Advertisements
Kali Linux, Linux, Tech

Wireshark on Kali Linux 2008

If you encounter this issue running Wireshark on Kali Linux:

Capture

Perform the following:

  1. Edit /usr/share/wireshark/init.lua with your favourite editor
  2. Find the line (near the top) which has “disable_lua = false”
  3. Change it to “disable_lua = true”
  4. Save and close the editor
  5. Voila 🙂
Tech, Windows

Bluetooth Headphones with Dell XPS 9550 & Dell Wireless 1830 Card

I have a Dell XPS 9550 laptop with Windows 10, which uses the Dell Wireless 1830 Wifi + Bluetooth card. My bluetooth mouse connected and worked fine. I tried to connect a Plantronics Backbeat 505 bluetooth headphones to the laptop, it would pair but not connect. After much trial & error the solution is this:

  1. Download and install Dell Wireless 1830 Bluetooth Application (Communications_Application_8R3ND_WN32_12.0.1.720_A00.EXE) 
  2. Update the drivers for Dell Wireless 1830 Bluetooth via Windows Update

And this worked! Hurray!


Update 1: The bluetooth headphones are still working but the audio is a bit choppy. I don’t have a solution for that yet.

Tech

Windows 8 on Asus U36JC

Here’s what I learnt about upgrading from Windows 7 to Windows 8 on my Asus U36JC (even though the Asus Support website says it hasn’t been tested):

  • It all works! 🙂 (Except for the bluetooth module)
  • At the start of the upgrade I had to uninstall the Atheros WLAN Bluetooth Client Application (and drivers) because the Windows 8 upgrade program said it was incompatible. I did uninstall it and proceeded with the upgrade.
  • I used the Ethernet connection in the interim.
  • After the upgrade the wireless drivers didn’t install at first. I tried installing drivers in compatibility mode but no luck.
  • After doing a Windows Update, the WLAN drivers worked.
  • Bluetooth still not functional, which I don’t really need.

And, Windows 8 is pretty cool!