Hi All!
I am pretty novice in Arduino, but understand most programming concepts and have worked mostly in Python and VBA. I am struggling in the Arduino IDE and need some help. I am trying to send and receive serial information using UART protocal to a motor control board to control RPM.
What I need:
-I need to convert multi-digit Decimal to Hex[16] nibbles. For example 802466 --> 0X02 0XA 0XE 0X03 0XC 0X00 0X00
-- have found several different ways to convert Decimal to hex, but none that breaks it into nibbles
-I also need to convert it back to Decimal form.
If I can do that I think I can figure everything else out, but if you know any tricks or shortcuts to simplify defining the UART protocol in Arduino that would be much appreciated!
Thank you!