Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 99 to 99 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Line: 138 to 140 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 41 to 41 | ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/QtLED.tar.gz | ||||||||
Added: | ||||||||
> > | One way to develop the course in the future is the replacement of the C programming language by Python. Many Python modules are available for the Raspberry Pi and its sensors but in a course like ours it would be interesting to look behind the facade of prefabricated modules and try to write those ourselves to be able to understand what is going one behind the scene. This will allow us to create Python modules also for those devices which do not have a Python module written by somebody else yet. Here is an attempt to write the LED exercises in Python: https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/ledPython | |||||||
| ||||||||
Line: 60 to 66 | ||||||||
| ||||||||
Added: | ||||||||
> > | Again I tried to also write a Python module. dht11Example.py and dht11Class.py are the files you may want to have a look at https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/dht11Python.tar.gz | |||||||
| ||||||||
Line: 67 to 77 | ||||||||
| ||||||||
Added: | ||||||||
> > | Also for the hzd44780 I tried to write a Python class. This one even contains code to create your own characters by specifying the corresponding dot matrix. Have a look at helloWorld.py, which prints Hello World! in English and Привет Мир! (Hello World in Russian") https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/lcdPython.tar.gz | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 122 to 122 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 86 to 86 | ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/rtc.tar.gz
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/heartbeat.tar.gz
-- ![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 85 to 85 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
-- ![]() Comments | ||||||||
Line: 116 to 119 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 81 to 81 | ||||||||
and here is the doxygen doc![]()
| ||||||||
Added: | ||||||||
> > | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/pcf8591.tar.gz | |||||||
| ||||||||
Line: 114 to 115 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Solutions to the exercises | |||||||||||
Line: 14 to 14 | |||||||||||
To allow the system to find the shared library when the application is loaded for running you have 2 options:
| |||||||||||
Added: | |||||||||||
> > | In order to allow the students to access the gpio and the i2c driver you must add their user accounts to the gpio and the i2c groups. This is done with the command: usermod -a -G gpio (or i2c) user_account e.g. usermod -a -G gpio cscgrp1 | ||||||||||
For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter.
| |||||||||||
Line: 43 to 45 | |||||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/switches.tar.gz
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
In addition to the solutions to the stepping motor exercises I add the code written for the rotary encoder, which is a sort of a reverse stepping motor. Instead of sending a pulse sequence, you receive one and by interpreting it you can tell the relative angle the motor has reached. Here is the code: | |||||||||||
Added: | |||||||||||
> > | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/stepper.tar.gz | ||||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/rotaryEncoder.tar.gz
| |||||||||||
Added: | |||||||||||
> > | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/dht11.tar.gz | ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > | Here are the solutions to the exercises. They show how to set up signal levels and how to create the pulse generator. There are examples using the pigpio library and there is an example using the bcm2835 library speeding up the pulse frequency by a factor of ten. https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/mcp4275.tar.gz | ||||||||||
The code of the bcm2835 library and the pulse generator using the library resulting in higher pulse frequencies: https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/bcm2835-1.52.tar.gz | |||||||||||
Changed: | |||||||||||
< < | and here is the doxygen doc![]() | ||||||||||
> > | and here is the doxygen doc![]() | ||||||||||
| |||||||||||
Changed: | |||||||||||
< < |
| ||||||||||
> > |
| ||||||||||
![]() | |||||||||||
Line: 96 to 109 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 32 to 32 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/leds.tar.gz | ||||||||
Added: | ||||||||
> > | In addition to the solutions on the Raspberry Pi I wrote a simple Qt GUI: https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/QtLED.tar.gz | |||||||
| ||||||||
Line: 90 to 95 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. | ||||||||
Added: | ||||||||
> > | Several of the solution packages contain shared libraries the students can use. The idea is to give them a feeling for how the sensors work, before they try to write programs to access the sensor registers by themselves. Of course libraries hide many of the difficult intricacies to give users easy access to most (but usually not all) of the sensor's functionality. The libraries usually come in 2 files:
| |||||||
For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter.
| ||||||||
Line: 43 to 53 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > | The code of the bcm2835 library and the pulse generator using the library resulting in higher pulse frequencies:
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/bcm2835-1.52.tar.gz
and here is the doxygen doc![]() | |||||||
| ||||||||
Line: 71 to 88 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 23 to 23 | ||||||||
| ||||||||
Deleted: | ||||||||
< < | Here are some screen shots taken from the Hantek 6022BE oscilloscope equipped with far from perfect software. This software is however able to read out some wave forms and display them.
| |||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/leds.tar.gz
| ||||||||
Added: | ||||||||
> > | ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/switches.tar.gz
| ||||||||
Changed: | ||||||||
< < |
Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter.
| |||||||
> > |
In addition to the solutions to the stepping motor exercises I add the code written for the rotary encoder, which is a sort of a reverse stepping motor. Instead of sending a pulse sequence, you receive one and by interpreting it you can tell the relative angle the motor has reached. Here is the code: | |||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/rotaryEncoder.tar.gz
| ||||||||
Line: 81 to 42 | ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/photoResistor.tar.gz
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
![]() Comments
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
-- ![]() Comments | ||||||||
Line: 117 to 70 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Solutions to the exercises | |||||||||||
Line: 23 to 23 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > | Here are some screen shots taken from the Hantek 6022BE oscilloscope equipped with far from perfect software. This software is however able to read out some wave forms and display them.
| ||||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/leds.tar.gz
| |||||||||||
Line: 37 to 41 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > | Here are some screen shots taken from the Hantek 6022BE oscilloscope equipped with far from perfect software. This software is however able to read out some wave forms and display them.
| ||||||||||
| |||||||||||
Added: | |||||||||||
> > | Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter.
![]() Comments | ||||||||||
![]() | |||||||||||
Line: 56 to 112 | |||||||||||
| |||||||||||
Added: | |||||||||||
> > |
|
Line: 1 to 1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter. | |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/solEx2.tar.gz
| |||||||||
Changed: | |||||||||
< < | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/makeExamples.tar.gz | ||||||||
> > | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/makeExamples.tar.gz
| ||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
| |||||||||
Line: 20 to 24 | |||||||||
| |||||||||
Changed: | |||||||||
< < |
| ||||||||
> > |
| ||||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/rotaryEncoder.tar.gz | |||||||||
Changed: | |||||||||
< < | | ||||||||
> > |
| ||||||||
-- ![]() Comments | |||||||||
Line: 38 to 52 | |||||||||
| |||||||||
Added: | |||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 19 to 19 | ||||||||
| ||||||||
Added: | ||||||||
> > | https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/leds.tar.gz | |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
-- ![]() | ||||||||
Line: 32 to 36 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 32 to 32 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercises | ||||||||
Line: 18 to 18 | ||||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
-- ![]() | ||||||||
Line: 28 to 31 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter. | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
https://afnog.iotworkshop.africa/pub/Embedded_Systems/SolutionsToTheExercises/solEx2.tar.gz | ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
-- ![]() |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Added: | ||||||||
> > |
Solutions to the exercisesThis is the page to which the solutions will be uploaded. These will mainly consist of gzipped tar files which you can download and unpack. For the exercise on Linux the are no solutions as these are simple Linux commands to be executed into the bash command interpreter.
![]() Comments
|