├── 01-gpio ├── 01_1-led_on │ └── led_on.py ├── 01_2-led_blink_warning │ └── led_blink_warning.py ├── 01_3-led_blink │ └── led_blink.py └── 01_4-pwm_led │ └── pwm_led.py ├── 02-motor ├── 02_1-dc_motor │ └── dc_motor.py ├── 02_2-l298n_motor │ └── l298n_motor.py ├── 02_3-pwm_l298n │ ├── gui_pwm_l298n.py │ └── pwm_l298n.py ├── 02_4-move_car │ └── move_car.py └── 02_5-bottle_control │ ├── bottle_control.py │ ├── static │ ├── css │ │ └── style.css │ └── js │ │ └── jquery.min.js │ └── view.tpl ├── 03-camera ├── 03_1-image_load │ ├── image_load.py │ └── lena512rgb.png └── 03_2-camera_preview │ └── camera_preview.py ├── 04-opencv ├── 04_1-color_space │ ├── color_space.py │ └── hsv_value.py ├── 04_2-contours │ ├── draw_contour.py │ ├── draw_moment.py │ └── rectangle.png ├── 04_3-image_processing │ ├── erode_dilate.py │ └── gaussian_blur.py ├── 04_4-color_tracking │ └── color_tracking.py ├── 04_5-follower_car │ ├── dc_motor.py │ ├── follower_car.py │ └── pwm_motor.py └── lena512rgb.png └── README.md /01-gpio/01_1-led_on/led_on.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/01-gpio/01_1-led_on/led_on.py -------------------------------------------------------------------------------- /01-gpio/01_2-led_blink_warning/led_blink_warning.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/01-gpio/01_2-led_blink_warning/led_blink_warning.py -------------------------------------------------------------------------------- /01-gpio/01_3-led_blink/led_blink.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/01-gpio/01_3-led_blink/led_blink.py -------------------------------------------------------------------------------- /01-gpio/01_4-pwm_led/pwm_led.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/01-gpio/01_4-pwm_led/pwm_led.py -------------------------------------------------------------------------------- /02-motor/02_1-dc_motor/dc_motor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_1-dc_motor/dc_motor.py -------------------------------------------------------------------------------- /02-motor/02_2-l298n_motor/l298n_motor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_2-l298n_motor/l298n_motor.py -------------------------------------------------------------------------------- /02-motor/02_3-pwm_l298n/gui_pwm_l298n.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_3-pwm_l298n/gui_pwm_l298n.py -------------------------------------------------------------------------------- /02-motor/02_3-pwm_l298n/pwm_l298n.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_3-pwm_l298n/pwm_l298n.py -------------------------------------------------------------------------------- /02-motor/02_4-move_car/move_car.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_4-move_car/move_car.py -------------------------------------------------------------------------------- /02-motor/02_5-bottle_control/bottle_control.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_5-bottle_control/bottle_control.py -------------------------------------------------------------------------------- /02-motor/02_5-bottle_control/static/css/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_5-bottle_control/static/css/style.css -------------------------------------------------------------------------------- /02-motor/02_5-bottle_control/static/js/jquery.min.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_5-bottle_control/static/js/jquery.min.js -------------------------------------------------------------------------------- /02-motor/02_5-bottle_control/view.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/02-motor/02_5-bottle_control/view.tpl -------------------------------------------------------------------------------- /03-camera/03_1-image_load/image_load.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/03-camera/03_1-image_load/image_load.py -------------------------------------------------------------------------------- /03-camera/03_1-image_load/lena512rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/03-camera/03_1-image_load/lena512rgb.png -------------------------------------------------------------------------------- /03-camera/03_2-camera_preview/camera_preview.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/03-camera/03_2-camera_preview/camera_preview.py -------------------------------------------------------------------------------- /04-opencv/04_1-color_space/color_space.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_1-color_space/color_space.py -------------------------------------------------------------------------------- /04-opencv/04_1-color_space/hsv_value.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_1-color_space/hsv_value.py -------------------------------------------------------------------------------- /04-opencv/04_2-contours/draw_contour.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_2-contours/draw_contour.py -------------------------------------------------------------------------------- /04-opencv/04_2-contours/draw_moment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_2-contours/draw_moment.py -------------------------------------------------------------------------------- /04-opencv/04_2-contours/rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_2-contours/rectangle.png -------------------------------------------------------------------------------- /04-opencv/04_3-image_processing/erode_dilate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_3-image_processing/erode_dilate.py -------------------------------------------------------------------------------- /04-opencv/04_3-image_processing/gaussian_blur.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_3-image_processing/gaussian_blur.py -------------------------------------------------------------------------------- /04-opencv/04_4-color_tracking/color_tracking.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_4-color_tracking/color_tracking.py -------------------------------------------------------------------------------- /04-opencv/04_5-follower_car/dc_motor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_5-follower_car/dc_motor.py -------------------------------------------------------------------------------- /04-opencv/04_5-follower_car/follower_car.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_5-follower_car/follower_car.py -------------------------------------------------------------------------------- /04-opencv/04_5-follower_car/pwm_motor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/04_5-follower_car/pwm_motor.py -------------------------------------------------------------------------------- /04-opencv/lena512rgb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/raspberrypi-tw/pi-follower-car/HEAD/04-opencv/lena512rgb.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pi-follower-car 2 | --------------------------------------------------------------------------------