hello I want to realize the openRC-F1 project and I use an arduino nano and an HC-06 bluetooth module to control the motor with the ESC.
I manage to run the motor by putting fixed values in the code but I can't control it remotely with my phone and a slider. here is the code I am using:
Thank you very much for your help, yes the app send a value between 1000 and 2000 but i can change to 0 -> 255 if its necessary.
how do I match 0 to 1000 and 255 to 2000? 1000 is the maximum reverse speed value and 2000 the maximum forward speed value. I tried to integrate your command line but without success
I started checking that the arduino was indeed receiving the data and it is. here the arduino receives the correct value that I sent. The motor is then supposed to run at the speed corresponding to 1399 as if I simply did: esc.writeMicroseconds(1399);
The engine control is random and partially works with bluetooth. I think my code design is wrong.