Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

ASSIGNMENT 2 – BEAN TO CUP COFFEE MACHINE

A Bean to Cup Coffee Machine is one that is fully automated, grinding whole coffee beans and brewing a fresh cup of coffee with minimal user interaction.

A Bean to Cup Coffee Machine controller is to be designed based upon a 20MHz C167 microcontroller and this is to be developed using the Keil IDE.

Operation

1.    On pressing the ‘brew’ button the controller should turn on the heater until the brew head reaches 92°C

2.    Turn on the water pump for 4s to flush the empty filter basket

3.    Turn on the grind motor for 4s to grind the beans in to the filter basket

4.    Activate a solenoid for 1s to compress the coffee ‘PUCK’

5.    Turn on the water pump for 8s to pump water through the coffee

6.    The ‘TILT’ mechanism should be activated with a 100ms digital pulse to eject the coffee puck

7.    Turn on the water pump for 4s to flush the empty filter basket

8.    Turn off the heater

.    The heater should be controlled with a proportional control loop

.    The 1kW heater is either ON or OFF, pulse width modulation should be used to proportionally control the heater

.    When fully ON, the 1kW heater raises the temperature by 10°C/s

.    A temperature sensor provides a voltage output of 50mV/°C

.    The compression solenoid is activated by a 5V digital signal

To be submitted:

Project files (ZIPPED) with fully commented source code should be uploaded to MyUni. Use your student ID as the filename and in the header of the main program (as comment). Maintain a modular file structure, i.e. keep all ADC related functions in source file adc.c with prototypes exported through adc.h, etc. It must be possible to run the code after unzipping.

A pdf report should be uploaded separately that documents the algorithmic details of your program and with Keil Simulator screenshots, particularly the Logic Analyzer, showing the correct operation of your controller.

State any necessary assumptions.