Testing 1 blue pill

Dependencies:   mbed mbed-rtos TextLCD

Committer:
thomasmorris
Date:
Thu Apr 04 10:52:22 2019 +0000
Revision:
30:a35f0ab97a65
Parent:
28:3193157ebb0c
Testing 1;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thomasmorris 28:3193157ebb0c 1 COILING RIG CODE V14:
JDickson 27:22d6fd88828e 2 This code is used to operate the Carbon Fibre actuator construction rigs. The buttons on this rig operate as follows:
JDickson 27:22d6fd88828e 3
JDickson 27:22d6fd88828e 4 - Reset:
JDickson 27:22d6fd88828e 5 This button simply reboots the board and restarts the code.
JDickson 27:22d6fd88828e 6
JDickson 27:22d6fd88828e 7 - Function:
JDickson 27:22d6fd88828e 8 This button chooses between the functions of the board
JDickson 27:22d6fd88828e 9
JDickson 27:22d6fd88828e 10 - Select:
JDickson 27:22d6fd88828e 11 This selects the part of the function in the interface to be changed
JDickson 27:22d6fd88828e 12
JDickson 27:22d6fd88828e 13 - Up:
JDickson 27:22d6fd88828e 14 This increases either the number of coils or annealing time
JDickson 27:22d6fd88828e 15
JDickson 27:22d6fd88828e 16 - Down:
JDickson 27:22d6fd88828e 17 This decreases either the number of coils or annealing time
JDickson 27:22d6fd88828e 18
JDickson 27:22d6fd88828e 19 - Start/Stop:
JDickson 27:22d6fd88828e 20
JDickson 27:22d6fd88828e 21
JDickson 27:22d6fd88828e 22 Useful code information:
thomasmorris 28:3193157ebb0c 23 Function 0 = Anneal
thomasmorris 28:3193157ebb0c 24 Function 1 = Test
thomasmorris 28:3193157ebb0c 25 Function 2 = Coiling
thomasmorris 30:a35f0ab97a65 26 Function 3 = Run Once
JDickson 27:22d6fd88828e 27
JDickson 27:22d6fd88828e 28 Black :Reset : HardWired
JDickson 27:22d6fd88828e 29 Red :Up : D8
JDickson 27:22d6fd88828e 30 Orange:Down : A1
JDickson 27:22d6fd88828e 31 Brown :Start/Stop: D9
thomasmorris 28:3193157ebb0c 32 Yellow:Function : A3
thomasmorris 28:3193157ebb0c 33 Green :Select : A4
JDickson 27:22d6fd88828e 34
JDickson 27:22d6fd88828e 35
JDickson 27:22d6fd88828e 36 //Led Outputs //check the pin outs.
JDickson 27:22d6fd88828e 37 static DigitalOut Led_Select_Left(D2);
JDickson 27:22d6fd88828e 38 static DigitalOut Led_Select_Right(D3);
thomasmorris 28:3193157ebb0c 39 static DigitalOut Led_Power(A0);
JDickson 27:22d6fd88828e 40
JDickson 27:22d6fd88828e 41 TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7
JDickson 27:22d6fd88828e 42 TendonPower (PWM) pin is PE_8 one below d0
JDickson 27:22d6fd88828e 43 STEPPER_MOTOR STEPPER_MOTOR_1(D15,D14,D13,D12) this is defined in interface.hpp