ScratchData LogoScratchData
Back to Schmams's profile

Binary & Hexadecimal Counter

SCSchmams•Created August 12, 2014
Binary & Hexadecimal Counter
42
34
3408 views
View on Scratch

Instructions

This project demonstrates simultaneous counting in base 10, 16, and binary using an "odometer" style. You can see when a "rollover" occurs when one column "runs out" of digits and resets to zero while advancing the next place value. To confirm the number's actual value, remember to sum up all of it's place values using the magenta numbers above each spot. So in decimal (plain old everyday base 10) the number 27 = (2 * 10) + (7 * 1). In hexadecimal, we use 0-F to represent the digits 0-15. So 1B in hexadecimal is (1 * 16) + (11 * 1) = 27. And similarly, 11011 in binary is (16 * 1) + (8 * 1) + (4 * 0) + (2 * 2) + (1 * 1) = 27. You can use the slider on to adjust the rate of "counting" and pause it all together as well (by sliding all the way to bottom). While paused, pressing space will manually advance counter. This current version counts to 511 before stopping. Clicking the green flag again will reset.

Description

I was teaching my daughter to count in binary and hexidecimal, and I thought, "Why not try to teach Scratch, as well?" This version uses clones for all the digits and a single function to set up each base. Each clone "listens" for when the ever increasing counter hits a multiple of it's place value before advancing. Suggestions, comments and remixes welcome!

Project Details

Project ID25520642
CreatedAugust 12, 2014
Last ModifiedNovember 18, 2016
SharedAugust 18, 2014
Visibilityvisible
CommentsAllowed