Smart Snacks

FINAL PROJECT - ESE 3500

Motor Control

The motor activates upon when there is sufficient balance detected and spins at the desired PWM speed. It reliably stops within ±3 seconds of a snack being detected by the ultrasonic sensor, preventing double-dispensing.

Ultrasonic Sensor

Detects dropped snacks effectively within a precise range of 5 cm, utilizing advanced UART communication technology to promptly stop the motor from dispensing any additional snacks when a drop is detected. This innovative feature ensures minimal waste and optimal snack management.

Detects quarters as they roll down the ramp with a precise range of 4.5 cm.

SRS Validation

  • SRS-01: The system shall detect user snack selection through a 3-key keypad and store the selection index within 5 seconds of keypress.
  • SRS-02: Upon coin insertion, the system shall acknowledge the detection within 2 seconds by receiving a UART signal and sending an acknowledgment integer back over UART.
  • SRS-03: After snack dispensing is initiated, the system shall detect a dispensed item within 15 cm of the distance sensor and confirm the dispense event within 10 seconds.
  • SRS-04: The system shall transmit the selected snack index over UART to the motor controller within 2 seconds of receiving a motor request signal.
  • SRS-05: The system shall display updated snack stock and balance information on the LCD screen within 3 seconds after a successful coin insertion and snack selection.
Snack image 1 Snack image 2

CONCLUSION

What did you learn and what went well?

From this experience, we learned that adaptability is key in navigating the complexities of project planning. The necessity to pivot when faced with unexpected challenges pushed us to develop creative solutions and fostered a collaborative spirit among the team. Our collaboration was undoubtedly one of the highlights. Despite encountering tough situations such as encountering an error a few minutes away from the final demonstration, we managed to maintain clear communication and supported one another, ensuring that we solved the issue as soon as possible without losing momentum.

What accomplishments are you proud of?

We took pride in successfully using UART communication between the 2 Atmega328PBs in order to fully complete the dispensing of snacks without any fault. There were many errors that were unknown to us at the time from loose wires to some tiny mistake in the code, but the fact we broke down every single possible detail in order to figure out what was wrong definitely was one of our main strengths in bringing the machine together. Demonstrating a willingness to take a step back in order to reassess and identify areas for improvement in various situations is a notable achievement of which we are proud. Although the decision to revisit our progress may have initially caused feelings of frustration and disappointment, the eventual outcomes validated the effort and proved worthwhile.

What are the next steps?

As for next steps, we should analyze the feedback received on the final product and explore opportunities for enhancements or additional features. This will ensure we continue to innovate and exceed the expectations of our audience. Improved security system by using RFID or contactless payments can further enhance this project as well.