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:
18:12e2c82a5a6c
Parent:
15:0c5f20e15b6a
Child:
19:78d4b78fa736
--- a/serialCommunication.h	Mon Nov 24 14:00:46 2014 +0000
+++ b/serialCommunication.h	Mon Nov 24 16:09:52 2014 +0000
@@ -56,9 +56,7 @@
 void processState(StateMachine stateMachine){
    switch(stateMachine){    
       case INITIALISING:
-        setupLCD();
-        printLCD("Welcome to the  Chipin Sorter");
-        wait(1);
+       
       break;
       case READING_RGB_VALUES:
         readChipNumbers();
@@ -203,9 +201,9 @@
                 sendCharacter('L');
             break;
             
-            case '{': //Dispense all
+            case '0': //Dispense all
                 dispenseAll();
-                sendCharacter('}');
+                sendCharacter('1');
             break;