Difference: Lecture6:BringingTheRaspberryPiToLife (3 vs. 4)

Revision 42017-10-12 - uli

Line: 1 to 1
 
META TOPICPARENT name="LectureSlides"

Start Presentation

Slide 1: The Raspberry Pi and how to bring it to life

Changed:
<
<

Lecture 5

Uli Raich

UCC semester 2017/2018

>
>

Lecture 6

Uli Raich

UCC semester 2017/2018

 

A first glimpse

Line: 97 to 97
 

Connection to bread board: The cobbler

raspberry.png cobbler.png

Changed:
<
<

Other Rpi connections

>
>

Other RPI connections

  I2C is a serial bus often used in computer systems of for
Line: 108 to 108
 
  • DAC
  • Real time clock
  • EEPROM
Added:
>
>
  • BPM180 barometric pressure sensor
 
  • We also have a 2-line LCD display needing some 8 signals
    (+ power and gnd). A serial to parallel interface (shift register)
    with I2C interface eases the connection to the Raspberry Pi
    as only 4 serial signal lines are needed: SDA, SCL, Vcc, Gnd

Line: 318 to 319
  Go through all the options of the program and see if they make sense to you.
Added:
>
>

Accessing the RPI remotely

Of course we can use the interfaces on the Raspberry Pi

to connect a screen, keyboard and mouse and use it in stand-alone mode

but we can also make use of the PC resources and access it remotely

There are several ways to access the RPI remotely:

  • Using the VNC server on the Pi you can access it
    with a remote desktop from the PC
  • The secure shell (ssh) allows you to get a remote terminal in the Pi
  • With scp you can copy files back and forth between the Pi and the PC
  • With nfs you can mount part of the Pi file system into the
    PC file system tree and access the PI SD card as if it was a local PC disk.

The remote Desktop

piRemoteDesktop.png

scp

To copy a file from the PC to the Pi this would be the command:

scp myfile.c uli@rpi-10:exercises/solutions/exercise_2

This will copy the file “myfile.c” into the sub-directory

exercises/solutions/exercise_2 on my home directory on the Pi.

Of course user uli must exist on raspberry10.

Instead of specifying the machine name: rpi-10

you can also give its IP address.

Compiling C programs for the Raspberry Pi

Just like Linux on the PC, Linux on the Raspberry Pi uses the GNU C compiler gcc.

The front end:

  • Lexical Analyzer
  • and the parser for the grammar
are the same.0

However, the code generator is different since now

we compile for the ARM processor and not the

Intel processor used on the PC

Cross-Compilation for the Pi

As explained in a previous lecture we can also compile

C programs for the Raspberry Pi on the

PC Linux system using a cross-compiler.

The cross compiler we will use is named

arm-linux-gnueabihf-gcc

and it is part of the tools package for the Pi.

It exists also as an Ubuntu package to be installed with apt.

 %SLIDESHOWEND%

-- Uli Raich - 2017-09-13

Line: 337 to 407
 
META FILEATTACHMENT attachment="whichDisks.png" attr="" comment="" date="1505808933" name="whichDisks.png" path="whichDisks.png" size="7263" user="uli" version="1"
META FILEATTACHMENT attachment="dd.png" attr="" comment="" date="1505810091" name="dd.png" path="dd.png" size="5660" user="uli" version="1"
META FILEATTACHMENT attachment="ddProgress.png" attr="" comment="" date="1505810091" name="ddProgress.png" path="ddProgress.png" size="4503" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="piRemoteDesktop.png" attr="" comment="" date="1507793748" name="piRemoteDesktop.png" path="piRemoteDesktop.png" size="387840" user="uli" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback