Anda di halaman 1dari 3

Test

What I observe most is how short the code in python and quite simpler unlike in C++. In
C++ you need to need to specify what type of things so there is less ambiguity about what
the instruction means and errors can be caught .Unlike in python you dont need to specify
these types and instruction.

For loop
Modifying for loop in python is quite different and its easy to understand compare to C
language. And In python the for statement is different from the way it way it works in C.

Variable
Base on I observe unlike in C, You dont need to specify what type of integer and the print
function automatically inserts a space whenever it encounters a comma in a statement.
Also I observe that you can combine both text and numbers in one variable.
For Loop
I learn how for loop works in python program and the difference of it in C is
programming language.

7SEGMENT
In this activity I learn how a 7 segment works using the raspberry pi and also I learn some
basic functions of raspberry Pi. I learn how this activity works with the help of python
programming and some basic knowledge about logic circuit. The program is written for
the display to count from 0 9 continuously.

Buzzer
In this activity, I learn how to make a buzzer using a raspberry with the help of python
programming. This program is written to output a sound from the buzzer with the tone
correspond to the frequency of 440.
PWMFADEIN
In this activity, I learn about how to make a circuit that can control the intensity of
LED using Pulse Width Modulation (PWM). The program is written a led that is slowly
increases the light intensity by a specific number of time.
Fadeout
In this activity, is the same as the fade in activity but in this activity it controls of
how the light intensity decreases by a specific number of time.

FadeFade
In this activity, the programs works as the led lights intensity reach, it will slowly to
decrease its intensity or simply fading in and out of LED with the help of PWM (Pulse
Width Modulation, As I learn with the previous activity.
LED
In this activity, I learn about how to make a LED turn on raspberry Pi using a python
programming and I learn the basic difference between the raspberry pi and arduino like
the RPi. GPIO library.
Led blink
I learned how to make a led blink on and out in raspberry pi and with the help of
python programming, also with the basic knowledge about Arduino.
Led Pulse
In this activity, I learn how to program that make a led pulse.
Led fade 100 DUTY CYCLE
In this activity, the led is fading with a 100 duty cycle.
Button 1 rising edge detected
I learned that an edge is the change in the state of the electrical signal from high
to low
Button 1 falling edge detected
I learned that an edge is the change in the state of the electrical signal this
time from low to high.

Button 1 falling and rising edge detected


An edge is changing in state of electrical signal from high to low and then from
low to high. The output of this program is when the button is push an output will displayed
in lcd that rising edge detected.
Button 1 and 2 falling and rising edge detected
Using pin 27 and 18 which is set as button 1 and 2 to test the edge detection for
falling and rising.
Button 1 is pushed
I learned in this activity how to code a program that whenever a pushbutton is
pressed the output will displayed in LCD that says buttonis pushed. And as I learned that
is much easier to operate in this compare to the arduino
Button 1 is pushed once
I learn how to read values for raspberry pi gpio pins by pressing the button 1 once.
Buzzer happy birthday tone
The code for this program how to program a code that make a happy birthday tone
that also use a ringtone in nokia cellphone by controlling the frequency in a fun way.

Anda mungkin juga menyukai