What parameters did you change to move a chamber? How do they work?
In this lesson, students use a software called NetTango to use coding blocks for constructing a computational model of animal behavior.
This curricular unit is co-designed by Teresa Granito and Sugat Dabholkar.
In this lesson, you will make your own computational model of roly-polies. You will use a computational tool called NetTango to code animal behavior using blocks.
This is a computational setup designed using a tool called NetTango. This setup will allow you to construct your own computational model of roly-poly behavior. You will use coding block to build a computational model.
Play around with some of the coding blocks and see if you can setup a chamber.
Try the challenges below:
Increase the size of the chamber.
Move the chamber to the left, and to the right.
Move the chamber up, down.
“add-roly-polies”
Make 2 Chambers that are connected.
Add the ‘clear’ block and see how it works.
Setup again and run the model by pressing the ‘go’ button.
Blocks can be used multiple times. Blocks can be dragged to the trash to take them out of the code.
Anytime you make changes click on the "recompile" button followed by setup and go.
You can also watch the embedded video to learn how the use NetTango blocks to add and move roly-polies. [If the video is not displayed, ask your teacher to screen the video.]
What parameters did you change to move a chamber? How do they work?
How did you increase the size of the chamber?
Take screenshots of your 'setup' and 'go' procedures and upload the files.
File | Delete |
---|---|
Challenge: Add roly-polies and have them move in a realistic way.
Drag blocks over to make two chambers that are connected. Add roly-polies. Tell the roly-polies how to behave.
Get the roly-polies to move around the field.
Get the roly-polies to move around the field more realistically.
Get the roly-polies to stay within the chambers.
Describe what happened when you first added the roly-polies to the chambers.
Did the roly-polies stay in the chambers? If not, how did you change the code?
Take a screenshot of your chambers and NetTango code (i.e., blocks). Upload the files.
File | Delete |
---|---|
You have more blocks now. Use those to setup two chambers and conditions in each chamber.
Which new blocks did you use?
Describe any benefits of the new blocks and any difficulties you faced in using the new blocks.
Upload your screenshots of chambers with conditions and your NetTango code here.
File | Delete |
---|---|
Let's use the model from one of the previous lessons, except the "go" button does not work!!
You can make it work by programing behavior of roly-polies using blocks, so that they behave just like how you observed the behaving experimentally.
CHALLENGE: Add Chamber Preference
In the roly-poly animal behavior experiment that we conducted, we learned that roly-polies prefer the moist chamber over the dry chamber. Code for that preference behavior using the NetTango blocks.
Run your model.
Keep changing the parameter in the blocks until the roly-poly behavior in the model more closely matches the roly-poly behavior observed in the experiment we conducted.
Take screenshots of the NetTango code and of the graphs in your model. Upload the files.
File | Delete |
---|---|
A few lessons ago, you changed a model by typing lines that setup "new-condition" in a model. Now you changed a model by moving blocks to set up conditions. What are the benefits of using block-based coding like this NetTango model, compared to typing lines of code?
What other blocks would you want to add to this model?
List 5 big ideas about coding that you learned by completing the lessons in this entire unit.