Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending Motor Data from Website To ESP32 #12

Open
2 of 8 tasks
MahdMalik opened this issue Feb 6, 2025 · 0 comments
Open
2 of 8 tasks

Sending Motor Data from Website To ESP32 #12

MahdMalik opened this issue Feb 6, 2025 · 0 comments

Comments

@MahdMalik
Copy link

MahdMalik commented Feb 6, 2025

Description:
Data about the motor's direction needs to be sent from the website to the motors. To do this, first we need to get what keys the user inputs (such as which arrow keys or WASD keys are pressed), and then send the keys that are pressed to the Raspberry Pi server through a socket. Then, upon receiving this direction, our Raspberry Pi then sends data through wifi to our ESP32. This ESP32 then decodes the keys that are being pressed, and then accurately sends pulses to the motor to move the robot accordingly.

TODO:

  • Have Raspberry Pi be able to move the robot.
    • Have Raspberry Pi send input data through wifi to the ESP32.
    • Have ESP32 decode the data sent to get what keys the user is pressed.
    • Correctly send PWM signals to the pins connected to the motors, to have the motor receive movement signals. Should have advanced features to account for accelerating, decelerating, and turning.
  • Have user input from the website during a game be sent to the Raspberry Pi.
    • Have the website and Raspberry Pi first create a tcp socket connection.
    • Have the website send input data, and have Raspberry Pi read the input data.
  • Put the code all together, such that the website sends data to the raspberry pi which then sends data to the esp32 which then controls the motors.

REQUIRED SKILLS.

  • Esp idf
  • Socket programming
  • C++ (for esp32), Typescript (for website_, Python (for Raspberry Pi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant