Hello.. newbie here.. mild experience designing my own stuff... (been playing with Basic for 20 years)
I have a project that involves receiving data from an Arduino over the serial port... and I'm working on parsing that data
currently, the data comes in a message, with part of the message being the type of data it contains.. on the Arduino side of it, I have no problem converting a floating point (or any other.. integer, etc) number to it's binary representation using a union.
On the VB side of it, the math is really simple and can be done in a bitwise manner for integral types.. but for floating point numbers, how would I go about this?
I will also need to do the reverse operation to send data back to the Arduino.. I will have a floating point (Single or Double) that I need to convert into binary form to send back.
Any tips on how to go about this?
Thanks.
I have a project that involves receiving data from an Arduino over the serial port... and I'm working on parsing that data
currently, the data comes in a message, with part of the message being the type of data it contains.. on the Arduino side of it, I have no problem converting a floating point (or any other.. integer, etc) number to it's binary representation using a union.
On the VB side of it, the math is really simple and can be done in a bitwise manner for integral types.. but for floating point numbers, how would I go about this?
I will also need to do the reverse operation to send data back to the Arduino.. I will have a floating point (Single or Double) that I need to convert into binary form to send back.
Any tips on how to go about this?
Thanks.