Hands-on lab programs used in Basics of IoT and Robotics (A5501), grouped by board and topic. Source files are hosted on this site for download; run them on the matching hardware and wiring from your lab manual.
Arduino
| Topic | Program |
|---|---|
| LDR and LED | vce_ldr_similar1.ino |
| LED and push button | switch_with_led_v_cse1.ino |
| Traffic lights with button | traffic_light_with_button1.ino |
| Ultrasonic distance | utrasonic_distance_demo1.ino |
Raspberry Pi
| Topic | Program |
|---|---|
| DHT - temperature and humidity | measure_temp_humidity_Adafruit_DHT.py |
| LDR - switch LED from light level | switch_on_led_based_on_light_detected.py |
| LED toggle (RPi GPIO) | led_toggle_RPi_GPIO.py |
| LED toggle (gpiozero) | led_toggle_gpiozero.py |
| Ultrasonic distance (RPi GPIO) | ultrasonic_dist_calc_RPi_GPIO.py |
| Ultrasonic distance (gpiozero) | ultrasonic_dist_calc_gpiozero.py |