Abstract
This paper compares an innovative approach to teaching an introductory C programming course to a traditional C programming course for electrical engineering students. Students who pass either course must subsequently take a traditional intermediate C programming course. The novel course utilizes hardware-based projects to motivate students to master language syntax and implement key programming concepts and best practices. In addition to comparing the attitudes and self-perceptions of the students in each of the introductory courses, we also look at success rates for each cohort in the intermediate programming class as well as their progress toward their degrees. The electrical engineering students who took either introductory class on average had identical GPAs. However, students who took the novel introductory C course did somewhat better than the other cohort in the intermediate traditional class. Furthermore, after students took the novel course, they were more likely to feel that they fit in as electrical engineers and less likely to believe that programming was "not real engineering." This increase spanned a number of subgroups within the course, including students from underserved populations.
Introduction: The Programming Identity Crisis
For many Electrical Engineering (EE) students, introductory programming courses are often perceived as a hurdle to be cleared rather than a core component of their professional toolkit. Traditional "paper-based" coding—where assignments are confined to a terminal environment—can feel disconnected from the physical world of circuits, motors, and systems that define the major.
This disconnect creates two significant barriers to student success:
- The Identity Gap: Students frequently view programming as "not real engineering," which leads to lower motivation and a diminished sense of belonging within the field.
- The Efficacy Gap: Without a physical context, abstract concepts such as memory management, bitwise operations, and data types can be difficult to grasp, resulting in struggles when students reach intermediate and advanced coursework.
Researchers at the University of Maryland addressed these issues by redesigning the introductory experience to demonstrate that code is the essential "glue" of modern hardware systems.
Methodology: Syntax vs. Systems
The study compared two distinct versions of an introductory C course. The Traditional Course was a 2-credit curriculum focusing on standard syntax, logic, and individual computer-based assignments. In contrast, the Novel (Hardware-Driven) Course was a 3-credit curriculum that added 25 minutes of lecture per week and a mandatory three-hour lab.
As shown in the learning objectives, the novel course expanded beyond syntax to include operational familiarity with electronic components, sensors, and actuators, as well as an emphasis on teamwork and communication. While the traditional course focused on UNIX and fundamental data structures, the novel course prioritized the enabling role of programmable devices in technological systems.
The Hardware-Driven Approach
The novel course utilized Raspberry Pi 3B kits to ground abstract concepts in physical reality. Students progressed from simple "Hello World" exercises to building systems involving photoresistors, Morse code generators, and distance sensors. The course culminated in a collaborative group project where teams programmed a vehicle to navigate an obstacle course autonomously using ultrasonic sensors.
By seeing code physically move a motor or interpret sensor data, the abstract became tangible. This collaborative environment mirrored real-world engineering practices and contributed to higher student satisfaction compared to the individual focus of the traditional track.
Results: Bridging the Efficacy Gap
The impact of the hardware-driven approach was measured through academic performance in subsequent courses, retention rates, and psychometric surveys.
- Academic Success: Students from the hardware-driven introductory course earned an average GPA of 3.22 in the subsequent, rigorous intermediate C class, compared to 3.11 for the traditional cohort. This suggests that the hardware context provided a stronger foundation for advanced coding concepts.
- Retention and Passing Rates: Retention in the EE major was significantly higher for the novel group (94%) compared to the traditional group (87%). Furthermore, 98% of students passed the novel course, while only 95% completed the traditional course.
- Identity Shift: The most significant shift was in professional perception. Students in the hardware course were much more likely to disagree with the statement "Programming is not real engineering" by the end of the term. In the 2015 cohort, students showed a statistically significant improvement (a shift of +0.8 on a 7-point Likert scale) in feeling like they "fit in" as electrical engineers. This was particularly pronounced among students from underserved populations, suggesting that hands-on work helps bridge the belonging gap.
Conclusion and Future Directions
While the novel course proved highly effective, the authors acknowledge challenges in scaling the model, primarily due to the resource intensity of providing hardware kits and the logistical demands of lab-heavy instruction. However, the success of the pilot has led to the development of a "technology-driven" version of the intermediate C course, focusing on advanced topics like unit testing and dynamic memory through the lens of networking and security projects. By integrating hardware early, educators can foster a stronger professional identity and better prepare students for the complexities of modern electrical engineering.
Summary updated