I would like to control my dc motor with IR receiver and motor driver. I can control the dc motor in serial monitor user input. I use the code as below link. I can change motor speed to increase motor speed %10 with 4 input and to decrease 5 keyboard number. It works as well.
I have already bought IR Receiver then I would like to control motor speed volume button. I know each button are assigned hex code ir library for example vol+ button hex code is FD807F. I tried to merge two code which code as above link and this youtube video https://www.youtube.com/watch?v=uPbwEO5aL2w
I uploaded my code which has already merged but it doesn't work. How can we fix this code and use IR Receiver.
I, and other members, do not like to download code. Read the forum guidelines to see how to properly post code and some information on how to get the most from this forum. Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
this motorB1Pini is INA pin for the motor driver. INA and INB control motor rotation for example INA = HIGH and INB = LOW mean motor rotate right then INA = LOW and INB = HIGH mean motor rotate left.
What version of the IRremote library are you using? The above code is for the older (<3.0) version of the library. See the GitHub reference for how to write code for the newer version.