Hi, I am Teh Yi Feng, and I love exploring robotics and block‑based coding. I enjoy solving problems by building creative projects that mix hardware and code. My projects range from designing robots using LEGO Technic parts to programming sensors with block‑based code!
I wanted to create a table tennis racket that could be activated by touch sensor. Using the coding concepts of conditionals (if else statements), I created a racket that would swing and hit a ping pong ball when the touch sensor is pressed.
Using an ultrasonic sensor, I re-created the door of a shopping center that opens automatically whenever a person is within a specific distance from the door.
Having played at the arcade frequently, I decided to create a secure and precise shooter that fires a shot whenever the two colour sensors detect 2 specific colours in a coded order using the coding concept of conditional loops.
I have built a Python module named **divisibility_tester.py** to check if a user-input number is divisible by both 3 and 5 using floor division and modulo.
This program checks if a given year is a leap year by using if-else statements to handle divisibility by 4, 100, and 400. It demonstrates how to make decisions in code based on multiple conditions.
In this project, I used a for loop to count the number of vowels and consonants in a given string. The loop iterates through each character in the string, checking if it is a vowel or consonant, and updates the counts accordingly.
In this project, I created a number pyramid using nested for loops. The outer loop controls the number of rows, while the inner loop prints the numbers in each row. This project demonstrates how to use loops to create patterns and shapes in Python.