Tag Archives: Arduino

ESP8266 Basic

For a while now I have been working with a couple of ESP8266 wireless modules. These devices are pretty nifty and allow for some interesting projects with both Raspberry Pi and Arduino. The biggest actual hurdle is leaning to program them properly and use AT commands to configure them. I found this a bit odious until I discovered ESP8622 Basic, a firmware update that lets you program them using the Basic programming language and a web page interface. The guy who wrote the firmware is a Windows user and does not really have any instructions for flashing the firmware if you use Linux. Through trial and error I figured it out and want to document it for the ages. I use Ubuntu 16.04, so the instructions will be specifically for that, however adapting them to another distro should not be tough. I am using a NodeMCU ESP8266, I like them because they have a built in USB interface and have GPIO pins to make it easier to attach LED’s and sensors. The first thing to do is to plug it in to your computer, there is no need for drivers, it should be recognized instantly and attached to /dev/ttyUSB0, if you have more than one hooked up, the port may end up being different. But once that is done, open a terminal and move on to the next step.

First we need to get the dependencies:

sudo apt-get install python-serial git

Next we need the flashing tool esptool.py:

git clone https://github.com/themadinventor/esptool.git

cd esptool

Download the ESP8622 Basic firmware:

wget https://github.com/esp8266/Basic/tree/NewWebSockets/Flasher/Build/1M/ESP8266Basic.cpp.bin

Then we flash the new firmware:

sudo python esptool.py –port /dev/ttyUSB0 write_flash 0x00000 ESP8266Basic.cpp.bin

Finally you can connect to the device and start programming it by connecting to the ESP network which should be listed as an available wireless network, then point your web browser to http://192.168.4.1/ and you should be off and running.

Links:

https://www.amazon.com/HiLetgo-Version-NodeMCU-Internet-Development/dp/B010O1G1ES

https://www.esp8266basic.com/

http://www.esp8266.com/viewforum.php?f=38

ESP8266 BASIC Sets Up a Web Remote in No Time

Basically, It’s an ESP8266

 

 

Recent Projects

Recently I have been messing around with Arduino boards. At first I was looking at them as an extension of my Raspberry/Banana Pi boards. That was definitely a mistake, these things can be programmed to do a fairly wide variety of things.

arduino1

Pictured here are the two projects I have been working on. To the right is a simple digital picture frame, this was not terribly difficult to put together, it is kind of ugly but runs off a battery pack. To the left is what I refer to as the Turtle, which is a prototype sensor platform, the idea is it will collect data on light, temperature, sound and movement, transmitting all of this data to my webpage via wireless network (you can see the ESP8266 wireless bridge in the upper left quad of the picture). Currently the networking portion has been completed, I can interact with it across the network, the next stage is mounting the sensors.