Block coding Flashcards
What are the 6 types of block coding?
- basic
- input
- music
- loops
- logic
- variables
What is an example of basic in block coding?
show leds, show string
What is an example of input in block coding?
on button A pressed, on pin 0 pressed
What is an example of music in block coding?
play melody, play tone
What is an example of loops in block coding?
for … from 0 to … do, repeat … times do …
What is an example of logic in block coding?
if … then, 0 … 0
What is an example of variables in block coding?
set … to …, change … by …
What are some advantages of block coding?
- easy to learn
- no syntax, you don’t need to type instructions - visual
- represents programming elements easily - fast
- no formatting required, drag and drop
What are some disadvantages of block coding?
- very basic
- no text-based coding included, beginners only - limited capacities
- simple instructions only can be given, can not create your own instructions
What is a variable?
In programming, a variable is a value that can change, depending on conditions or on information passed to the program
What is a microcontroller?
A microcontroller is a programmable device that receives data from inputs in order to produce one or more outputs.
It is made up of small microchips that contain microscopic circuits called integrated circuits that can be programmed to carry out simple functions. Once programmed, there is no need to use a computer to operate them.
Another name for a microcontroller is a:
programmable logic controller (PLC)
How does the microcontroller work?
A microcontroller can only work if it has been programmed. The program is written on a computer which is called a sketch. The program is then uploaded to the microcontroller chip via a USB connection.
The microcontroller can then be disconnected from the computer and an alternate power supply can be connected. This allows the microcontroller to be an independent control technology system.