I try to send a command to the Arduino to turn a servo motor. I enter the command in CAN MONITOR, the motor turns, but when I send the command through a virtual button, nothing happens. I am uploading my codes please help me with this thing
Simple command
Is there no one here who can help?
Even the developers. I got the solution in the Arduino forum
But I was left with a delay problem, sometimes it takes three or four clicks on the button for the code to work
Its difficult to help on this sort of projects over the forum. There is so many ‘moving parts’, so you have to be realistic on amount of help you will receive.
Only thing I can see from your XML is that you use baseId=“3200” and frame id=“3200” which probably is not what you want.
I don’t see any code that is sending or receiving the CAN frames. I get a feeling that you are just throwing code/xml around without understanding what you are doing.
See our Arduino examples and try to understand how CAN frames are sent/received from Arduino device. Also, consider asking for a friend or colleague to sit with you for a day to get the basics right.
Thank you very much for your patience, in the end I was able to write a code, a command is accepted and the servos move, only there is a serious delay, I connected Serial Debug with another Arduino board and I see that the board receives frames from REALDASH without sending a command. The message that is received is
That in your XML is causing that. You can remove the writeInterval, as when you change values in RealDash with Actions, the frames should be written automatically as soon as data changes.