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:
9:8d78eb55ad5e
Parent:
8:b7771391adc9
Child:
10:8c0696b99692
--- a/FPGAcomms.h	Mon Nov 10 16:32:44 2014 +0000
+++ b/FPGAcomms.h	Mon Nov 10 19:01:43 2014 +0000
@@ -18,7 +18,7 @@
 DigitalOut colourBit1(p6);      //The 3 bits below are select bits for the sorter.
 DigitalOut colourBit2(p7);
 DigitalOut colourBit3(p8);
-DigitalOut startDispense(p9);   //A positive edge tells the FPGA to start dispensing.
+DigitalOut startDispense(p18);   //A positive edge tells the FPGA to start dispensing. p9
 /*
     00      Dispense red chip
     01      Dispense green chip
@@ -26,8 +26,8 @@
     11      Nothing
 */
 
-DigitalOut dispenseBit1(p10);  //The 2 bits below are select bits for the dispenser.
-DigitalOut dispenseBit2(p11);
+DigitalOut dispenseBit1(p19);  //The 2 bits below are select bits for the dispenser.p10
+DigitalOut dispenseBit2(p20); //p11
 
 DigitalIn complete(p12);    //FPGA sets to 1 once complete until another signal is recieved.
 DigitalOut select(p15); //0 for control, 1 for maintenance.
\ No newline at end of file