it doesn't work well
is there is tutorial
or code can help me
well, i send binary data
what i need to change in the receiver code
val = analogRead(potpin); int val2= String(val,BIN).length(); val2 = map(val2, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180) Serial.write(val2);
You convert the value you got from analogRead() to a String, in binary format, then take the length of the String, scale it and send that value to the receiver.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16