EMB ERJ 145 ER/LR
Flight Crew Air Transport Pilot (ATP)
Aircraft Equipment Problem Critical
Air Traffic Control Issued New Clearance; Flight Crew Diverted; Flight Crew Landed As Precaution; General Declared Emergency; General Maintenance Action
Aircraft; Weather
We were on a heading diverting north of ZZZ at FL340 when the First Officer side pitot froze up. Right at this time we both saw lightning flashes and smelled something burning (may have been ozone). EICAS showed an SPS [Stall Protection System] Advanced and MFD had a CAS message. Airspeed on First Officer side started dropping and eventually went to zero and displayed no data (X's). Autopilot failed and we requested a descent to get down to an altitude where the temperatures would be above freezing. Our alternate was ZZZ1 and we declared an emergency and told Center that we wanted to divert there. In the descent the pressurization failed.  We notified Dispatch and Maintenance that we were diverting. We told the Flight Attendant that we were diverting and made an  announcement to the passengers.  Once we got around 10;000 the pitot unfroze and the aircraft was back in a desirable aircraft state. We continued with the diversion to ZZZ1 and landed uneventfully. Taxi to gate and called Maintenance Control to have Contract Maintenance sent to the aircraft. Pitot system frozen (ADC Failure) with convective weather nearby. Other than exiting freezing conditions I don't think there was much more we could do. Our destination airport had gone into holding for the same line of weather we were trying to avoid and we were not going to head into holding with an ADC failure & possible lightning strike.
EMB-145 Captain as flying pilot reports loss of the First Officer's airspeed indication at FL340 along with lightening and a burning smell. Captain elects to divert to an alternate and an emergency is declared. During descent the pressurization system failed and the First Officer's airspeed indicator begin working.