Socket programming with TCP using Micropython in ESP8266

Keywords: Socket, Socket programming, TCP/UDP Continuation tošŸ¤”socket programming. There are two widely used Socket types, stream sockets, andĀ datagram sockets. Stream sockets treat communications as a continuous stream of characters, while datagram sockets have to read entire messages at once. Each uses its own communications protocol. Stream sockets use TCP (Transmission Control Protocol), which is a reliable, stream oriented protocol, and datagram sockets use UDP (User Datagram Protocol), which is unreliable and message oriented. TCP socket runs on top of IP (Internet Protocol). TCP is a connection-oriented communication protocol. What is…

Read More

Interrupts in ESP8266 using MicroPython

Keywords: Interrupts, GPIO, ESP8266, MicroPython, uPyCraft Prerequisites Complete set up of uPyCraftIDE Hardware – ESP8266 Dictionary meaning of Interrupt is to break some continuity. If we relate this to micro controller terminology this means when an interrupt happens, the processor stops the execution of the main program to execute a task or process or thread, and then gets back to the main program. Hardware interrupt A hardware interrupt is an electronic alerting signal sent to the micro controller from an external device, like a button or an external peripheral. For…

Read More

Connect ServoMotor to Internet using MicroPython

Keywords: MQTT, IoT, Motor Control, PWM control, GPIO, ESP8266-ThingSpeak, Connecting ESP8266 to WiFi, ESP8266, MicroPython, uPyCraft, Connecting ‘Thing – ESP8266’ to ‘Internet’, ESP8266-IoT   We hear many times the word IoT, after all what does this word mean – Internet of Things, that seems to be the full form but what does Internet of Things mean??????? Yes you guessed it right, connecting Things to Internet. Things can be sensors, machines, cars, etc. I have ‘Things’ with me like motor and LED, now I have to send the motor average voltage…

Read More

Getting started with Micropython for Microcontrollers

Keywords: ESP8266, MicroPython, COM port for ESP8266 not detected, uPyCraft, GPIO control, IDE for micro python, ESP32Ā  Have you ever wondered why do we need Python for micro controllers ??? Yes you got it right it is widely used language for Machine learning and Artificial Intelligence. With increasing market in Data Science, Machine Learning and Big Data, I being an Embedded Engineer gave a thought and made some use cases which requires a combination of hardware and software mainly python. The simplicity of the Python programming language makes MicroPython an…

Read More