This document contains instructions for 6 programming practices using an mBot robot. Practice 1 teaches how to program the robot to avoid obstacles using an ultrasonic sensor. Practice 2 explains how to control the robot's RGB LED lights by varying color values. Practice 3 demonstrates how to program the robot to play musical notes. Practice 4 shows how to make the robot follow a flashlight by responding to light sensor input. Practice 5 provides directions for programming line following behavior. Practice 6 describes measuring temperature with the robot's onboard sensor.
How to Rock with Robots for Young Makers with mBlock? (Teaching Material)Una Tao
mBlock is the software created by @Makeblock company, which is used mainly for programming and controling mBot, which is an educational STEM robot for kids. While mBlock is developed from Scratch 2.0, it can control more than just mBot with powerful skills. Check this teaching material, which is written by some volunteers, mainly teachers in details. And they didn't charge any bucks, which is one of the most important personalities of makers - selfless.
Download mBlock here: http://www.mblock.cc directly.
Get mBot here:
Bluetooth version: http://www.makeblock.cc/mbot-blue-bluetooth-version/
2.4G version: http://www.makeblock.cc/mbot-blue-2-4g-version/
Don't forget to follow our social accounts:
https://www.facebook.com/Makeblock
https://twitter.com/Makeblock
https://www.youtube.com/user/Makeblock
https://plus.google.com/+Makeblock/about
https://www.pinterest.com/makeblockcc/
Switch Control and Time Delay
1. LEDs and switches
2. Keypad and LEDs
3. Keypad and 8-segment LED C language and Assembly Code for Freescale MC9S08AW60
The Doppler EffectWhat is the Doppler effect, and why is it impo.docxcherry686017
The Doppler Effect
What is the Doppler effect, and why is it important to understand?
Sound
1. Describe what is meant by "sound." Explain how sound is created, transmitted, and sensed.
2. Set the source velocity (the Italian label reads Velocidad del emisor) to 0.0. Run the simulation (click the Empieza button). Calculate the frequency of the waves by counting the number of full waves that pass through a point in ONE second. You can press the Pausa and Continua buttons to step through the animation to pause and restart the wave motion.
3. The distance between numbered tick marks is 1 meter. Measure the wavelength using these tick marks. Use the wavelength and the frequency you calculated in number 2 to calculate the velocity of the wave.
The Doppler Effect in Sound
4. Now, set the source velocity (Velocidad del emisor) equal to 0.50. Run the simulation until the wave source (red rectangle) has moved close to the observer (blue rectangle). Calculate the new wavelength for the waves on each sideof the moving source? Count the tick marks in one full wave to make this calculation, knowing that each tick mark equals 0.2 meters.
5. Examine the motion of the waves. Has the frequency increased or decreased on each side of the source?
6. Use the equation x f = v, to calculate the frequency at a point on each side of the source. Remember that the velocity of the wave DOES NOT change (so use the velocity you calculated in #2). You will also use the wavelength you calculated for the wavelengths of the waves on each side of the source for #4.
7. Use the equations provided on page 2 of the Read section to calculate what the frequency actually should be on each side of the source (show your work below). Use this to see how accurate your answers in #6 were.
Electromagnetic Waves and Light
8. Summarize how electromagnetic waves are similar to acoustical (sound) waves. How are they different?
The Doppler Shift in Light
9. How is the Doppler shift used in astronomy? What is meant by the terms red-shift and blue-shift?
Summary (Homework)
10. Radar is a process that uses reflected electromagnetic waves in order to create an image of an object. Doppler radar (often used in weather) is used to tell the speed and direction clouds are moving. Explain how this might work. (Hint: Think about how radio waves might change when they reflect off of moving objects.)
11. Explain why the pitch of an object approaching an observer (such as a fire truck with its siren on) differs from the pitch as it moves away from the observer. Remember that pitch is the brain's interpretation of a sound's frequency.
12. Now answer the Focus Question. What is the Doppler effect, and why is it important to understand?
3. (10 pt) ASCII, Unicode, and EBCDIC are, of course, not the only numeric / character codes. The Sophomites from the planet Collegium use the rather strange code shown in the Figure below. T ...
ECET 105 help A Guide to career/Snaptutorialpinck199
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
ECET 105 help A Guide to career/Snaptutorialpinck243
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
How to Rock with Robots for Young Makers with mBlock? (Teaching Material)Una Tao
mBlock is the software created by @Makeblock company, which is used mainly for programming and controling mBot, which is an educational STEM robot for kids. While mBlock is developed from Scratch 2.0, it can control more than just mBot with powerful skills. Check this teaching material, which is written by some volunteers, mainly teachers in details. And they didn't charge any bucks, which is one of the most important personalities of makers - selfless.
Download mBlock here: http://www.mblock.cc directly.
Get mBot here:
Bluetooth version: http://www.makeblock.cc/mbot-blue-bluetooth-version/
2.4G version: http://www.makeblock.cc/mbot-blue-2-4g-version/
Don't forget to follow our social accounts:
https://www.facebook.com/Makeblock
https://twitter.com/Makeblock
https://www.youtube.com/user/Makeblock
https://plus.google.com/+Makeblock/about
https://www.pinterest.com/makeblockcc/
Switch Control and Time Delay
1. LEDs and switches
2. Keypad and LEDs
3. Keypad and 8-segment LED C language and Assembly Code for Freescale MC9S08AW60
The Doppler EffectWhat is the Doppler effect, and why is it impo.docxcherry686017
The Doppler Effect
What is the Doppler effect, and why is it important to understand?
Sound
1. Describe what is meant by "sound." Explain how sound is created, transmitted, and sensed.
2. Set the source velocity (the Italian label reads Velocidad del emisor) to 0.0. Run the simulation (click the Empieza button). Calculate the frequency of the waves by counting the number of full waves that pass through a point in ONE second. You can press the Pausa and Continua buttons to step through the animation to pause and restart the wave motion.
3. The distance between numbered tick marks is 1 meter. Measure the wavelength using these tick marks. Use the wavelength and the frequency you calculated in number 2 to calculate the velocity of the wave.
The Doppler Effect in Sound
4. Now, set the source velocity (Velocidad del emisor) equal to 0.50. Run the simulation until the wave source (red rectangle) has moved close to the observer (blue rectangle). Calculate the new wavelength for the waves on each sideof the moving source? Count the tick marks in one full wave to make this calculation, knowing that each tick mark equals 0.2 meters.
5. Examine the motion of the waves. Has the frequency increased or decreased on each side of the source?
6. Use the equation x f = v, to calculate the frequency at a point on each side of the source. Remember that the velocity of the wave DOES NOT change (so use the velocity you calculated in #2). You will also use the wavelength you calculated for the wavelengths of the waves on each side of the source for #4.
7. Use the equations provided on page 2 of the Read section to calculate what the frequency actually should be on each side of the source (show your work below). Use this to see how accurate your answers in #6 were.
Electromagnetic Waves and Light
8. Summarize how electromagnetic waves are similar to acoustical (sound) waves. How are they different?
The Doppler Shift in Light
9. How is the Doppler shift used in astronomy? What is meant by the terms red-shift and blue-shift?
Summary (Homework)
10. Radar is a process that uses reflected electromagnetic waves in order to create an image of an object. Doppler radar (often used in weather) is used to tell the speed and direction clouds are moving. Explain how this might work. (Hint: Think about how radio waves might change when they reflect off of moving objects.)
11. Explain why the pitch of an object approaching an observer (such as a fire truck with its siren on) differs from the pitch as it moves away from the observer. Remember that pitch is the brain's interpretation of a sound's frequency.
12. Now answer the Focus Question. What is the Doppler effect, and why is it important to understand?
3. (10 pt) ASCII, Unicode, and EBCDIC are, of course, not the only numeric / character codes. The Sophomites from the planet Collegium use the rather strange code shown in the Figure below. T ...
ECET 105 help A Guide to career/Snaptutorialpinck199
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
ECET 105 help A Guide to career/Snaptutorialpinck243
For more classes visit
www.snaptutorial.com
1. Does a typical computer have any analog outputs? If so, what are they?
2. List three advantages of digital signal representation as compared to their analog representation.
3. Convert 126 x 10+2 to scientific and engineering notations.
4. Make the following conversions:
a. Convert 0.34 seconds to milliseconds.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
Executive Directors Chat Leveraging AI for Diversity, Equity, and InclusionTechSoup
Let’s explore the intersection of technology and equity in the final session of our DEI series. Discover how AI tools, like ChatGPT, can be used to support and enhance your nonprofit's DEI initiatives. Participants will gain insights into practical AI applications and get tips for leveraging technology to advance their DEI goals.
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Dr. Vinod Kumar Kanvaria
Exploiting Artificial Intelligence for Empowering Researchers and Faculty,
International FDP on Fundamentals of Research in Social Sciences
at Integral University, Lucknow, 06.06.2024
By Dr. Vinod Kumar Kanvaria
How to Build a Module in Odoo 17 Using the Scaffold MethodCeline George
Odoo provides an option for creating a module by using a single line command. By using this command the user can make a whole structure of a module. It is very easy for a beginner to make a module. There is no need to make each file manually. This slide will show how to create a module using the scaffold method.
This presentation includes basic of PCOS their pathology and treatment and also Ayurveda correlation of PCOS and Ayurvedic line of treatment mentioned in classics.
1. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
1 ReyesMontero
curso 2017
Practice 1 mBot; avoid obstacles
Programme mBot to be able to avoid any obstacle, wall ... Using the ultrasonic sensor.
The mBlock environment is similar to Scratch, so it will not be difficult for you to understand the
following commands, or to find the programming blocks.
1. We have to check in which port the ultrasound sensor is connected (which will measure
the distances). In this programming it appears in port nº 10 but in your robot it can be
different.
2. We establish the verification distance in 15 cm..
3. If the distance is less than 8 cm, the robot must retreat at a speed of maximum of 100.
4. If the distance is less than 50 cm, turn to the right at the average speed (50), if it is not less
than 50, it turns to the left.
5. If the distance is not less than 15, move forward.
Check the maze distances are enough, if not, you correct and adapt the programming.
2. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
2 ReyesMontero
curso 2017
Practice 2 mBot; playing with the colours of light (LED)
The 12 RedGreenBlue LEDs of mBotRangerson are very cool, they are placed in a circle.
Each RGB LED can be programmed to control the brightness of the three colours (red, green and
blue) and combine these three colours to produce different colours of light.
Now, we will learn how to control the RGB LEDs with blocks:
The Auriga board of mBot contains 12 LEDs. If we choose the option "all" we can control the colour of the
12 LEDs. If we selected a number "2" we could control the colour of the LED number 2. The minimum value
of light is "0" and the maximum light is 255.
1. You can try different values for the Red, Green and Blue and observe what colour comes out.
2.Do you find out what color comes up by putting the next block?
If we want to change colour, we will
have to add some waiting time (0.5 seconds) to be able to observe it.
You can also put a different colour for each LED.
1. Now we programme the following algorithm:
2. Next, design your own colour sequence.
When you finished, save it with the name programme-Practice2. playing with colors and upload the Virtual Classroom.
3. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
3 ReyesMontero
curso 2017
Practice 3.- Produce music with mBot
With this simple program, the robot plays different
notes and repeats them twice.
Could you programme the robot to play a simple song? For example Beethoven's "Ode to Joy".
• Note the letters to identify musical notes (Do = C = D Re, Mi = E, F = Fa, Sol = G, A = A, B = Si)
• The number corresponds to the scale (1,2,3,4,5)
• The pulse corresponds to the duration (Minim = 2, Quarter note = 1, Quaver= 1/2, Semiquaver =
1/4, Demisemiquaver = 1/8)
4. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
4 ReyesMontero
curso 2017
Practice 3.1.- We program the song of "happy birthday"
With this program, repeated continuously (cyclically) a
sequence (forever)
1. Turn on all LEDs in red
2. Play different notes
3. Wait 0.4 sec
4. Turn on the LEDs in green
5. Repeat notes
6. Wait
In the table below, there is an equivalence of notes and
sound frequencies, the higher the frequency, the acute the
sound.
DO RE MI FA SOL LA SI
NOTA C2 D2 E2 F2 G2 A2 B2
Frecuencia Hz 65.4 73.4 82.4 87.3 98.0 110.0 123.5
NOTA C3 D3 E3 F3 G2 A3 B3
Frecuencia Hz 130.8 146.8 164.8 174.6 196.0 220.0 246.9
NOTA C4 D4 E4 F4 G4 A4 B4
Frecuencia Hz 261.6 293.6 329.6 349.2 392.0 440.0 493.9
NOTA C5 D5 E5 F5 G5 A5 B5
Frecuencia Hz 523.2 587.3 659.3 698.5 784.0 880.0 987.8
NOTA C6 D6 E6 F6 G6 A6 B6
Frecuencia Hz 1046.5 1174.7 1318.5 1397.0 1568.0 1760.0 1975.5
NOTA C7 D7 E7 F7 G7 A7 B7
Frecuencia Hz 2093.0 2349.3 2637.0 2793.8 3136.0 3520.0 3951.1
NOTA C8 D8 E8 F8 G8 A8 B8
Frecuencia Hz 4186. 0 4698.6 5274.0 5587.7 6271.9 7040.0 7902.1
5. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
5 ReyesMontero
curso 2017
Practice 4.- The mBot follows the light of a flashlight
To the left and right of the LED ring, the robot has two light sensors (LDR) "ligth_sensor 1" and
"light_sensor2"
First of all we must calibrate or test the ambient light of the room where we are, and also when we
approach the light of a flashlight. We will use the following command ;
For this program to work, you must restore the default software on mBotRanger
Connect menu - Restore the default program - mBotRanger
Once the ambient light has been checked, we must programme it to follow the lantern light, which
should be higher than the one set for ambient light.
• If light is detected >200 by the right sensor,
then it turns to the right, and it plays a sound.
• If light is detected >200 by the left sensor, then
it turns left and plays another sound different.
• If it does not detect light >200 then it moves
forward.
Now you:
Try changing the values of the light sensor because
this programme works in the dark. If you do not get
darkness in the room, you are able to get dark you
must change the values of the light sensor to values
higher than what you originally measured.
6. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
6 ReyesMontero
curso 2017
Practice 5.- mBot follows a line
With the module "follow-lines" we can get the robot to move along a black line on a white
surface or vice versa. This sensor is placed at low side front of the robot.
This sensor consists of 2 electronic components: an LED that emits light and a PHOTOTRANSISTOR
IR (photodiode) that receives the reflected light signal.
The black surfaces reflect little light. The white surfaces reflect a lot of light.
Let's create a variable (black_line); the value sent
by the sensor may be (0,1,2,3)
• If the value is = 0 then it is on the black line,
and it will continue straight.
• If the value is = 1, then it does not detect
the line with the right sensor, and it must rotate
to the left.
• If the value is = 2 then it does not detect
the line with the left sensor and must rotate to
the right.
• If the value is = 3, does not detect the
black line with any sensor and must backtrack.
• The speed must not be too high, so that it
does not get out the path (80) and we will adjust.
Now you:
How would the programme be if we want to follow a white line on a black background?
7. Dpto de Tecnoloxía CPI de Atios Programación 1ºESO
mBot-Makeblock-Scratch
7 ReyesMontero
curso 2017
Practice 6.- We measure the temperature with mBot
The board of our mbot contains a temperature sensor that offers analog measurement of temperature in the
range of approximately - 40 °C to +125 °C. (-40ºF to 275ºF)
This is a NTC thermistor. The thermistor bases its operation on the variation that suffers the resistance of the
semiconductor material whena change in temperature occurs. It NTC (NegativeTemperatureCoefficient), the
strength of the semiconductor decreases with increasing temperature.
We will use the following command;
In the following example we will schedule to show us on the makeBlok
screen of the computer, at room temperature at three different
temperature ranges: Fahrenheit, Celsius and Kelvin.
To do this, we create three variables (temperature in ° C, ºK and ºF) that are associated with each of the
scales
• Direct measurement in ºCelsius (Centigrade)
• Measurement in degrees Kelvin = ºC + 273
The "penguin" object will tell us every 6 seconds, the numerical value of the temperature (approximate value
using the rounding function) on the three scales.
The programme would look like this:
In order for this program to work, you must restore the default software to mBotRanger
Connect menu - Restore the default program - mBotRanger