Programming

The basics of computer programming, including arrays, iteration loops, validation checks, data types, and more.

Picaxe Logicator Sample Programs & Software

store_high_score.plf This program uses EEPROM location 1 to store a high score. The program counts button presses, if the button is pressed more times than the high score then the high score is updated and stored back in EEPROM location 1. LED’s are used as indicators. Amber = waiting for a button press, red = …

Read more

Picaxe Logicator LED’s

The sensor kit includes 2 IR transmission LED’s. These can easily be replaced with your own coloured or white LED’s. When using the OUTPUT, HIGH and LOW commands, Logicator for PIC only recognises the B connectors as outputs . If you want to use an output such as an LED on the C connectors (such …

Read more

Picaxe Logicator Ultrasonic Sensor SRF005

The ultrasonic range sensor that can detect objects from 3cm to 3m away. The sensor can be used with the PICAXE system to calculate how far away the object is. The sensor is accurate enough to detect a 3cm broom handle at a distance of 2.4m. This is a self-assembly component. The instructions on the …

Read more

Testing

Candidates should be able to: describe syntax errors and logic errors which may occur while developing a program understand and identify syntax and logic errors select and justify test data for a program, stating the expected outcome of each test. What are syntax errors? Syntax errors are errors that occur when instructions do not follow …

Read more

Handling Data in Algorithms

Candidates should be able to: define the terms variable and constant as used in an imperative language use variables and constants describe the data types integer, real, Boolean, character and string select and justify appropriate data types for a given program perform common operations on numeric and Boolean data use one-dimensional arrays. What are constants …

Read more

Control Flow in Imperative Languages

Candidates should be able to: understand and use sequence in an algorithmunderstand and use selection in an algorithm (IF and CASE statements)understand and use iteration in an algorithm (FOR, WHILE and REPEAT loops). What is sequence in an algorithm? Sequence is a control structure where the computer executes the instructions in the order they are …

Read more

Programming Languages – High-Level Code & Machine Code

Candidates should be able to: explain the difference between high level code and machine code explain the need for translators to convert high level code to machine code describe the characteristics of an assembler, a compiler and an interpreter describe common tools and facilities available in an integrated development environment (IDE): editors, error diagnostics, run-time …

Read more

Computer Algorithms

Candidates should be able to: understand algorithms (written in pseudocode or as flow diagrams), explain what they do, and correct or complete them produce algorithms in pseudocode or flow diagrams to solve problems. What is an algorithm and how can algorithms be represented? An computer algorithm is a sequence of statements (instructions) that can be …

Read more