Testing 1 blue pill

Dependencies:   mbed mbed-rtos TextLCD

Committer:
thomasmorris
Date:
Mon Mar 11 14:19:26 2019 +0000
Revision:
28:3193157ebb0c
Parent:
27:22d6fd88828e
Child:
30:a35f0ab97a65
Version 16 Working

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 28:3193157ebb0c 26 Function 3 = Twisting
thomasmorris 28:3193157ebb0c 27 Function 4 = Custom
JDickson 27:22d6fd88828e 28
JDickson 27:22d6fd88828e 29 Black :Reset : HardWired
JDickson 27:22d6fd88828e 30 Red :Up : D8
JDickson 27:22d6fd88828e 31 Orange:Down : A1
JDickson 27:22d6fd88828e 32 Brown :Start/Stop: D9
thomasmorris 28:3193157ebb0c 33 Yellow:Function : A3
thomasmorris 28:3193157ebb0c 34 Green :Select : A4
JDickson 27:22d6fd88828e 35
JDickson 27:22d6fd88828e 36
JDickson 27:22d6fd88828e 37 //Led Outputs //check the pin outs.
JDickson 27:22d6fd88828e 38 static DigitalOut Led_Select_Left(D2);
JDickson 27:22d6fd88828e 39 static DigitalOut Led_Select_Right(D3);
thomasmorris 28:3193157ebb0c 40 static DigitalOut Led_Power(A0);
JDickson 27:22d6fd88828e 41
JDickson 27:22d6fd88828e 42 TextLCD lcd(D0,D1,D4,D5,D6,D7); // rs, e, d4-d7
JDickson 27:22d6fd88828e 43 TendonPower (PWM) pin is PE_8 one below d0
JDickson 27:22d6fd88828e 44 STEPPER_MOTOR STEPPER_MOTOR_1(D15,D14,D13,D12) this is defined in interface.hpp