RASPBERRY PI A microcontroller Raspberry Pi 2 Model
RASPBERRY PI A microcontroller Raspberry Pi 2 Model B V 1. 1 RPi
COMPUTER IN YOUR HAND • A microcontroller (sometimes abbreviated µC, u. C or MCU) is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. The majority of microcontrollers in use today are embedded in other machinery, such as automobiles, telephones, appliances, and peripherals for computer system. • A system on a chip (So. C) combines the required electronic circuits of various computer components onto a single, integrated chip (IC). • The difference between a So. C and a microcontroller often times is defined by the amount of random access memory (RAM). • A So. C is capable of running its own operating system. • Sooner or later you just need more power! (Arduino vs RPi)
40 GPIO (Input /Output) SOC – System On a Chip (Broadcom BCM 2836) + 1 GB RAM Mounting hole SMSC LAN 9514 USB Ethernet controller Power & activity LED’s Close RUN header to reset Pi 4 USB ports DSI Display Connector SD Card (underneath) Switching regulator for less power consumption 10/100 T Base Ethernet port Power - Micro USB 5 v HDMI Digital video out CSI Camera Connector 4 Pole 3. 5 mm jack (stereo audio & composite video)
RPI • https: //www. raspberrypi. org/ • The challenge with RPi’s is that you can run different operating systems and different code on them • They are more flexible, more powerful than many others on the market • This means more options = more confusion
OUR RECOMMENDATION • Raspbian • https: //www. raspberrypi. org/downloads/raspbian/ • NOTE: all images run from the Micro SD card – you may need the adapter to fit into your PC/laptop
OTHER OS’S • NOOBS (New Out Of the Box Software) • https: //www. raspberrypi. org/help/noobs-setup/ • NOOBS can often come as a pre-install option • Openelec for home media centre • Yes you can run Windows or Ubuntu and others… • Unzip as required and install to the Micro SD
INSTALLING RASPBIAN WITH WINDOWS • Install Win 32 disk imager • http: //www. raspberry-projects. com/pi/pi-operating- systems/win 32 diskimager • Use the disk imager to point the Raspbian image to the Micro SD card to write the image • Install the card into the RPi and power it on….
INSTALLING RASPBIAN WITH LINUX • Start the terminal app (console or command line) • Note: the ‘dd’ tool can overwrite ANY partition, be careful! • https: //www. raspberrypi. org/documentation/installin g-images/linux. md • sudo dd bs=4 M if=path_of_your_image. img of=/dev/sdd • ‘If=‘ is the argument with the path to your *. img file • ‘Of=‘ is the output argument, the destination
INSTALLING RASPBIAN WITH APPLE • Start the terminal app (console or command line) • Note: the ‘dd’ tool can overwrite ANY partition, be careful! • https: //www. raspberrypi. org/documentation/installing- images/mac. md • sudo dd bs=1 m if=path_of_your_image. img of=/dev/rdiskn • ‘n’ on rdiskn should equal the number for the Micro SD card • If the command doesn’t work try (disk not rdisk): • sudo dd bs=1 m if=path_of_your_image. img of=/dev/diskn
STARTING UP THE RPI FOR THE FIRST TIME • Insert prepared micro SD card with OS installed • Connect HDMI to monitor • Connect a USB keyboard and mouse • Connect to a network (Ethernet or wireless USB) • Connect the power (it will then start)
YOU WILL SEE A CONFIGURATION WINDOW: Enable SSH
LOGIN • Standard user = pi • Standard password = raspberry
THE SHELL, OR BASH: Born Again SHell Logged in as user ‘pi’ Logged into this host Home directory (~) Ordinary user LXTerminal
ENABLE SSH MANUALLY • Enter sudo raspi-config in the terminal • Then navigate to ssh • Hit Enter and select Enable or disable ssh server.
STARTX
- Slides: 16