Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How to read a XML file in ARDUINO uno R3 for linear position motor control?

I have generated a xml file in visual studio for the motor control. i have to control the motor through Arduino. How can i read the xml file values



XML
for example <direction> 10 </direction>
    <speed> 120 </speed> so on....in Arduino


I am new it would helpful if someone helps or give an example or how to proceed. Thank you.

What I have tried:

i have tried to give the direct values in arduino since i ma not familiar with this i did not have any idea how to approach
Posted
Updated 5-Jul-17 2:16am

1 solution

Why possible it is not recommendable, in my opinion, to make a XML parser for Arduino.
I suppose you should go the way opposite: that is find (or invent) a protocol which the Arduino side could easily understand and rewrite your C# program in order to send commands using such a protocol.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900