PlatformIO IDE your IoT friend.

PlatformIO IDE your IoT friend.

Hi Readers,

Today I would like to show you PlatformIO IDE. It is easy to use and in my opinion much nicer and more sophisticated alternative to Arduino Studio. Maybe it is not so easy to use as it needs some configuration at first but it is a basic process that everybody can do. Also I have noticed that platformio is really working on improving whole environment.

 

What is the PlatformIO

 

platformio-logo-17fdc3bc

 

PlatformIO IDE is the next-generation integrated development environment for IoT:

Cross-platform build system without external dependencies to the OS software: 200+ embedded boards,15+ development platforms, 10+ frameworks

C/C++ Intelligent Code Completionand Smart Code Linter for rapid professional development

Multi-projects workflow with multiple panes and Themes support with dark and light colors

Built-in Terminal with PlatformIO CLI tool and powerful Serial Port Monitor

PlatformIO IDE is a IDE build on Atom “A hackable text editor” which you can find more about on their homepage : https://atom.io .

It supports number of boards and especially useful for us it supports all ESP8266 boards I know about. I am using it with my ESP6288-01 and Nodemcu ESP8266-12E boards.

Installation

What you need to do to install it? Just download platformio installation from: http://platformio.org/get-started and it is done. But if you will end-up with some errors which unfortunately I did twice on my laptop. Just reinstall it again it should help.

List of supported boards: http://platformio.org/boards

 

plotfio

Libraries

Probably from the begging you will miss some libraries but don’t be worry PlatformIO has hundreds libraries in their repository.

To find the right one you should run Library Manager (from menu) they console will popup. Then you need to type:

platformio lib search <name_of_missing_library>

platformio lib search 1-wire

After that you will see list of libraries which are consistent with your search.

PlatformioSearch

When you want to install one of found libraries you need to type:

platformio lib install <library_id>

platformio lib install 1

 

Configuration

Platformio has large number of possible settings we can customize. But most important is platformio.ini file which contains settings of your project.

Settings I am using for my Nodemcu are:

[env:nodemcuv2]
platform = espressif
framework = arduino
board = nodemcuv2
upload_speed = 115200
#upload_port = COM5

 

plotfi2o

 

Platformio.ini configuration: http://docs.platformio.org/en/latest/projectconf.html#upload-speed

You can find there much more settings you can choose it is a bit lecture bit it also mean that everybody will be well served by PlatformIO IDE.

Give it a try. I am sure you will like it as I did.

 

Github repository: https://goo.gl/ii9xsz

Be positive and stay calm!

Cheers,

Radek

Advertisements

Power supply modules and ESP8266 module types.

Power supply modules and ESP8266 module types.

Hi Readers,

Today I would like to share with you power supplies I am have tested and ESP8266 modules which I am currently using. I have done those tests as often when I was connecting one or another sensor to ESP8266 module it was loosing power and resetting itself.

Breadboard power supply modules

1) Breadboard power supply module

IMG_20160501_170231

This one I like the most. It fits well, doesn’t fell off easily. Can operate on DC 6V – 12V input and does 3.3V or 5V output. Has reset button also additional power pins which are usefull in most DIY projects. You can use e.g. 4 x AA or 4 x AAA batteries or 9V battery.

2) Breadboard power supply modules

IMG_20160501_170255

This is seconds breadboard power supply. It can be powered byt DC 7V to 12V. As a output has 3.3V or 5V. Has more common micro usb socket so could be powered up from any PC, laptop or power bank by any smartphone similar cable.

3) Additional elements

You can use external power supply, usb cable or any other type of power source. I have used batteries as they are cheap and portable.

IMG_20160501_170854IMG_20160501_170909IMG_20160501_171320IMG_20160501_170759IMG_20160501_170818IMG_20160501_170700IMG_20160501_110737

ESP8266 Modules

Modules I am using:

IMG_20160501_170455IMG_20160501_170503IMG_20160501_170513

Those are to basic and I think cheapest easy to use ESP8266 modules. You can simply find and order them from chine. They cost about 2$ per peace. Different between those is memory size blue modules has only 512kb where black has 1024kb.

IMG_20160501_170343IMG_20160501_170424IMG_20160501_170439IMG_20160501_170619IMG_20160501_170700

Those are nodemcu modules which has ESP12 modules. They are three version of it but V2 and V3 are most popular. I read that those modules are similar but even from hardware site there are similar their sizes are unfortunately different. V3 is just to big in my opinion as when installed on breadboard there is not holes left to connect anything to it. V2 is a les wide in compare to V3 and has 2 lines of wholes left when installed in breadboard. You can see it on attached pictures.

According to other types of ESP8266 modules. You can read more on esp8266 homepage under this like:

http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family

1610038_1722052748015043_1288277534162828799_n

Github repository: https://goo.gl/ii9xsz

Be positive and stay calm!

Cheers,

Radek