LED NUMBER RANDOMIZER
We can use LEDs and Sajilobot to create a Number randomizer device.this device will provide random numbers when the button is pressed.
For this project we will be making a Randomizer for 4 Numbers[1 to 4]
Materials Required:
Sajilobot
4 LED’s
Push Button
Jumper Wires
Programmer
Resistors
Battery
Circuit connections:
Connect the push button to A2 of Sajilobot with resistor to detect Switch
Connect positive LEDs with resistors to D6,D11,D12,D13 and connect the ground of the LED to common ground.
fig:Main code:
fig:Block to generate random cases
0 Comments