semester 1 Flashcards
What are smart systems?
Smart systems use sensors to gather data, transmit it to control units that describe and analyse a
situation, to make decisions and control actuators to perform “smart” actions.
What is a sensor?
A device that measures a physical property
What are control units?
Computers or microcontrollers that can be programmed to perform advanced functions.
Actuators
Devices that affect the physical environment by doing work (actual work)
Binary
Information stored in the form of 0 and 1
How is Boolean function similar to binary?
In both systems there are two states 0 and 1 vs true and false
What is the Boolean function?
The concept of boolean is that there are only two possible states true and false.
What are the boolean gates?
Boolean gates are components that take one or more inputs and implement a Boolean function (determining true or false)
The types of Boolean gates?
(DULL ROUND TEETH) And gate- both streams of information has to be true to get a true output
(SHARK TEETH) Or gate- either one or both has to be true to get true output
(TRIANGLE) Not gate- Inverts the input
What are truth tables used for?
They are used to represent the result of a logical expression (Boolean) for all possible combinations of the input values.
Logical Circuits
A graphical way to represent logic (like a flowchart) using logical actions and gates.
What are:
Bit-
Byte-
ASCII
Bit
A bit of information stores a single binary value
Byte
8 bits of information form a byte.
ASCII
The American Standard Code for Information Interchange is a data interchange format that allows the encoding of letters, symbols, etc into number equivalents that can be stored as binary values.
Comments
Commenting in python is done by putting a # hash symbol before text. Anything after the # is considered a comment on the same line.
We use comments to write ‘notes’ or ‘document’ sections of code.
Console
The console is where the python interpreter runs (i.e. command line). This provides an interactive means to talk to Python (via input provided).
Output
We can display output to the user on the console using the print() syntax.