Connecting your Halocode Device. First turn on mBlock App.
K-2.AP.10 Model daily processes by creating and following algorithms to complete tasks.
K-2.AP.12 Create programs with sequences of commands and simple loops, to express ideas or address a problem. |
Blink One LEDCode One LED to blink. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 1. Upload your code. Use numbers on the RGB chart on slide 2 to change the color of the LED
|
|
Blink Two LED'sCode Two LED's to blink. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 1. Upload your code. Use numbers on the RGB chart on slide 2 to change the color of the LED
ChallengeCan you modify this code to do something unique. Make a list 3 ways you could change the code to make it different. Try one of your modifications and then share it with another student or group. Tell them what you did to modify your code. How does the Halocode, computer and coding all work together?
|
Standards
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.CS.2 Demonstrate how computer hardware and software work together as a system to accomplish tasks.
3-5.AP.12. Create programs that include events, loops, and conditionals.
3-5.CS.2 Demonstrate how computer hardware and software work together as a system to accomplish tasks.
3-5.AP.12. Create programs that include events, loops, and conditionals.
|
Shake & RainbowCode the Rainbow animation to start each time you shake the Halocode. Use the code on slide 1. Upload your code and try. Then, try the other animations.
The repeat block is a Loop in coding. What happens when you increase the number of repeats or decrease the number of repeats? How can you modify this project? What would happen if you changed the repeat loop for a forever loop? Discuss with your partner or group.
|
Standards
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.CS.2 Demonstrate how computer hardware and software work together as a system to accomplish tasks.
3-5.AP.12. Create programs that include events, loops, and conditionals.
3-5.CS.2 Demonstrate how computer hardware and software work together as a system to accomplish tasks.
3-5.AP.12. Create programs that include events, loops, and conditionals.
|
Halo Happy FaceCode a Happy Face. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 2. Click on the block as shown in slide 3 to turn on and off the LED's to create the happy face. Click ok. Upload your code.
ChallengeWhat patterns do we see everyday in the world? Create several patterns on the Halocode. Try creating one that you've seen in the places or create one of your own that has a purpose. Share with your creation with another group.
|
Standards
K-2.NI.6 Create patterns to communicate a message.
|
Sound SensitivityCode to see the lights turn on with sound sensitivity. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 1. See the video as well. Click ok. Upload your code. Once your device works you will see LED lights increase and decrease depending on the percentage of intensity of the sound.
ChallengeCan you tell which areas of your school are more noisy. Use your sound meter that you've created. Measure several areas around the school to see where the intensity of the sound is more or less. Make a data chart and write down what you've found out. Share your findings with another group or your class.
|
Standards
6-8.CS.2 Design a project that combines hardware and software components to collect and exchange data.
6-8.DA.8 Collect data using computational tools and transform the data to make it more useful.
6-8.DA.8 Collect data using computational tools and transform the data to make it more useful.
|
Halo Music 1Code a short musical piece. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 2. Watch the video to see how to connect a small buzzer with alligator wires. Upload your code and try it. Use the note chart on slide 3 to help you create use different notes for different projects.
DiscussionHow does the Halocode create different notes for music? How does the computer know what note to play? Why is the code broken up into smaller pieces? Where is the note stored? Discuss these questions with your partner or group.
|
Standard
K-2.AP.11 Model the way programs store data.
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.AP.14 Create programs by incorporating smaller portions of existing programs, to develop something new or add more advanced features.
3-5.AP.17 Test and debug a program or algorithm to ensure it accomplishes the intended task.
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.AP.14 Create programs by incorporating smaller portions of existing programs, to develop something new or add more advanced features.
3-5.AP.17 Test and debug a program or algorithm to ensure it accomplishes the intended task.
|
Halo Music 2Code Twinkle Twinkle Little Star. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 2. Watch the video to see how to connect your Halocode to the buzzer. Upload your code. Use Note/Frequency chart to modify your music of you'd like.
Try it!Create and Modify the code, notes and timing to create different songs or tunes. How can you add from another song? Could you make your song longer or shorter? If your song doesn't sound exactly correct, what can you do to fix it?
|
Standards
K-2.AP.11 Model the way programs store data.
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.AP.14 Create programs by incorporating smaller portions of existing programs, to develop something new or add more advanced features.
3-5.AP.17 Test and debug a program or algorithm to ensure it accomplishes the intended task.
3-5.CS.1 Describe how computing devices connect to other components to form a system.
3-5.AP.14 Create programs by incorporating smaller portions of existing programs, to develop something new or add more advanced features.
3-5.AP.17 Test and debug a program or algorithm to ensure it accomplishes the intended task.
|
Magic WandUsing the skills you've learned in the previous projects using the LED lights and Buzzer, create a magic wand that will activate light patters and simple music when you shake the wand. You will also be using the Battery pack for power and rubber bands to secure all the electronics. You can decorate it more if you'd like with a colored stick, feathers or anything else. Have fun!
Challenge
Think about how you could use this idea to create a device for a special need. What could you create that could be useful to someone?
|
Standards
3-5.IC.21 Propose ways to improve the accessibility and usability of technology products for the diverse needs and wants of users.
6-8.CS.1 Design modifications to computing devices in order to improve the ways users interact with the devices.
6-8.AP.12 Design and iteratively develop programs that combine control structures and use compound conditions.
6-8.IC.22 Collaborate with many contributors when creating a computational artifact.
6-8.CS.1 Design modifications to computing devices in order to improve the ways users interact with the devices.
6-8.AP.12 Design and iteratively develop programs that combine control structures and use compound conditions.
6-8.IC.22 Collaborate with many contributors when creating a computational artifact.
|
One External LEDLearn how to connect an External LED to Halocode. Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 2. Watch the video to see how to connect your Halocode to the LED. Remember that the short leg of the LED always connects to GND. The other leg will connect to #1 as shown in the code. Upload your code.
|
|
Add a Servo MotorAdd a Servo motor to your Halocode device Open mBlock. Add the Halocode Device. Connect your device. Use the code on slide 2. Watch the video to see how to connect your Halocode to the Servo Motor. Upload your code. Try it several times and modify the numbers to see what you can do with it.
|
Touch Music
Follow the code as shown. You will need to add the "Upload Mode Broadcast" extension to both the Halocode and Panda Sprite by clicking on the extension button at the bottom. You will need to add new sounds to the play block. Search for piano or guitar or other instrument. Each instrument will have several notes. Click on the sound block you are using and select record. Once the the record box opens, close it by clicking on the X. Then find the add sound + and click. You will see the search box where you can search for instruments with notes. Be sure to connect your Halocode and then upload the code.
|
My BandUsing the same concepts as in the previous Touch Music Activity, Add Sprites that are instruments to create a band. Each instrument sprite will have it's own code. Then you will code the touch pads to trigger the sound for each instrument. See the examples on how to code. Look on slide 3 to see the sound button where you will click to add sounds. You must first add the sprite and place a "start sound" block as shown for the specific instrument sprite. Once coding is complete give it a try by uploading the code and touching the touch pads to make each instrument sound.
|
Halocode Dice
Create a digital Dice or random number generator using the Halocode. Be sure to add the extensions upload mode broadcast for the device and the sprite. Also add cognitive services for both. Also add text to speech and for the sprite.
|
|
Lucky Wheel
Create a Lucky Wheel Game.Follow the code as shown. Also make a circular game plate as shown in the video.
|
|
Game Controller
Use the Halocode as a game controller to move a character/sprite. Follow the code as shown.
Create your controller using the Halocode, cardboard and brass fasteners. Label the directions. This is a basic version. Do not be afraid to make create something better or different. How can you make this simple controller look and feel better? Also think about how you could use a controller to move other objects in a game you create. Think of previous project too and how you could add a controller.
|
Connecting ControllerUsing Controller to Play |
Sample Video Game
-
Original Video Game
-
Video Game with Controller
<
>
Touch Fruit MusicYou can use fruit as the touchpad for music. Using paper clips, poke paper clips into fruit and connect the alligator clip to the end of the paper clip. Code as you did in the previous touch music activity.
|
|
Fuzzy MusicTry creating a different version of the touch music with fuzzy wire.
|
Rock Paper ScissorTo code a rock paper scissor game, first create a variable called "ShakeResult". Follow the code as shown. Begin with the "When Halocode is Shaking" block. You will use the "pick random" block and use 1 to 3 because you have 3 choices or possible results. Make a graphic in the sprites tab and customize the costume.
|
Halocode Boat
Create Servo Paddle Boats using cardboard, tape, glue, foil and other craft materials. You will code and power your servo motor using the Halocode microcontroller and a battery pack. See the examples below. When done compare your boat with other teams, test your boat out, make modifications and then have a race.
|
|
Once you've completed the boat it is time to test it. See if you can get it to float and move.
|
|
Halocode Mesh Control (LAN)
Follow the code below for each of the Halocodes. See the arrows so you understand which code goes to which Halocode.
Adding mBuild Add-ons to Halocode
Setting Up Sensors
Be sure to add the extension for the sensor you will be using before you start to code.
mBuild Speaker
Try one of these code activities which will allow you to use the speaker with the Halocode. First use mBlock to create the code. Then upload it to the Halodcode. Unplug your Halocode from computer. Then using one of the wires as shown in the picture, connect the Halocode to Power Block. Then connect the Speaker to the Power Block with another wire. Turn on power block and then run your code.
|
mBuild LED Matrix & Ranging Sensor
Click on the Image below to enlarge. Then complete the code and upload it to find the range (distance) of an object in centimeters.
ChallengeBrainstorm a way to use the ranging sensor to measure something. Could you use it to alert you about something? Could you use it to trigger another sensor, sound or movement for a particular purpose? What could you build?
|
mBuild Humiture Sensor (Humidity & Temperature)
mBuild RGB LED
|