Docsity

Raspberry Pi Test 1: Basic Commands and Concepts, Exams of Computer Science

Toggle sidebar
bg1
RASPBERRY PI TEST 1 LATEST UPDATED
Computer - ANSWER device that accepts info and produces a result
Operating System (Brain) - ANSWER variant of first Linux version known as
Raspbian
Our Model - ANSWER RP3 Model B
CPU - ANSWER 1.2 GHz
RAM - ANSWER 1 G
Command: man - ANSWER manual
Command: man ls - ANSWER help with commands
Command: q - ANSWER exits
Command: ls - ANSWER whats on rpi; blue is files, red is folders
Reboot RPi - ANSWER $sudo shutdown -r now
Shutdown RPi - ANSWER $sudo shutdown -h -P now
compiled language - ANSWER C++
interpreted language - ANSWER python
Max amount of GPIO pins - ANSWER 15 (250mA)
Wiring mode - ANSWER Broadcom (BCM)
For loop in Python - ANSWER "for i in range"; identifies things in a list and
puts them together in a loop
pf3

Partial preview of the text

Download Raspberry Pi Test 1: Basic Commands and Concepts and more Exams Computer Science in PDF only on Docsity!

RASPBERRY PI TEST 1 LATEST UPDATED

Computer - ANSWER device that accepts info and produces a result Operating System (Brain) - ANSWER variant of first Linux version known as Raspbian Our Model - ANSWER RP3 Model B CPU - ANSWER 1.2 GHz RAM - ANSWER 1 G Command: man - ANSWER manual Command: man ls - ANSWER help with commands Command: q - ANSWER exits Command: ls - ANSWER whats on rpi; blue is files, red is folders Reboot RPi - ANSWER $sudo shutdown - r now Shutdown RPi - ANSWER $sudo shutdown - h - P now compiled language - ANSWER C++ interpreted language - ANSWER python Max amount of GPIO pins - ANSWER 15 (250mA) Wiring mode - ANSWER Broadcom (BCM) For loop in Python - ANSWER "for i in range"; identifies things in a list and puts them together in a loop

Setup - ANSWER (pin#, GPIO.OUT) analog to digital converter - ANSWER MCP3008 (10 bits) Nyquists Sampling theorum - ANSWER should at least sample 2x the highest frequency component duty cycle - ANSWER Ton/Period Sampling Rate - ANSWER 960 KHz (636) Default clock division - ANSWER 256 Quantization or Sample Resolution - ANSWER The number of digital representations or bits that are used to represent the voltage at the point of time when the analog signal is sampled. one clock cycle - ANSWER one bit sent, one bit recieved Din - ANSWER MOSI (master out slave in) delete a file in terminal - ANSWER /code $ rm my.txt generate executable machine code (C++) - ANSWER Code --compiler-> Assembly --assembler-> Exec. Machine Code generate executable machine code(Python) - ANSWER code --interpreter-> Execute Vo - ANSWER VinDutyCycle print arctan angle in shell to 2 decimal places - ANSWER print("the angle is {:.2f} deg".format(angle(180/math.pi))) numpy - ANSWER numerical methods in python GPIO - ANSWER general purpose input output