- Wed Nov 27, 2013 12:00 am
#165987
Hi, Im a very new user to the arduino, and i need help getting started with a project.
I have a sensor that outputs 77 bits of binary code in 140ms,
I believe it is manchester coding, this data contains 6* 2 digit hex numbers. I need to be able to send this binary data to the arduino . initially it would be good to show the incomming data on the screen.
1111111001010011010101000110011111001101000110110110111111011001110000000
11111110 01 01001101 01 01000110 01 11110011 01 00011011 01 10111111 01 10011100 00000(spaces added by me to show data split)
This converted to hex should give 4D,46,F3,1B,BF,9C
I believe the 1111111 start sequence is posibly to inform the receiver that data is being sent and the 00000 at the end informs the receiver that is the end of the string.
The end result im looking for is the arduino to read the binary data and convert it to hex and display either on screen or lcd display.
The sensor has two output connections that i have connected to earth and Digital pin 2.
I now strugling to make anything happen. Im not sure of the Baud rate. I have tried some code obtained from various sources but nothing seems to happen.
Like all tasks in life it seems the first steps are the hardest.
Any help greatly received.
I have a sensor that outputs 77 bits of binary code in 140ms,
I believe it is manchester coding, this data contains 6* 2 digit hex numbers. I need to be able to send this binary data to the arduino . initially it would be good to show the incomming data on the screen.
1111111001010011010101000110011111001101000110110110111111011001110000000
11111110 01 01001101 01 01000110 01 11110011 01 00011011 01 10111111 01 10011100 00000(spaces added by me to show data split)
This converted to hex should give 4D,46,F3,1B,BF,9C
I believe the 1111111 start sequence is posibly to inform the receiver that data is being sent and the 00000 at the end informs the receiver that is the end of the string.
The end result im looking for is the arduino to read the binary data and convert it to hex and display either on screen or lcd display.
The sensor has two output connections that i have connected to earth and Digital pin 2.
I now strugling to make anything happen. Im not sure of the Baud rate. I have tried some code obtained from various sources but nothing seems to happen.
Like all tasks in life it seems the first steps are the hardest.
Any help greatly received.