-
Notifications
You must be signed in to change notification settings - Fork 2
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
Create a bluetooth interface to start the car #207
Comments
Code needed to run the Servo driver
|
We tried to move the car forward with a phone via bluetooth with this code:
Note: This code is not commented but @Carolf27 will do that when possible Resultof using this code: The car responded to the "off" button. |
This is the code used with comments. To run this code you need to install the BluetoothSerial and the Adafruit PWM Servo Driver Library libraries installed in Arduino IDE. You also need to install the Serial Bluetooth Terminal app installed in your phone.
|
@andrefdre from wich file did you get this code? Because now we can make the car go forward and backwards and we want to use the steering servo to make it go left and right and i don't know what is its channel |
I took that code from the code we have in the car. It's in the dev branch inside Prometheus_bringup |
After getting the car to move forward and backwards we got the car to go left and right by changing the servo dir angle. This is the code final code:
With this code we can speed up and slow down the car, we can make it turn to left and right and we can make it stop, with a smartphone via bluetooth. |
In the competition there is time frame where the car must start moving after a bluetooth signal is sent, coincident with the greenlight a luminous signal, the purpose of this issue is to create an bluetooth interface to accomplish this objective
The text was updated successfully, but these errors were encountered: