Wednesday, November 18, 2015

Counting in Binary


For this next assignment we are now going to add a fourth LED and then we are going to count in binary

Binary numbers is Base 2 (our number system is Base 10)
As you can see the binary numbers starts with 0000 - all lights off
Then we will go to 1 -  0001 - the right most light will be on
Then we go to 2 - 0010 - the second light is on
Then we go to 3 - 0011 - the first and second light on the right will be on
Display each binary number for 2 seconds and then display the next one until you have all the numbers displayed up to 15

No comments:

Post a Comment