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

Socket Programming in ESP8266 using MicroPython

Keywords: Socket, Socket programming, TCP/UDP   Dictionary meaning of a Socket – an electrical device receiving a plug or light bulb to make a connection. In computer terminology, when a computer program needs to connect to Internet, it uses a software component called a socket. The socket opens the network connection for the program, allowing data to be read and written over the network. Please note that these sockets are software networking sockets, unlike hardware sockets these sockets will not give any shock ☠ 😄. When two computers or processes…

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

Connecting ESP8266 to WiFi using MicroPython

Keywords: Connecting ESP8266 to WiFi, ESP8266, MicroPython, uPyCraft, Connecting ‘Thing – ESP8266’ to ‘Internet’, IoT With ever growing Internet of Things industry a self-contained Wi-Fi networking capability MCU helps in understanding not only the data connectivity part but also the components involved in cloud. I being an Embedded engineer who worked on IoT products thought of putting my study and practical understanding of end to end concept which would help the readers to understand very easily. For that I choose ESP8266 MCU which can perform a standalone application with WiFi…

Read More

Servo Motor control using MicroPython

Keywords: DC Motor control, ESP8266, MicroPython, uPyCraft, GPIO control, PWM control using micro python, ESP32, Servo Motor, DC motor basics, Applications of DC motors I am with Electrical background and have my love towards Motors. I wondered many times how to choose a low power DC motor in any Embedded Application. Here is my version of DC motors with Micro-controllers concept and how to control a ‘Servo motor’ using ESP8266 using MicroPython. Before that I want to explain basics like actuator, motor, BLDC, PMDC etc. ACTUATOR: Actuator is a device…

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