/FRDM-K64F-CurtainOpener

FRDM-K64F based automated curtain opener

Primary LanguageC

Automated Curtain Opener

This project was done for UCR's EE128: Sensing and Actuation for Embedded Systems.

Background

This mini-project was completed in one week. The purpose was to simulate smart home technology use cases for embedded systems. The sensing and actuation logic is carried out on the FDRM-64F deveoplment board.

Parts

  • K64F Board
  • Stepper Motor
  • L298N Motor Driver
  • 1N4148 Diodes (8 count)
  • KY-038 Microphone Module
  • Passive Buzzer
  • Generic LED
  • 9V Battery
  • Wires (Dupont male/male and male/female)
  • Some string, fishing line, or wire (for pulley system)
  • Foam Core Board and Hot Glue. (This is optional, but I cut and hotglued the foam core to create a seperation between the two different pulley strings and a housing)

Wiring

Motor driver general wiring schematic.
motor_driver_wiring

In the final version, the following pins are used.

  • IN1-IN4 are connected to Port D pins 0-3
  • ENA and ENB are connected to Port D pins 4-5

The microphone module is connected to PORT A pin 1.
The passive buzzer is connected to PORT C pin 10.

Demo

motor_driver_wiring

Video Link

Other Links and Information

FRDM-64F
Pulley system inspiration
Project Report