Hello, I am making an application as a project, which relies on haptics. Therefore i need to turn 9 servo motors with commands. I designed a 9 button schematic which is connected with a bluetooth client to send the codes, however because the codes being text and the servo motors only gain command as number, the servo motors are not turning. How can I solve this problem?
Design and code are like this:
There is a problem with trying to send two digit numbers as text, and reading the incoming text one character at a time.
Instead of text, take advantage of you low valued int coding scheme for your data traffic and switch to sending commands as single byte values (0-255), and receiving them from Serial.read() into an int variable, as in this sample:
With the rework I still couldn't make the servo motors turn with the code, it is most likely either a problem with the arduino code or with my system itself. Thanks for the help