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:
23:f9e7e64784be
Parent:
14:31ba3e56c788
Child:
24:8868101d01d0
--- a/chipNumbers.h	Tue Nov 25 22:32:26 2014 +0000
+++ b/chipNumbers.h	Sat Nov 29 16:32:57 2014 +0000
@@ -3,13 +3,14 @@
 int redAmount;          //The amount of chips curs
 int greenAmount;
 int blueAmount;
+int recycleAmount;
 int dispensorSize = 24; //The maximum number of chips that can fit in one of the dispensor tubes.
 
 void readChipNumbers(){
     redAmount = readFile(0);
     greenAmount = readFile(1);
     blueAmount = readFile(2);
-    
+    recycleAmount = readFile(3);
     }
     
 void decrementRed(){