TinkerCAD Serial Comm using 38kHz

For Electrical Engineering I've been tasked with simulating IR communication of 38kHz. Due to Corona, I've been confined to using TinkerCad which has a limited amount of options. The goal is to generate a 38kHz carrier wave from a transmitting Arduino to a receiving Arduino and being able to carry info across the carrier wave (with no libraries).
I've been playing around with it for a bit but have been either confined to the limitation of TinkerCAD's processing ability or errors of the code.

Transmitter Code

// defines for setting and clearing register bits
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif

#define SYSCLOCK 16000000  // main system clock (Hz)
#define PULSECLOCK 38000  // Hz
#define IROUT 11

uint8_t timer2top(unsigned long freq) ;

void setup() {
 Serial.begin(9600) ;

 cbi(TCCR2A,COM2A1) ; // connect OC2A (COM2A0 = 1)
 sbi(TCCR2A,COM2A0) ;
 
 cbi(TCCR2B,WGM22) ;  // CTC mode for TIMER2
 sbi(TCCR2A,WGM21) ;
 cbi(TCCR2A,WGM20) ;
 
 TCNT2 = 0 ;
 
 cbi(ASSR,AS2) ;  // use system clock for timer 2
 
 OCR2A = 255 ;   // set TOP to 255 for now
 
 cbi(TCCR2B,CS22) ;  // TIMER2 prescale = 1
 cbi(TCCR2B,CS21) ;
 sbi(TCCR2B,CS20) ;
 
 cbi(TCCR2B,FOC2A) ;  // clear forced output compare bits
 cbi(TCCR2B,FOC2B) ;

 pinMode(IROUT, OUTPUT) ;  // set OC2A to OUPUT  
 OCR2A = timer2top(PULSECLOCK) ;
 sei() ;
}

// main loop
void loop() {
	Serial.println("1") ;  
  	delay(5000) ;
}

// return TIMER2 TOP value per given desired frequency (Hz)
uint8_t timer2top(unsigned long freq) {
 return((byte)((unsigned long)SYSCLOCK/2/freq) - 1) ;
}

Receiver Code

void setup() {
 Serial.begin(9600) ;
}

void loop() {
 int n, i, ch ;
 
 n = Serial.available() ;
 if (n > 0) {
       i = n ;
   while (i--) {
     ch = Serial.read() ;
     Serial.print((char)ch) ;
   }
 }
 delay(1000) ;
}

I've been able to use jmknapp's code to generate
I've had the problem of either the Arduino not being able to decode the message or just not being able to handle the load of the carrier wave as when I try to connect the Pin11 from Transmitter Arduino to the RX on the Receiving Arduino, TinkerCAD doesn't even load. I've tried TX from Transmitter Arduino to RX on the Receiving Arduino but still does not work

Any help would be extremely useful.
Thank you in advance