Category: Information
Postgraduate Initiatives and Incentives
Artificial Intelligence – Python Programming – Train the Trainers Workshop
A 4-days workshop crafted for academicians from Polytechnics Malaysia.
I recently conducted a comprehensive 4-day workshop to introduce participants (among academicians from Polytechnics in Malaysia) to both fundamental and advanced topics, offering hands-on activities that showcased the powerful applications of AI, electronics, and programming.
Thank you Pn Azlyn for coordinating the communication and facilitating the process :).
Below is a summary of the activities we conducted over the course of this workshop.
Day 1 Foundations of AI, Python, and Raspberry Pi
The workshop kicked off with an introduction to AI and the Raspberry Pi microprocessor. We started with a fun ice-breaker activity, Introduction BINGO, where participants got to know each other. Afterward, we delved into the fundamental concepts of hardware and electronic components, ensuring everyone was comfortable with the physical aspects of working with a Raspberry Pi.
Key Topics Covered –
- Hardware & Electronic Components – Understanding the basics of the Raspberry Pi, GPIO pins, and essential sensors.
- Raspberry Pi Microprocessor – Overview of how Raspberry Pi works and its applications in AI.
This foundational day set the stage for the deeper dives into programming and hardware control that were to follow.
Day 2 Control Statements, Communication, and Sensors
We began Day 2 by introducing participants to Python control statements, providing the backbone for controlling the hardware components with Python scripts. This session included practical activities focused on various communication protocols like I2C and SPI, commonly used for sensor integration.
Key Activities and Topics –
- Python Control Statement – Introducing loops, conditions, and their use in hardware control.
- Communication Protocols – Learning how Raspberry Pi communicates with sensors using I2C and SPI.
Hands-on Activities –
- Act 1, 2 – LED ON and OFF Control – Participants learned to turn LEDs on and off using Python.
- Act 3 – LED Blinking – Adding logic to make LEDs blink at intervals.
- Act 4 – Keyboard Control – Using the keyboard to interact with hardware components like LEDs.
- Act 5 – OLED Display -We explored controlling an OLED display using Python libraries and the I2C protocol. This included displaying text and graphics, which captivated participants, demonstrating the versatility of the Raspberry Pi as an interface device.
Day 3 Exploring Sensors and Camera Controls
On Day 3, we moved into more complex sensor and camera integration. Participants worked hands-on with various sensors to collect and process real-world data.
Key Sensors Covered –
- Act 6 – I2C Accelerometer: Using accelerometers to measure movement and tilt.
- Act 7 – Ultrasonic Sensor: Measuring distances using ultrasonic waves.
We also explored using the camera with the Raspberry Pi - Act 8 – Camera / Image: Capturing still images and processing them.
- Act 9 – Video Streaming: Streaming live video using the Raspberry Pi camera, giving participants a look at real-time image processing.
We ended the day by learning how to remotely control the Raspberry Pi using SSH Scripting for headless setups.
Day 4: Advanced Camera Control and Project Development
The final day was packed with creative development. Participants were introduced to more advanced concepts of camera control using Python and integrating this control into group projects.
Key Highlights
- Camera Control & Geany – Using Geany, a lightweight integrated development environment (IDE), to control cameras with custom scripts.
- Project Development – Each group was tasked with designing and developing a project, incorporating the skills learned over the past three days. The projects ranged from simple security systems to advanced sensor networks.
- Participants also learned how to set up their Raspberry Pi in Headless Mode, using SSH to control it without a dedicated monitor or keyboard.
- Project Presentation and Way Forward
- After completing their group projects, participants presented their creations, showcasing the applications of Python programming, sensors, and AI-based hardware control. The final session was a recap of the key concepts, where participants were encouraged to continue exploring AI and Raspberry Pi on their own. They also completed a Post-Test to measure their progress throughout the course.
Looking Forward
This workshop is just the beginning. The potential of Raspberry Pi combined with Python programming offers limitless possibilities, from creating AI-powered projects to building real-world applications. Participants left equipped with the skills and confidence to continue their journey in AI and embedded systems development.
Conclusion
In just four days, participants transitioned from having no experience with Raspberry Pi or Python to developing their own AI-based projects. This course laid a strong foundation for understanding hardware, software, and AI in a hands-on, engaging way. The combination of sensors, control statements, and camera-based projects showcased the immense power of integrating AI and Python with Raspberry Pi.
Stay tuned for more workshops that push the boundaries of AI and embedded programming!
I hope everyone had enjoyed the course as much as I did in facilitating it.
Nurul (Oct 3rd, 2024)
Day 4
Day 3
Day 2
Day 1
Misc
REM 2024 in Jordan
Research and Education in Mechatronics Engineering (REM 2024) – Day 2
I presented a paper titled “The Design and Implementation of UMP STEM Cube for Environmental Monitoring” on Day 2 of the 2024 Research and Education in Mechatronics (REM) Conference.
This paper showcases the development of the UMP STEM Cube (LilEx 3), a 1U pico-satellite designed to monitor environmental conditions, specifically focusing on air quality. Developed at the UMPSA STEM Lab in 2021, the LilEx (short for Little Explorer) represents the lab’s aspiration to create small but powerful tools for environmental monitoring. The version showcased in the paper is the third iteration, LilEx 3, which utilizes the Raspberry Pi Pico as its main processor, providing a compact yet efficient platform for onboard data handling and transmission.
The UMP STEM Cube is a prototype pico-satellite, measuring just 56mm x 85mm x 40mm, with a mission to monitor air quality and atmospheric data from space. Its primary mission focuses on recording and transmitting temperature, humidity, altitude, and atmospheric pressure data in real-time. The secondary mission involves measuring the vertical distribution of PM2.5—fine particulate matter—with the goal of identifying pollution hotspots and analysing air quality at different altitudes.
CubeSats like the LilEx 3 offer a cost-effective solution to environmental monitoring by providing data from a broader spatial perspective compared to traditional ground-based sensors. Unlike ground-based systems, CubeSats can monitor remote or inaccessible areas, making them invaluable tools for comprehensive environmental surveillance.
Key Features of LilEx3 include its’ modular architecture, primary sensors and an onboard HPM2.5 sensor to measures fine particulate matter.
LilEx 3 Design
The LilEx 3 houses the following key subsystems –
- A UPS Power HAT with a 1000mAh battery provides the necessary energy for the entire system. It includes overcharge and discharge protection, ensuring the system’s longevity and safety in space.
- The Raspberry Pi Pico serves as the primary processing unit. It manages data acquisition from the sensors, handles communication with the ground station, and runs flight software that controls the satellite’s mission objectives.
- The satellite communicates with a ground station using a 433 MHz RF transceiver, allowing for real-time data transmission and telemetry monitoring.
- LilEx 3 carries a PM2.5 sensor for fine particulate matter detection, which is key for air quality monitoring. Other sensors include those for measuring temperature, humidity, atmospheric pressure, and altitude.
Flight Simulators
To ensure successful deployment and mission execution, LilEx 3 underwent rigorous flight simulations. These simulations were critical in testing the satellite’s ability to withstand launch conditions, deploy successfully in space, and maintain functional communication with the ground station.
Primary and Secondary Missions
The primary mission of the LilEx 3 is to monitor and transmit real-time environmental data during its descent and orbit, specifically focusing on atmospheric parameters. The main objectives include:
- Recording and transmitting data on temperature, humidity, atmospheric pressure, and altitude in real time.
- Providing live telemetry data to the ground station for sorting, analysis, and visualization.
The secondary mission is more focused and aims to track PM2.5 levels, particularly the vertical distribution of fine particulate matter in the atmosphere. This secondary mission enables:
- Monitoring of air pollution at various altitudes, providing critical data for understanding how pollutants are distributed vertically in the atmosphere.
- Forecasting pollution patterns, with data used for tracking the movement of pollution plumes and identifying pollution hotspots.
System Architecture
The architecture of LilEx 3 is designed for simplicity, modularity, and efficiency-
- A UPS Power HAT provides 5V 1.3A to the Raspberry Pi Pico and other subsystems. The power subsystem includes a battery monitoring system using the MAX17040 fuel gauge, allowing the ground station to monitor battery levels and ensure the satellite’s energy efficiency.
- The Raspberry Pi Pico is responsible for managing the sensors and logging data in real time. It processes data from the Waveshare Sense HAT (for atmospheric pressure, temperature, and humidity) and the GPS module (for location tracking). The data is tagged with mission time for accurate analysis.
- The satellite’s communication system uses the 433 MHz RF transceiver to send real-time telemetry data back to the ground station. The communication system is responsible for transmitting sensor data, satellite health status, and live telemetry.
- The PM2.5 sensor plays a critical role in measuring the concentration of fine particulate matter in the atmosphere. Data collected by the sensor is cross-referenced with altitude measurements from the GPS module to provide insights into the vertical distribution of air pollution.
Challenges in Building CubeSats – Lessons from the UMP STEM Cube
While the LilEx 3 has proven to be a successful platform for environmental monitoring, developing pico-satellites comes with significant challenges, with a better Power Management, Miniaturization of Components, better Communication, Data Handling, Structural Integrity and Durability.
Our next CubeSat mission, which will incorporate FPGA technology, aims to push the boundaries of what is possible with small satellites, InSyaAllah, enabling us to tackle even more complex environmental challenges while enhancing data processing and communication capabilities.
Some of the presenters on Day 2
Research and Education in Mechatronics Engineering (REM 2024) – Day 1
Today I had the opportunity to present UMPSA STEM Lab’s work on – Exploring the Impact of Arduino Robotics Instruction on Physical Computing and Programming Skills, at the 2024 Research and Education in Mechatronics (REM) Conference. This paper highlights the role of Arduino-based robotics education in enhancing engineering students’ programming, physical computing, and problem-solving abilities.
In the study, we found significant improvements in students’ performance after participating in the Arduino Robotics Module.
By comparing pre-test and post-test assessments, students demonstrated an average improvement of 23.24 percentage points in areas like coding proficiency, electronics, and robotics. This shift highlights how hands-on, project-based learning enhances not only theoretical knowledge but also practical skills, which are crucial in engineering education.
The results were further validated through paired T-test analysis, which showed statistically significant improvements (p-value < 0.001), confirming that the Arduino module had a substantial impact on students’ learning outcomes. This analysis is important in educational research settings as it provides a rigorous method of assessing whether the changes observed are truly due to the educational intervention and not just random variation.
The study employed a mixed-methods approach, combining both quantitative (pre-test/post-test assessments) and qualitative (focus group discussions, surveys) data. In educational research setting, using mixed methods is essential as it allows for a more comprehensive understanding of the students’ learning experiences.
- Quantitative Data – The pre- and post-tests provided measurable insights into the knowledge gained by students. The use of a paired T-test helped in statistically validating the learning improvements.
- Qualitative Data – Focus group discussions offered deeper insights into students’ perceptions and challenges faced during the module. This data helped contextualize the numbers by revealing students’ experiences, confidence levels, and the areas they found most beneficial or difficult.
Using a mixed-methods approach is especially valuable in the context of engineering education. It combines the objectivity of numerical data with the richness of personal feedback, ensuring that both learning outcomes and student experiences are thoroughly evaluated. This method offers a holistic view of the educational intervention’s effectiveness, making it ideal for complex subjects like robotics education.
As part of this research, students engaged in a series of structured activities that spanned programming, electronics, and embedded systems with robotics. These activities were designed to develop essential skills in each domain:-
A. Programming – Students wrote and debugged code for various tasks using the Arduino platform.
Key programming activities included:
-
- Lighting up LEDs – Basic digital and analog I/O programming.
- Traffic light simulation – Students programmed an automated traffic light using conditional statements and timers.
- OLED display and sensor integration – Students coded Arduino to interact with sensors and display outputs on OLED screens.
Programming is foundational for engineering students, especially in mechatronics. Mastery of programming helps students understand the logic behind automation and control systems, making them capable of designing software solutions for embedded systems.
B. Electronics and Embedded Systems – Students explored physical computing by connecting and controlling electronic components such as photoresistors, ultrasonic sensors, and servos with Arduino.
Activities included:
- Photoresistor experiments – Students measured light intensity and converted it into electrical signals.
- Ultrasonic sensor integration – Students used sensors to detect object distance and trigger actions like LED or motor control.
Electronics form the backbone of physical computing. Understanding circuits and sensors empowers students to design systems that interact with the real world, crucial for embedded systems development. These skills are indispensable for engineers working with IoT and smart devices.
C. Robotics – In the final phase, students applied their programming and electronics knowledge to design and build autonomous robots.
Key activities included:
- Line-following robots -Students programmed robots to follow a path autonomously using sensors.
- Obstacle avoidance – Robots were equipped with ultrasonic sensors to detect and avoid obstacles during movement.
Robotics brings together various engineering disciplines—mechanical, electrical, and software—allowing students to see how theory translates into practice. It also enhances critical thinking and problem-solving skills, which are vital for engineering graduates facing real-world challenges.
This marks the second article on engineering education from the UMPSA STEM Lab in 2024, continuing the mission to enhance engineering education. I strongly believe that being involved in research in engineering education is essential, as it helps to continuously improve teaching methodologies, ensuring that students are equipped with both theoretical and practical skills needed in today’s rapidly evolving technological landscape. With industries increasingly leaning on automation, robotics, and embedded systems, educational interventions like the Arduino Robotics Module bridge the gap between academia and industry requirements.
Educational research also allows educators to measure the effectiveness of new pedagogical approaches, providing insights into how students learn best. In this study, not only the improvements in technical skills are observed but also a marked increase in student confidence, engagement, and interest in the subject are seen.
Figure of Merit T-Test
In doing this research, I learned about the T-test. As discussed in the paper, the T-test revealed a mean improvement of -23.24 in students’ test scores, with a confidence interval confirming that the improvement was statistically significant and not due to random variation.
The T-test is a critical tool in educational research because it provides an objective way to measure the effectiveness of an intervention—in this case, the Arduino Robotics Module. By comparing pre- and post-test results, the T-test demonstrates with statistical certainty that the module genuinely enhanced students’ knowledge and skills. This method not only quantifies the improvement but also provides educators and researchers with concrete evidence of the program’s impact, enabling them to make informed decisions about refining or expanding similar educational initiatives in the future.
A T-test is a statistical method used to determine if there is a significant difference between two sets of data, like students’ scores before and after an educational intervention. To calculate a T-test, you first find the difference between each student’s pre-test and post-test scores. Then, you calculate the average of these differences and determine how much the differences vary (this is called the standard deviation). Using these values, the T-test formula calculates a t-value that shows how large the improvement is compared to random variation. The T-test also considers the sample size (number of students, in this case 463 students) to assess how reliable the result is.
Another important parameter in the T-test is the p-value, which indicates whether the improvement is statistically significant—meaning it likely didn’t happen by chance. In educational research, a low p-value (usually less than 0.05) means the intervention, such as a new teaching method or tool, genuinely improved students’ learning. This helps educators understand the real impact of their teaching strategies and make decisions about future programs.
The findings from this study have far-reaching implications for the engineering education community. As technology advances, it’s becoming increasingly important to equip students with not just theoretical knowledge but also practical, hands-on experience. The Arduino Robotics Module bridges this gap by providing an interactive platform where students can apply engineering concepts in real-world contexts.
Integrating robotics and physical computing into the curriculum enhances student engagement, fosters creativity, and improves problem-solving skills. These attributes are essential in preparing future engineers to tackle the challenges of a rapidly evolving technological landscape.
I’m honored to present this work at the 2024 REM Conference and to contribute to the growing body of research in engineering education. I look forward incorporating more hands-on, interactive modules in my teaching, and to leverage the power of robotics in developing critical engineering skills, InSyaAllah
Illaliqa’ 🙂
Nurul – Jordan Sept 24th
RBTX 2024 Discussion
IEEE STEM Champion Webinar
A brilliant sharing session and planning by team STEM Outreach TRYEngineering.
Discussion MySA – CubeSAT
pro
Raspberry Pi Programming 2024/4 – FTKEE
*UMPSA STEM Lab Raspberry Pi Programming Synopsis can be found here.
In the Raspberry Pi IoT session, 20 students from FTKEE were introduced to the concept of the Internet of Things (IoT) using Raspberry Pi on the UMP STEM Cube, a pico-satellite learning kit specifically designed to facilitate engineering learning.
The content covered basic digital input/output operations on onboard LEDs, as well as topics such as dashboard design using gyro meter and BMU280 sensor data, including collecting and storing data in a cloud database. Participants learned to interface sensors with Raspberry Pi boards and develop IoT applications for real-world scenarios. The session provided students with valuable insights into IoT technology and its applications in various domains.
I hope you’ve enjoyed your session today and stay tuned to our exciting programs line up this semester.