3rd year group project. Electronic and Electrical Engineering. Heriot-Watt University. This is the code for the mbed for the Automatic Little Object Organiser (ALOO).

Dependencies:   MCP23017 TCS3472_I2C WattBob_TextLCD mbed

Revisions of main.cpp

Revision Date Message Actions
32:9a4046224b11 2015-12-17 Comments and clean up. File  Diff  Annotate
31:16e056b9f9e0 2015-12-03 Fixed different colour detection algorithm. Detects all colours correctly.; Final code used for exhibition. File  Diff  Annotate
30:c0bc92d009fe 2015-12-01 All functions appear to be ... functioning. Need to test set new haz block mode with hardware. File  Diff  Annotate
29:9c0339e3c593 2015-12-01 Set new haz block mode should work. File  Diff  Annotate
28:7e4d29977d72 2015-12-01 Intialization sequence optimised, it will also sync with PC's current state. File  Diff  Annotate
27:2cb1bdb7ae3d 2015-12-01 Adding set new haz block mode, not completed. File  Diff  Annotate
26:bbcc25418ffa 2015-11-30 Small changes in program so it doesn't get stuck and PC receives correct commands. Also commented out hard-coded red values. currently use a buffer error variables which can be set to anything. File  Diff  Annotate
25:792540d69c49 2015-11-30 Colour sensor test mode, new commands for servo to toggle. Needs to be tested with hardware. File  Diff  Annotate
24:02c61793f90b 2015-11-29 Both break-beam and servo test modes working. File  Diff  Annotate
23:db91aaa43a9e 2015-11-28 Added break beam test mode, also values and status of tests are now synced with PC. File  Diff  Annotate
22:993821a4c396 2015-11-26 Taking 3 colour values and averaging it to determine the colour of the block. File  Diff  Annotate
21:60c4fe94d79c 2015-11-25 Optimised the code so, bottom servo is fast enough to sort the blocks. Code starts moving the servo after it detects block, checks the colour, then the size, if size and colour don't match then it moves the servo back to non haz. File  Diff  Annotate
20:4e0f0944f28f 2015-11-24 Hardcoded red small block values. Testing with hardware was working. File  Diff  Annotate
19:61b21ac4896e 2015-11-24 Modes testing working. Need to work on setting new has block similar to other program. Added tags. File  Diff  Annotate
18:44a1c1a30166 2015-11-24 Implemented new algorithm, now supports different modes on PC. File  Diff  Annotate
17:af373246bf80 2015-11-23 Added tags for parsing on PC. Added more commands. File  Diff  Annotate
15:777390eb5afd 2015-11-22 For some reason cannot assign Commander's command and commandValue properties, to received string. The execution stop not that statement. Noticed using print statements. File  Diff  Annotate
14:cf2f255b5560 2015-11-22 Changed sorting algorithm for colour sensor next to top beam. File  Diff  Annotate
11:0fe833f8a1ab 2015-11-21 Testing with hardware, working fine. Implemented servo test mode. Need to change sorting algorithm because now we're reading colour right after top beam break, and size after that. File  Diff  Annotate
10:16ba52f8e025 2015-11-18 Fine tuneing with the hardware. Logic seems fine. Need to fill in all command functions. File  Diff  Annotate
9:dc8f155b71c8 2015-11-16 Testing of command parsing successful. Implementing ability to declare new has block. File  Diff  Annotate
8:e1da2ae62885 2015-11-16 Ready for PC command parsing testing. Currently only prints command to PC. File  Diff  Annotate
7:b6e31bfdb2af 2015-11-16 Program building with online compiler. File  Diff  Annotate
6:98fe30430194 2015-11-16 Started using class-object structure instead of structs. More control. File  Diff  Annotate
4:4eebb4de22a7 2015-11-16 Published File  Diff  Annotate
3:843b830ee8bd 2015-11-11 The MBED program is supposed to work both when connected to PC, and on it's own. So making use of Serial (UART) interrupts, to listen for incoming commands when PC is connected. Currently only mbed control works, no commands are sent to PC, or FPGA File  Diff  Annotate
2:7a55cb10259f 2015-10-30 Added globals class which keeps track of global variables.; Added commander class which is to work together will command controller class from Swift. ; Test show some what parsing capabilities, needs a lot of work to be be fail proof. File  Diff  Annotate
1:92a2a5ef65a8 2015-10-29 Initial commit imported required libs. File  Diff  Annotate
0:fe5cb0a8fc5a 2015-10-18 Fully featured colour sensor config program. File  Diff  Annotate