The photoelectric effect is an important phenomenon in the teaching of Modern and Contemporary Physics in Engineering, as it allows contextualizing science teaching in technological applications associated with the emission and transformation of light. Our research question is:" Can photovoltaic cells be used in the physics lab to teach engineering students the photoelectric effect?" The literature suggests photovoltaic technology, driven by the STEM movement (Science, Technology, Engineering, Mathematics) to teach the photoelectric effect in Engineering. An experiment was structured using a photovoltaic panel for didactic use at night, with artificial lighting, using different types of lamps. We applied the experiment in the classroom using pre and post-tests and an interview. The results of this experiment showed that after using photovoltaic cells it was possible to verify that students correctly correlate the photoelectric effect with the frequency of incident radiation and no longer with the intensity of light. The application of didactic methodology within the scope of Engineering courses also contributed to the integration of teaching, research, and extension in the community, in addition to allowing the student to reflect on the social changes resulting from scientific and technological evolution can contribute to sustainability and changes social and environmental.