Testing 1 blue pill

Dependencies:   mbed mbed-rtos TextLCD

Committer:
JDickson
Date:
Fri Mar 01 21:57:59 2019 +0000
Revision:
27:22d6fd88828e
Child:
28:3193157ebb0c
More comments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JDickson 27:22d6fd88828e 1 COILING RIG CODE V10:
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:
JDickson 27:22d6fd88828e 23 Function 0 = Turn
JDickson 27:22d6fd88828e 24 Function 1 = Anneal
JDickson 27:22d6fd88828e 25 Function 2 = Test
JDickson 27:22d6fd88828e 26
JDickson 27:22d6fd88828e 27 Black :Reset : HardWired
JDickson 27:22d6fd88828e 28 Red :Up : D8
JDickson 27:22d6fd88828e 29 Orange:Down : A1
JDickson 27:22d6fd88828e 30 Brown :Start/Stop: D9
JDickson 27:22d6fd88828e 31 Green :Select : A3
JDickson 27:22d6fd88828e 32 Yellow:Function : A4
JDickson 27:22d6fd88828e 33
JDickson 27:22d6fd88828e 34
JDickson 27:22d6fd88828e 35 //Led Outputs //check the pin outs.
JDickson 27:22d6fd88828e 36 static DigitalOut Led_Select_Left(D2);
JDickson 27:22d6fd88828e 37 static DigitalOut Led_Select_Right(D3);
JDickson 27:22d6fd88828e 38 static DigitalOut Led_Power(A3);
JDickson 27:22d6fd88828e 39
JDickson 27:22d6fd88828e 40 TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7
JDickson 27:22d6fd88828e 41 TendonPower (PWM) pin is PE_8 one below d0
JDickson 27:22d6fd88828e 42 STEPPER_MOTOR STEPPER_MOTOR_1(D15,D14,D13,D12) this is defined in interface.hpp