Good evening everyone
I have finished building the body for my RC Car and have attached the 2 motors, battery pack, the raspberry pi, motor board and ultrasonic distance detector.
About 10 days or so ago I requested help with which GPIO pin numbers to assign to the motor terminals - the code for that I have adjusted and the wheels turn fine when I write predetermined seconds for them to turn.
Now I would like to be able to control the movement of the car from my PC keyboard through the WiFi at home - I understand you can do this using Putty which I have installed and will look at later. Right now I would like to know if I can use the Python module "Pynput" to tell the vehicle to move in all directions based on "WASD" keys.
I have tried downloading and installing "Pynput" but when I started writing the code in Python:
from pynput import Key, Controller
I got the following error:
"from pynput import Key, Controller
ImportError: No module named pynput"
I tried downloading/installing the module using the terminal but it is not working. I tried:
"sudo pip install python-pynput"
"sudo apt-get install python-pynput"
Neither of these works. Has anyone used this module in the past for such a project? I know pygame also has the ability to read what key the person has pressed but I am not sure that makes sense to use here.
Thank you in advance!