Asked — Edited
Resolved by DJ Sures!
I am trying to make a plugin.
How can I send a non int number from arduino firmware to ARC plugin?
For example, if I have the command "COMMUNICATION_PORT.write(Variable);" on the arduino side, what should the command be in visual studio to read the variable?
DJ, could you publish the wheal encoder plugin on github?
Related Hardware Arduino Genuino Uno
Related Control Wheel Encoder Counter
Upgrade to ARC Pro
ARC Early Access will give you immediate updates and new features needed to unleash your robot's potential!
The EZB protocol is synchronous and polled. So the robot skill plugin will need to poll the ezb for the data. You'll have to create a capability or re-use an existing one. This allows your firmware to be registered as a capability controller. Then on the robot skill side, simply poll/query the data from the EZB.
Check out the example of the wheel encoder and firmware - also here's the EZB communication protocol: https://synthiam.com/Support/EZB-Firmware/communication-protocol
Let me know if you have any questions - or tell me what you're desired outcome is and I'll direct you to the right places.
My youngest son says the water is warm...
I am using this code on the Arduino to send a temperature value from the variable "Temp". The values are decimal, for example 22.03.
On the plugin side I read the "Temp" value like this:
How can I get decimal numbers?
On the receiving end, get the response as an int16. Then divide the value by 10 and cast to a decimal, double or float.
I can write the code for you but I don’t want to give it all away until you’ve had a chance to try