Factors Influencing The Growth Of Islamic Banking In Kenya Assignment Assistance

Factors Influencing The Growth Of Islamic Banking In Kenya Assignment Assistance

Group Assignment#1 Title: A practice of hardware user-interface design using Arduino + Keypad+ LEDs (Submission date: Groups from (1-6) March 22nd & Groups from (7-11) March 29th) Assignment Objective: To practice a UI design and evaluation by integrating both LEDs and Keypad with Arduino to make a hardware component in a human-computer interaction Parts Needed: Arduino Uno, Small breadboard, 4x red LEDs, Jumper wires, 220 OHM resistors, and USB cable. System Connections and Explanation: A matrix keypad may be used as an input device in a human-computer interacting system, allowing PLC outputs to be turned on or off when particular keys are pressed. To illustrate the concept, a standard membrane keypad will be used, together with a freely downloadable keypad library, to drive a series of latched LED outputs (See Figure 1). Figure 1. The assembled circuit and sketch, with latched keypad inputs and LED outputs. Hardware: We ll be using an Arduino Uno main board for the examples, which the plcLib software defines as having four inputs (X0 X3) and four outputs (Y0 Y3). The chosen keypad is an Adafruit membrane keypad with 12 keys, arranged as a matrix with four rows and three columns, hence requiring a further seven IO pins in total. Figure 2 shows the selected input / output allocation in diagrammatic form. Figure 2 Uno and keypad IO allocation. Figure 3keypad and LED connections. Figure 4 prototype board wiring detail. Software: The following listing takes a fairly standard keypad input program, and uses a custom latchKey()function to enable or disable an output bit based on momentary presses of the allocated Set and Reset keys. /* Programmable Logic Controller Library for the Arduino and Compatibles Matrix Keypad with On/Off Control of Latched LED Outputs Arduino Uno Pin Connections: Input X0 unused (Arduino pin A0) Input X1 unused (Arduino pin A1) Input X2 unused (Arduino pin A2) Input X3 unused (Arduino pin A3) Output LED connected to output Y0 (Arduino pin 3) Output LED connected to output Y1 (Arduino pin 5) Output LED connected to output Y2 (Arduino pin 6) Output LED connected to output Y3 (Arduino pin 9) 4X3 Matrix Keypad Connections: ROW1 Arduino pin 8 ROW2 Arduino pin 7 ROW3 Arduino pin 4 ROW4 Arduino pin 2 COL1 Arduino pin 12 COL2 Arduino pin 11 COL3 Arduino pin 10 Software and Documentation: http://www.electronics-micros.com/software-hardware/plclib-arduino/ */ #include // Include the Keypad library #include // Include the plcLib library char keyPress = 0; // Holds the currently pressed key value (if any) const byte ROWS = 4; // Keypad has four rows const byte COLS = 3; // Keypad has three columns // Define the Keymap char keys[ROWS][COLS] = { { 1 ?, 2 ?, 3 }, { 4 ?, 5 ?, 6 }, { 7 ?, 8 ?, 9 }, { * , 0 ?, # } }; // Connect keypad ROW0, ROW1, ROW2 and ROW3 to these Arduino pins. byte rowPins[ROWS] = { 8, 7, 4, 2 }; // Connect keypad COL0, COL1 and COL2 to these Arduino pins. byte colPins[COLS] = { 12, 11, 10 }; // Create the Keypad Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); void setup() { setupPLC(); // Define input / output pins } void loop() { keyPress = kpd.getKey(); // Read key pressed (if any) latchKey( 1 , 2 , Y0); // Keyboard latch, Set = 1 , Reset = 2 , // output = Y0 (pin 3) latchKey( 3 , 4 , Y1); // Keyboard latch, Set = 3 , Reset = 4 , // output = Y1 (pin 5) latchKey( 5 , 6 , Y2); // Keyboard latch, Set = 5 , Reset = 6 , // output = Y2 (pin 6) latchKey( 7 , 8 , Y3); // Keyboard latch, Set = 7 , Reset = 8 , // output = Y3 (pin 9) } // Keypad-based Set-Reset latch, outputting to a pin. unsigned int latchKey(char en, char dis, int outPin) { if(keyPress) { if (keyPress == en) { digitalWrite(outPin, HIGH); } if (keyPress == dis) { digitalWrite(outPin, LOW); } } } Assignment Questions: As you can notice the keypad you are given is different from the example keypad shown, so you need to integrate the new keypad by modifying the code. Modify the number of columns and related codes. Modify all reset buttons from being numerical to be A, B, C, and D. You want to evaluate which design arrangement should be chosen between the number-number configuration and the number-letter configuration for the on/off switch in this example. Assume that we did a human-involved experiment with 200 users and the result shows that 110 users preferred number-letter configuration and 90 users preferred the number-number configuration. Based on the result, can we conclude that the number-letter configuration is better for the interface design? Use the c2 test at 0.05 significance level for your answer. State your human-computer interface system with Dix s HCI framework introduced in the class (Figure 3) by relating your system components to 4 translations  (presentation and performance by computer and observation and articulation by human) and 2 interfaces  (input interface and output interface). Figure 5 HCI Framework (Dix et al., 2004) College of Engineering Dept. of Mechanical & Industrial Engineering Industrial & Systems Engineering Program IENG 479 Special Topic (HCI and UX) Assignment Evaluation Rubric Note: This rubric must be submitted with your assignment or marks will be deducted (Use this page as the cover page) (Leave the form below without any change) Criteria Poor Acceptable Satisfactory Excellent Exceptional Below 60 % 60 70 % 70 80 % 80 90 % 90 100 % KNOWLEDGE, THINKING & INQUIRY Student is unable to relate HCI/UX design concepts to assignment. No demonstrated ability to analyze, plan or support ideas No creativity Student has limited understanding of HCI/UX design concepts. Explanations are not thorough, and there is little degree of insight. Low degree of creativity is shown Demonstrates some understanding of HCI/UX design concepts Explanations are somewhat thorough, with some degree of insight. Some degree of creativity is shown Demonstrates solid understanding of HCI/UX design concepts. Explanations are thorough, with a good degree of insight. High degree of creativity is shown Demonstrates exceptional understanding of HCI/UX design concepts. Explanations are thorough, with an exceptional level of thoroughness & insight. Exceptional creativity is shown Section Total /25 Question 1 /7 Question 2 /6 Question 3 /6 Question 4 /6 REPORT & COMMUNICATION Several grammar, spelling & punctuation, and report formatting errors. Several grammar, spelling & punctuation, and report formatting errors. Grammar, spelling & punctuation, and report formatting are fairly accurate. Grammar, spelling & punctuation, and report formatting are accurate. Grammar, spelling and punctuation, and report formatting are highly accurate. Section Total /5 PENALTIES Late Submission (within due date) -4 No Submission 0/20 Total Marks /30


Comments are closed.