Question: U paye Page View A Read aloud TASK: Your task is as follows: (1) Place SN74LS42N (4 to 10 decoder) on a breadboard: (2) Connect
U paye Page View A Read aloud TASK: Your task is as follows: (1) Place SN74LS42N (4 to 10 decoder) on a breadboard: (2) Connect IC pin 8 to GND and IC pin 16 to +5 V for IC to get powered; (3) Connect GPIO pins to BCD inputs, as follows: - connect GPIO pin 12 to IC pin 12 (8's column). - connect GPIO pin 16 to IC pin 13 (4's column) connect GPIO pin 20 to IC pin 14 (2's column) and connect GPIO pin 21 to IC pin 15 (1's column). (4) Connect GPIO pins to DEC Outputs, as follows: connect GPIO pin 25 to IC pin 9, - connect GPIO pin 8 to IC pin 10, - connect GPIO pin 7 to IC pin 11, - connect GPIO pin 26 to IC pin 1, connect GPIO pin 19 to IC pin 2, connect GPIO pin 13 to IC pin 3, connect GPIO pin 6 to IC pin 4, connect GPIO pin 5 to IC pin 5, - connect GPIO pin 11 (SCLK) to IC pin 6 and - connect GPIO pin 9 (MISO) to IC pin 7. (5) Connect LEDs and resisters, as follows: - connect LEDs' anode (+) to GPIO pins 12, 16, 20 and 21, - connect LEDs' cathode (-) to one end of resisters and - connect the other end of resisters to GND. (6) Develop a python program to generate a random number using random.randint (0,9) (you need import random) and assign this generated number to DEC, instead of manual input. Convert the random number DEC to a 4-bit binary number and generate the binary signal based on the binary number. Check which decimal outputs DO-D9 are true/false (on/off)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
