Cornelsen exercises

Bicycle tail light

The Calliope mini is programmed as an automatic bicycle rear light. The light should switch on when it gets dark and switch off again when it gets light enough. To do this, the light sensor built into the Calliope mini is queried.

Input Output

The Calliope mini's light sensor converts the light it receives into a numerical value. Students* decide which numerical values are to be used to draw the line between "dark" and "light". In Nepo, the maximum brightness value is 100, whereas in Macecode it is 255.


minipiano

The Calliope mini is first programmed to output individual tones, which are output via the tone generator. The contact between the buttons established by touching the touch pins with the hands is the trigger for the sound output.

Input Output

You have to touch the minus-pin in the upper left corner at the same time as the pin is pressed, so that the circuit is closed and a digital switch is activated.


Clock

Calliope mini allows you to control the timing of a program. The accuracy is in the millisecond range. This makes it possible to realize a clock generator that can be used, for example, to display different heartbeat frequencies.

Input Output

1s (second) = 1000ms (milliseconds)


Stopwatch

With this program, the Calliope mini can be used as a stopwatch. To start, press button A once. At the same time as the stopwatch is started, the RGB LED lights up green. Pressing button B stops the watch and the stopped time is displayed in seconds on the LED screen. At the same time the color of the RGB LED changes from green to red.

Input Output


Morse

In this exercise, the Calliope mini is programmed to be used as a Morse code machine. To display the Morse alphabet,all that is required is the output of a dot and a horizontal line on the LED screen.

Input Output


Image impulses and stimulus words

The Calliope mini is programmed as an idea generator that automatically generates suggestions for a writing occasion. To do this, one of three or more images is randomly selected and output at the touch of a button. In addition, the description of the image appears shortly afterwards as a single word. The images and words available in Calliope mini can be designed or freely selected.

Input Output


Spelling Coach

In this exercise, the Calliope mini is programmed as a spelling trainer. If you turn it upside down and then return it to its original position, a word will appear on the LED screen in ticker tape. One letter of this word is replaced by an underline. The word is followed by two letters, one of which is the correct supplementary letter. If the first letter is correct, the A key must be pressed, if the second is correct, the B key. Whether the input is correct or wrong is then indicated by a tick (right) or a cross (wrong). The input of the correct solution is amplified by a higher tone and the RGB LED shining green, a wrong input is accompanied by a lower tone and the RGB LED shining red (wrong). Turning the Calliope mini upside down again and back into the upright position makes the next word appear. The words displayed can be changed and added to as required.

Input Output


Random generator

In the following exercise, the Calliope mini is programmed as a random number generator (number dice). By pressing a key, a random number between 1 and 6 is generated. In a further step, the dice can be programmed to display the respective number on the dice instead of the number.

Input Output


1x1 Mental arithmetic trainer

In this exercise, the Calliope mini is programmed as a 1 x 1 headset trainer. When you click, for example, on the A button, a multiplication task is displayed. If button B is pressed, the result of this task is displayed on the LED screen.

Input Output


    ##Neighbourhood numbers

The Calliope mini is programmed into a calculator which, when prompted, outputs a random number and displays both neighboring numbers (predecessor and successor) at the touch of a button.

Input Output


NIM game

In this programming example, the Calliope mini is intended to implement a simple mathematical game, the Nim game. In the nim game, one, two or three elements are alternately removed from an initial set (in the original game, sticks, stones or game pieces). The player who takes the last element wins. The game is programmed for two players, with the role of the second player being played by the Calliope mini. The second player (i.e. the Calliope mini) does not act tactically, but takes a random number (one, two or three) of elements. The remaining number of elements is displayed on the LED screen after each move. If the first player is expected to make a move, the RGB LED lights up yellow; if it is the turn of the Calliope mini, the RGB LED lights up blue. The first player determines the number of elements to be removed by repeatedly pressing the A button. Pressing the B button completes a move.
If the Calliope mini has won and the human player has lost, a sad smiley face is displayed. However, if the human player wins, a laughing smiley appears on the LED screen.

Input Output


All 11 programs can be downloaded, both for Makecode and Open Roberta Lab (Nepo) here:

All programs as .zip