robo+sumo

=**Robosumo log**=
 * February 08 /02/ 2011**
 * Introduction to robosumo**
 * In this class the lecture went through all the rules and regualations for the competition. He also briefly went through some examples of codes and circuits. First impressions of**
 * this module is that it will be good challenge, something different and hopefully a bit of crack.**
 * The list of equipment that is required for the module is as follows**
 * 1) **breadboard**
 * 2) **laptop**
 * 3) **digitalmutimeter**
 * 4) **snips**
 * 5) **longnoisepliers**
 * Rob and I had a brief chat after class and reconded that we should get two of everything so both of us could be working away on different aspects of the project.**
 * February 14 / 02 / 2011**
 * The lecture went through a few more examples of the C code and the give us a small excerise to start of it. We had to just turn on a flashing L.E.D. The lecture supplied all chips and asseroies. The circuit is as follows out from pin 19 through the plus side of the L.E.D through the resistor to ground**
 * The code is as follows we had to latch pin 19 high (5 volts) to turn on L.E.D and then to turn off L.E.D by send 0v to pin 19 making it go low.**
 * while(1)**
 * LATDbits.LATD0 = 1; //turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;//**
 * //LATDbits.LATD0 = 1;// turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;**
 * //LATDbits.LATD0 = 1;// turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;**

Before we started anything we had to load up the laptops with the software which took a fair bit of time. Once this was sorted we got to work on the circuit rob looked after the programme and I wired up the circuit which was straight forward. We loaded the program on to the chip but L.E.D did not work so after a few mins we discovered that the resistor that was in serious with L.E.D was to high so replaced it with a 1 k ohm. The L.E.D started flashing.
 * }**
 * }**


 * February 21 / 02 / 2011**
 * The next excerise we had to do was to get the L.E.D working off a simple read switch. So when the switch is made (closed) the L.E.D would light and stay on until the switch is activated again. This would be kinda another stepping stone in our project because if we can get a switch to bring on an L.E.D the same instruction should near enough bring on a small motor. The lecture advised us to have a 1k resistor in serious with the switch so it would help with the switching threshold. We deigned the circuit and wired it onto the breadboard.**


 * We kept our original circuit from the flashing L.E.D and added the micro switch. We supplied 5v direct from the pick pin (vpp) and connected it to the com on the switch, than from the normally open to pin 27 on the pic.**
 * In the programme we had to configure pin 27 as an input so when that recieves a 5 signal it would in turn latch D0 (pin 19) and bring on L.E.D. Then when it recieves another signal it would reset pin and turn L.E.D off.**


 * LATDbits.LATD0 = 1; //turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;//**
 * //LATDbits.LATD0 = 1;// turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;**
 * //LATDbits.LATD0 = 1;// turn on LED, by setting pin 19 to 0V LATDbits.LATD0 = 1;**


 * }**
 * }**


 * The circuit completed on the breadboard**


 * February 28 / 02 / 2011**