Code for CDMA transmission and reception for 2 users (image transmission)
ALGORITHM USED
- Took different images as input 1 and input 2.
- These images where then resized and reshaped suitably.
- Since both of them produce different length arrays, Zero padding operation is performed.
- Now the user1โs and user2โs input is converted to Bipolar NRZ
- Assumed the carrier frequency as 1, Energy per bit as 2, and time per bit of message sequence as 1.
- Designed the CDMA transmitter for user1 and user2.
- BPSK modulation was implemented for both.
- Generated PN sequences and multiplied with the modulated output.
- Composite signal was obtained by adding outputs of both users from above step.
- This signal was then passed through AWGN channel, with SNR(dB)=50.
- Signal received was then recovered and correlated with the code.
- BPSK demodulation was implemented and image was reconstructed.