![]() The transmission was coming in fine, but as HEX. The VirtualWire library had a couple examples of this, so it worked pretty well. Getting this transmitting was no problem. Broadcasting something like 1139, 1072 or 1008. This three character string would be then prefixed by the one character ID. So essentially '139' would remain unchanged, '72' would be prefixed with a '0' to make the string '072', and '8' would be prefixed with two '0's to make '008'. Then this number was converted into a string, and prefixed with a number of '0's to ensure the string length was 3 characters. This was generated by a potentiometer reading being mapped from 0-1023 to 0-170. The 0-170 value was so that the receiver could forward this onto the servo, which would then the volume knob. The goal was to set up the transmitter sending a numerical ID and a value between 0 and 170. It wasn't quite as hard as I expected, but still took a little while to get sorted. Getting the transmitter transmitting data other than the binary ones and zeros went kinda well.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |