Robotics-Club-BMU / Ardutronics

A Repository Dedicated To Arduino And Electronics.
1 stars 7 forks source link

Control LCD screen with Flask server using arduino #66

Closed anmolj7 closed 3 years ago

anmolj7 commented 3 years ago

Related Issue

closes issue #55

LCDScreenWithPython

This is a project that allows a user to control the arduino connected to a display using flask server.

Code

The project includes 3 main files

server . py

Includes the code for flask server, which can be opened from any device in the same wifi network by using the ip address of your machine, and the port 5000. To find the ip address of your machine, you can just use the ipconfig command in windows, and ifconfig in linux. It communicates with the arduino using the pyserial module, and for linux, the serial port is /dev/ttyACM0, which would be different for windows.

code.ino

Includes the arduino sketch for the lcd module. Features that arduino code has 1) Increase the counter, by 1, or decrease by 1 2) Set the counter to a particular number 3) Changing the text 4) Be able make the text slide

home.html

Includes the template for home view, uses ajax to send the data to the server.

Photo:

image

You can find the demo video here.