Posts

Showing posts from August, 2017

Finding Time elapsed in doing work using MicroPython

      Program for finding the time elapsed  using Micropython  Here in this blog i am gonna going to write a program for finding the time elapsed in doing work by using micropython and NodeMcu as controller. Basically in this session we will use both RTC class   and Utime module  for finding the localtime and also time elapsed.  Through RTC class we will define the time in tuple form, then we will use the Utime module for finding the time difference. Here i have written a short program for finding time for the Led is on in the NodeMcu  ________________________________________________________________________________                                                             Program import machine import time  import utime rtc = machine.RTC() rtc.datetime((2017, 8, 2...

Connecting NodeMcu with MQTT IOT broker using Micro python

Image
NodeMcu with MQTT IOT broker and publishing msg on MQTT dashboard In this blog m dedicated to explain about the MQTT broker service and how it will help us in IOT development. I will also explain how we can publish our data using MQTT broker on MQTT dashboard. MQTT Broker service :                        MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport. It is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium. How we can publish our messages on MQTT dashboard with NodeMcu and MQTT broker using micro python as programming language. Step 1: Open a website  http://www.hivemq.com/demos/websocket-client/  in this there will be Client id that id is generated after every refreshing of page. There is also Host name and Port n...

Best 5 Arduino Project || Cool projects made with Arduino

Image

Connecting NodeMcu to a network using Micro Python

Image
How to Connect NodeMCU  to a Network using Micro Python language & Esplorer IDE In this my blog series dedicated for explaining how to make an  Internet of Things  project using  NodeMCU  that aims at reading and sending data to a website and making an action using the same website.  ESP-12E Development Board  will be used. This board is based on  ESP8266 , integrates microcontroller capabilities and WiFi in one board. It could be coded like Micro Python language using Esplorer. Here in this blog I have written about to connect to a network using micropython language. The network module is used to configure the WiFi connection.  There are two WiFi interfaces 1. one for the station (when the NODEMCU connects to a router)  2. one for the access point (for other devices to connect to the NODEMCU). Here we are connecting NodeMcu to a Router. Step 1: For connecting your NodeMcu to network first open the Esp...

Programming NodeMcu 12-E through WEB-REPL Protocol using Micro-python

Image
Programming NodeMcu 12-E through WEB-REPL Prompt using Micro-python  Getting Micro-Python REPL prompt  REPL stands for Read Evaluate Print Loop, and is the name given to the interactive Micro-Python prompt that you can access on the ESP8266. Using the REPL is by far the easiest way to test out your code and run commands. There are two ways to access the REPL: either via a wired connection through the UART serial port, or via WiFi. Here in this we will come to know about the Web-REPL prompt over a WiFi  Web-REPL Prompt using WiFi: Web-REPL allows you to use the Python prompt over WiFi, connecting through a browser. The latest versions of Firefox and Chrome are supported. For your convenience, WebREPL client is hosted at  http://micropython.org/webrepl  . Alternatively, you can install it locally from the the GitHub repository     https://github.com/micropython/webrepl  . Connecting through Web-Repl: 1. Open ...
Image
          Blinking Led Program using Micro-python on Nodemcu Micro-Python    is a  software  implementation of the  Python  3  programming language , written in  C , that is optimized to run on a  microcontroller .  Micro-Python is a full Python compiler and runtime that runs on the micro-controller hardware. The user is presented with an interactive prompt (the  REPL ) to execute supported commands immediately. Included are a selection of core Python libraries, Micro Python includes modules which give the programmer access to low-level hardware. Here in this blog Iam just working on Nodemcu 12-E micro-controller for blinking of Led. The pin diagram for the connection is given in the fig. We all know about the blinking of led program the algorithm for the blinking is that , the led get on for some small span of time and it get off .After getting for sometime it get on again and this pro...