Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Practical Python Programming for IoT 2nd Edition

Chapter 12 - Measuring Distance and Detecting Movement

Source Code

  • rpi folder - Raspberry Pi Python Code

    • requirements.txt - Python dependencies required for this chapter
    • hc-sr04_rpi.py - Distance Measurement with the HC-SR04 Ultrasonic Sensor
    • hc-sr501_rpi.py - Movement Detection with the HC-SR501 PIR Sensor
    • hall_effect_digital_rpi.py - Hall-Effect Sensor Example - Switch or Latching Type
    • hall_effect_analog_rpi.py - Hall-Effect Sensor Example - Ratiometric Type
  • pico folder - Pico MicroPython Code

    • ADS1115_pico.py - A simple module for reading analog input from an ADS1115 ADC
    • hc-sr04_pico.py - Distance Measurement with the HC-SR04 Ultrasonic Sensor
    • hc-sr501_pico.py - Movement Detection with the HC-SR501 PIR Sensor
    • hall_effect_digital_pico.py - Hall-Effect Sensor Example - Switch or Latching Type
    • hall_effect_analog_ads1115_pico - Hall-Effect Sensor Example - Ratiometric Type using ADS1115 ADC
    • hall_effect_analog_adc_pico - Hall-Effect Sensor Example - Ratiometric Type using Pico ADC

Datasheets

Post Publication Updates and Errata

None