i am using xbee pair to transmit sensors data from one arduino to a receiver arduino and i want to filter the sensor data using the butterworth filter individually on each sensor data over the receiver module not on the transmitter module
As i am just getting continuous data from six analog sensors and nothing else on receiver side.
like;
232
214
363
288
364
655
on the serial monitor.
Each of the above data belongs to sensor from A0 to A5 respectively.
How can i format this raw data from transmitter side so that i can differentiate between data received from sensors over the receiving side and also process that data over the receiving side and also apply the appropriate digital filters (software filters ) on the receiving side.
The data comes in as serial data. Serial data delivery is not guaranteed. How are you planning to deal with a missed/mangled/lost byte? If 6 values represent 6 sensors, and one of the values gets lost, you will assume that the next 6 values, for sensors 1, 2, 3, 5, 6, and 1 (for instance), are the values for sensors 1, 2, 3, 4, 5, and 6.
If you send data like "<120, 435, 720, 800, 14, 140>", you have sync markers, so you can tell when a whole value is lost. If you add a count, like <nn:120, 435, 720, 800, 14, 140>" (were nn is the number of bytes in the packet, not counting the markers or the length), you have a good idea whether the correct number of bytes is received to make up a whole packet.
Beyond that, what have you tried, and what problems are you having?
can you tell me how to transmit data in packet format so that i can keep track of my lost data
and how to decode that data at the receiver side so that i can perform various data refining operation on individual sensor data separately ?
please try to provide a simple sketch for transmitting data for two or three sensors in packet format
and a sketch for decoding that data on receiver side.
can you tell me how to transmit data in packet format so that i can keep track of my lost data
I already did.
and how to decode that data at the receiver side
Sure. Show the code on the sender, and we can write matching code for the receiver.
so that i can perform various data refining operation on individual sensor data separately ?
What "data refining operations" do you need to perform.
please try to provide a simple sketch for transmitting data for two or three sensors in packet format
and a sketch for decoding that data on receiver side.
While you do what? If you expect someone to write code for you, head over to Gigs and Collaboration, and offer to pay.