Hey everyone, I spent the last few days making a piece of code to work on the microcontroller and now am done with it.
This is what I have achieved till now:
1) I can wirelessly transfer data from one computer to another using simple OOK Tx and Rx, to which I had to shift because o the unavailability of the 3.6 Volts regulator IC TM55 3601. Though it came along with some noise, but the data was intact and received as it should be.
2) Assuming that the first data bit might be lost in transmission, I have decided the following protocol after reading a post on it on Net;
Databyte 1: Synchro byte (* in my case)
Databyte 2: Synchro byte(*)
Databyte 3: Address of Device(for example 1)
Databyte 4: Command byte(to turn pin x ON on Port B, if data matches)
Databyte 5: Checksum byte = Databyte+Address(1+A=r)
I coded the microcontroller using this logic and was able to successfully receive the data and turn on the ports
If synchro byte 1 gets corrupted, code ignores it and watches for the second synchrobit, which should be uncorrupted as per the assumption. If whole data is corrupted, checksum fails and nothing happens, data is discarded.
Now I am trying to send data from computer to Microcontroller through Wireless Rx and Tx.
But the microcontroller works on a different logic level.
Transfering data from computer to another computer involved use of MAX232 in between which accepted data above .8V as input. So it could detect my data. The voltage across data terminals of Rx is around 1.5 - 2 Volts, which is not enough to be detected as positive logic by the microcontroller. So it receives nothing. Tried using BC548 to amplify the signal using 4.7K resistors, but then the ever persistent noise also gets amplified and data is never received as it should be.
So what could be the possible solution for this?
Receiver(rough)
Tranmitter(rough)