The MBED firmware used on the Chipin sorter, developed over 12 weeks for a 3rd year university systems project. Chipin is a token sorter, it sorts tokens by colours and dispenses them to order through an online booking system and card reader. This program interfaces with an FPGA, PC and LCD screen to control the sorter. The sorter has an operation mode where it can process orders when a card is entered into the machine. There is also a maintenance mode where the device responds to maintenance instructions such as 'dispense all'. More information at http://www.ionsystems.uk/

Dependencies:   MCP23017 TCS3472_I2C WattBob_TextLCD mbed-rtos mbed

Revision:
14:31ba3e56c788
Parent:
12:814a8fdbb6f7
Child:
23:f9e7e64784be
--- a/chipNumbers.h	Thu Nov 20 11:15:47 2014 +0000
+++ b/chipNumbers.h	Thu Nov 20 22:02:54 2014 +0000
@@ -1,8 +1,9 @@
 #include "mbed.h"
 
-int redAmount;
+int redAmount;          //The amount of chips curs
 int greenAmount;
 int blueAmount;
+int dispensorSize = 24; //The maximum number of chips that can fit in one of the dispensor tubes.
 
 void readChipNumbers(){
     redAmount = readFile(0);