This paper reports on an AI-supported educational framework for teaching software architecture and prototyping in embedded systems. The course, developed at the University of Genoa, integrates basic modelling techniques - such as UML diagrams, finite state machines and communication protocols - with local generative AI (GenAI) tools. Students engage in project-based learning, supported by systematic prompt engineering and iterative co-design with AI collaborators.The course is structured in two phases: the first phase is theoretical instruction on architecture and communication, followed by the second phase of real-time prototyping on Arduino platforms. The integration of AI in the course is centred on facilitating the generation of UML diagrams, component design, code development, and debugging, with a focus on transparency and critical evaluation.Empirical results show increased development speed, deeper architectural reasoning, and improved engagement. The framework also promotes emerging skills in human-AI collaboration and digital project management, offering a reproducible model for modern engineering education.