Skip to content

Silverlode76/STM32_Uart_Esp8266_Webserver

Repository files navigation

This Tutorial is based on https://controllerstech.com/send-and-receive-data-from-the-webserver-using-stm32

THANKS A LOT FOR SUCH A GREAT TUTORIAL

Here, we will switch 2 LEDs ON / OFF per WiFi

Circuit Diagram: image

Needed HW:

  • STM32F103C8T (Bluepill)
  • ESP8266 Wifi
  • USB-Uart to PC
  • ST-Link V2

Short Overview:

  • We use for UART Communication Uart_isr because we use ringbuffer
  • We have a Server on STM32 which generates the Webpage

Configuration:

image

  • UART3 goes to WiFI
  • UART1 goe to PC
  • For both UARTS we use ASYNCHONOUS and global Interrupt enable. Baudrate is set to 115200 Bauds

image

image

Functions:

  • in "ESP8266_HAL.c" assign your uarts

image

  • in "stm32f1xx_it.c" put isr routines ans comment standard IRQHandler

image

  • in "main.c" function ESP_Init() is trying to access your WLAN-AP. You have to put here your W-Lan and Passwd

image

Checks:

  • If everything works fine you should see in PC UART that we have an access point

image

  • Open in the Browser the IP and you will see follwing screen

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published