Showing posts with label XinLong Zhu. Show all posts
Showing posts with label XinLong Zhu. Show all posts

Friday, March 1, 2013

The fifth lab day ( The test on the FPGA)

Today, we implement and test the design on the Altera DE1 board. The tests are successful.
Here is a example test.
First figure is the reset mode.

The reset mode
The second figure shows that the customer choose the product with the price of 70 penny. The SW3 is in logic 1.

Choose product of 70p

Then the customer press the pushbutton KEY3 to input 1 pound. The figure shows the result. The 7 segments display shows the change. The red LEDR3 is turned on to represent that the product has been dispensed successfully. And the green LEDG0 and LEDG3 represent one 10p and one 20p respectively.

After the input one pound

Monday, February 25, 2013

The whole connection of the internal circuit

After several days, we complete the codes for each components of the vending machine controller. Then, we try to combine each component into a single package.
The block diagram for the system is shown below.
The structure of the vending machine controller

Monday, February 18, 2013

Coin Receiver and Coin Changer

In this weekend, my partner and I decided to explore the different kinds of vending machine in the campus. And write the code for the

The first place is the central teaching building. The second place is the electronic and electrical building. After using these vending machines, we instantly found that we need to add the display part for the customor.

In this project, I really found that it is so interesting to apply what we know to the real life.

The first component is the coin receiver, which is the part that allows the customer to insert the coins.
Here is the partial VHDL code.


The partial code for the coin receiver
The second component is the coin changer, which is the part that cotrols the changes.
Here is the partial VHDL code.

The partial code for coin changer

Wednesday, February 13, 2013

Two resources which are inspiring

When we are doing the project, it is very necesary to study others works to improve our own works.

There are two materials that I found quite useful.

The first material helps me know better about the structure of the vending machine.

The Internet address is http://www.cse.sc.edu/~jimdavis/Courses/2003-Fall%20CSCE%20491/VendingMachine-031015.pdf.

The second material helps me know better about how to draw the state diagram.
The Internet address is https://coefs.uncc.edu/sjkuyath/files/2012/04/VendingMachine1.pdf.

Thursday, January 31, 2013

The components of the vending machine

To design the vending machine controller. The very first thing is to study the vending machine in the real world. Because we want to know the basic structure and functions of the machine.
The general vending machine
Today, we thought about the general structure of the vending machine.
The general structure of the machine
Tomorrow, we will have our first lab day for the project. Hope everything goes well.