Data representation
Bits and units, binary, hex, binary arithmetic, characters, images, sound and compression: the robot's camera pixels, LED colours and buzzer notes as data.
Start in the simulator- F8.1 Bits, bytes and units Why computers use binary, and the units from bits to petabytes.
- F8.2 Binary and denary Converting 8-bit numbers both ways, and hearing them on the buzzer.
- F8.3 Hexadecimal Base 16, converting to binary and denary, and the LED's colour codes.
- F8.4 Binary addition, overflow and shifts Adding in binary with carries, overflow, and shifting to multiply and divide.
- F8.5 Negative numbers: two's complement Signed 8-bit integers, and why the same adder works for them.
- F8.6 Characters: ASCII and Unicode Character sets, bits per character, and why Unicode was needed.
- F8.7 Images Pixels, resolution, colour depth, metadata and file size, from the robot's camera.
- F8.8 Sound Sampling, sample rate, bit depth and file size, and finding a note from its samples.
- F8.9 Compression Lossy and lossless; run length encoding and Huffman coding.
- F8.10 Project: send a picture Capture a camera frame, make it 1-bit, compress it with RLE and send it by radio.