---+ <font face="Liberation Sans, sans-serif"><font size="6">Examination projects on Embedded Systems,</font></font> ---+ Physics class <font size="2">I expect that you solve the problems on your own and you do not copy from your colleagues. For the examination itself, I will add a few questions on how you solved the problem and I will check with each of you, if the solution you present is your own. Believe me that I can easily find out if you copied, in which case I will count the problem as not solved!</font> ---++ C-programming: <b>Calculate sine values:</b><br /> <font size="2">Write a program that calculates the sine values of angles between 0 and 360 degrees (0 and 360 included) in steps of 30 degrees. It should therefore print the values of </font> * <p><font size="2">sin(30), sin(60), sine(90) sin(120) ... sin(330) sin(360) where all the parameters to the sine function are given in degrees. Use a loop to accomplish this.</font></p> *LED programming* <font size="2">Write 3 C programs:</font> * <p><font size="2">led_on</font></p> * <p><font size="2">led_off</font></p> * <p><font size="2">led_state</font></p> <font size="2">The first program switches an LED connected to pin 17 (GPIO pin 0) on.<br /> The second one switches it off<br /> The third program reads the state of the LED from pin 18 (GPIO pin 1).</font> <font size="2">How do you have to cable your LED? Produce a schematic diagram.</font> *Command line parameters* <font size="2">Write a C program that switches the LED state to a level defined by the user. The program is called _led_ and has 1 command line parameter which can be either “on” of “off”.</font> <font size="2">The LED is connected to pin 17 (GPIO 0).</font> <font size="2">When the user types:</font> * <p><font size="2"> _./led on_ the LED should go on</font></p> * <p><font size="2">if he types ./<i>led off </i>the LED should go off.</font></p> <font size="2">For each of the programs write the C code and the Makefile as well as a short description (README file) on how you solved the problem.</font> Here is the pdf of the examination sheet: %ATTACHURL%/examphy.pdf -- %USERSIG{UliRaich - 2017-11-23}% ---++ Comments %COMMENT%
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
gz
results.tar.gz
r1
manage
106.6 K
2017-11-28 - 08:09
UnknownUser
pdf
examphy.pdf
r1
manage
47.2 K
2017-11-23 - 18:37
UnknownUser
This topic: Embedded_Systems
>
WebHome
>
CourseExercises
>
ExamPhys
Topic revision: r2 - 2017-11-28 - uli
Copyright © 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