Chapter 5: Raspberry Pi3 Basic
System On Chip (SOC)
What is System on Chip?
- A complex IC that integrates the major functional elements into a single chip or chipset.
- programmable processor
- onchip memory
- accelerating function hardware (e.g. GPU)
- both hardware and software
- analog components
Benefits of SoC
- Reduce overall system cost
- Increase performance
- Lower power consumption
- Reduce size
- BCM2835 SoC Multimedia processor
CPU
- ARM 1176JZFS (armv6k) 700MHz
- RISC Architecture and low power draw
- Not compatible with traditional PC software
GPU
- Broadcom Video IV
- Specialized graphical instruction sets
RAM
- 512MB (Model B rev.2)
- 256 MB (Model A, Model B rev.1)
Connecting A Display And Audio
HDMI
- Digital signal
- Video and audio signal
- DVI cannot carry audio signal
- Up to 1920x1200 resolution
Composite RCA
- Analog signal
- 480i, 576i resolution
3.5mm jack
RPi Remote Connections
/
Universal Serial Bus
- Two USB 2.0 ports in RPi
- Buy a powered USB hub
Passive models are cheaper and smaller, but lack the ability to run current hungry devices like CD drives and external hard drives.
Storage: Secure Digital (SD)
Form factor
Types of Card
- SDSC (SD): 1MB to 2GB
- SDHC: 4GB to 32 GB
- SDXD up to 2TB
The card should be at least 2GB in capacity to store all the required files Storage:
Continue SD Formatter:
/
How to mount USB flash drive from command line:
Networking Wireless
IEEE 802.11 WiFi
- 802.11 b, up to 11Mbps
- 802.11 g, up to 54Mbps
- 802.11 n, up to 300Mbps
- 802.11 ac (draft), up to
- 2.4GHz, 5GHz
Low Speed Peripherals
Input/Output (GPIO)
- Pins can be configured to be input/output
- Reading from various environmental sensors
- Ex: IR, video, temperature, 3axis orientation, acceleration
- Writing output to dc motors, LEDs for status.
Power Consumption
- microUSB power connector
- 2.5W (model A)
- 3.5W (model B)
- Powered USB hub
- To provide more power for USB peripherals
Useful links
- Raspberry Pi official website
- Raspberry Pi wiki
- Raspberry Pi verified peripherals
- The MagPi
- Raspberry Pi on Adafruit Learning System:
Remapping Keyboard:
- sudo vi /etc/default/keyboard
XKBLAYOUT=”gb”
Change “gb” to “us”
- (This assumes you want a us mapping, if not replace the gb with the two letter code for your country)
Install and Start SSH
- Update aptget package index files:
- Install SSH:
- Start SSH server:
- sudo /etc/init.d/ssh start
- To start the SSH server every time the Pi boots up:
- sudo updaterc.d ssh defaults
- SSH client for Windows:
- SSH Secure File Transfer
Install Java
- 1. JDK 8 (with JavaFX) for ARM Early Access
/
- Download from Raspberry pi
- Download from your own PC and copy it (scp) to
Raspberry pi
- Extract the JDK tar.gz file
- tar –zxvf fileToExtract.tar.gz
- You will get a folder “jdk1.8.0”
Set Java PATH
Software
- LXTerminal and Root Terminal: use the Linux command line in a window without leaving the GUI.
- Midori & NetSurf: Lightweight web browser
- IDLE and IDLE 3: IDE for Python 2.7 and 3
- Task Manager: Checks the available memory, processor workload, closes crashed or unresponsive programs
- Music player at the console: moc
- : sudo aptget install
- Image Editing: Gimp
- LAMP (Linux, Apache, MySQL and PHP) stack
- Sudo aptget install apache2 php5 php5mysql mysqlserver
Installing, Uninstalling And Updating Software
- Package manager in Debian: apt
- GUI for apt, Synaptic Package Manager doesn’t work well on Pi due to the lack of memory
- Make sure that the apt cache is up to date:
- aptget update
- Finding software:
- aptcache search emacs
- Installing software and dependencies:
- sudo aptget install emacs
- Uninstalling software:
- sudo aptget remove emacs
- sudo aptget purge emacs (removes everything including configurations)
- Upgrading software:
- Sudo aptget upgrade
- Sudo aptget install emacs
Troubleshooting
Keyboard and Mouse Diagnostics
Power Diagnostics
Display Diagnostics
Network Diagnostics
Emergency Kernel
Wired Networking Configuration
sudo nano /etc/ntework/interfaces
iface eth0 inet static
[tab] address 192.168.0.10
[tab] netmask 255.255.255.0
[tab] gateway 192.168.0.254
sudo /etc/init.d/networking restart
sudo nano /etc/reslov.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
sudo /etc/init.d/networking restart
ping –c 1 www.raspberrypi.org
Wireless Networking Configuration
- USB WiFi adapters are very powerhungry. Connect a powered USB hub to the Pi, and then insert the WiFi adapter into that.
- Print out the entire kernel ring buffer and find out the company that makes the actual chip: mesg | grep ^usb
- Atmelfirmware
- Firmwareatheros
- Firmwarebrcm80211
- Firmewareintelwimax
- Firmwareipw2x00
- Firmwareiwlwifi
- Firmwareralink
- Firmwarerealteck
- Zd1211firmware
- Check the current status of the network: iwconfig