Microcontrollers Flashcards
(20 cards)
What is a microcontroller
A microcontrolller is a small electronic component and is often called a computer on a chip
What are microcontrollers used in
They are used in lots of products you use everyday including your mobile phone, airpods, TV remote controls and iPads.
PIC
Programmable Integrated Circuit
What is a key feature the PIC
key feature of these components is that you can write, upload and run a program of your choice using one of these tiny devices.
What are the benefits of a microcontroller
Once programmed, the microcontroller can be wiped and rewrittem with a new program meaning they can be used again and again and are very environmentally sustainable.
How is the PIC used the physical world
They are connected into circuits (i.e. soldered onto PCB’s) along with the relevant input and output deveices needed to run the prgroam you have designed.
How do you begin a programme
With a start cell that oval/circular green shape around the word start
How to you switch on a component (I.e. 5 LEDS)
Using an output cell next in the sequence. Purple parallelogram
How to you get a component to remain on
Using a wait cell next in the sequence. Click on the cell to set the specified time.purple rectangle
How do you turn a component off
Using the outputs cell again for the second time in the sequence. Purple parallelogram
How do you stop the program
Insert a stop cell at the end of the sequence. Red oval/circular shape
How do begin a loop programme
Every programme begins with a green circular start cell
How do you check if the switch has been pressed or not
Insert a digital cell in the sequence (purple stretched rhombus
How do we switch on the component (buzzer) after the switch is pressed
Insert an output cell (purple parallelogram)
What happens if the switch has not been pressed
the program should loop back around and keep checking until it is pressed.
How do keep the component on
Using a wait cell (purple rectangle) clicking to set the time
How do you turn the buzzer after it’s been on for some time
Once again insert a purple parallelogram output cell
How should the loop program work
The lrogram should repeat every time the switch is pressed
How do we get the program to loop
Loppp arrow all the way round from the bottom to the start of the program
What shape is the decision cell
The decision cell is a diamond