helo…
for my final year project i want to generate some binary bit stream with 12 bits (eg:- 0111 1010 0011)
from one arduino and recevie the binary data through another arduino and store into variable… any possibilites doing this ?
we are trying to do a poweline communication project. from the trasmitter i need to send 12 bit stream which contains information about reciver side 3 equipments. In 12 bit sream it is like a protocol, from 1st 4 bits it indicates the starting of the process process and 2nd 4bits is for address of quipments, and last 4 bit is for weather on/off of the selected equipment. (something like state machine)
any idea how to generate 0111 1010 0011 and read it using another arduino??
what are the suitabe built in functions for generating and receving binary bit stream?(sorry my kniwldge on funtions are v. low) i don/t want to send as strings or whole decimal number… only binary bit stream
Yes, take a look at Robin2's thread on Serial Basics. Sorry, but I don't have the link to it right now, so you'll just have to search the forum for the thread.
What exactly are you planning to do with the project?
i was serching for this from last week. i couldn't find what is suitable for my work
we are trying to do a poweline communication project. from the trasmitter i need to send 12 bit stream which contains information about reciver side 3 equipments. In 12 bit sream it is like a protocol, from 1st 4 bits it indicates the starting of the process process and 2nd 4bits is for address of quipments, and last 4 bit is for weather on/off of the selected equipment. (something like state machine)
any idea how to generate 0111 1010 0011 and read it using another arduino??
what are the sitable functions for generating and receving binary bit stream? i don/t want to send strings.. only binary bit stream
Best is to define a protocol. It will usually contain a start byte, a length indication, the actual data, a checksum or crc and an end byte. The length might be obsolete in this case.
Link to Serial Input Basics but it may not be very useful in this case as the examples assume there are at least two byte values that can never occur in the data.
Using start and end markers is a little more tricky if the data can contain any byte value from 0 to 255. If you can afford to exclude two values from that range it makes life very much simpler - for exmple treat 253 as the max value and leave 254 and 255 for markers.