Exam

Take the test -
Save it to your desktop.
Nothing other than open office should be open during the exam.
Print it two pages to a sheet.
Survey -
If the survey does not show up, go to the options, privacy tab, clear privacy now.
Or you could use a different browser.

Summer project:

Make signs for Conservation department in the town.
Meeting Tuesday after the second exam in room 136.

Courses for next year:

Robotics
Build Repair
C++
Web Design

6-19-08

ExportSqueak code

In Scratch, open your most recent project.
Hold the shift key and left click on the Extras button.
Let go of the shift key and choose "Write Project Summary"
Open a new text document.
Save it as your projectname.txt
Choose paste and your code for the project will appear.
Save the file.
Select the top of the code through the first sprite.
Print the file two pages to a sheet to save paper.
Choose Print Selection to get just the code at the top and the first sprite.
Upload your text to your wiki for reference.

Prints of Scratch

Your Scratch profile
Your most recent and involved program
A program showing an exported sprite you made.
The Squeak code of your most recent project (see above)

Exam Review

Programming for the console
Programming in Interactive C for robotics
Programming in Scratch
What can you do with programming?

6-13-08

ExportSqueak code

In Scratch, open your most recent project.
Hold the shift key and left click on the Extras button.
Choose "Write Project Summary"
Open a new text document.
Save it as your projectname.txt
Choose paste and your code for the project will appear.
Save the file.
Print the file two pages to a sheet to save paper (some of the more involved programs have a lot of code.

6-12-08

What have you done lately?

As you are working, you should be uploading your work to the Scratch.mit.edu site.
You should have at least a half dozen or more projects on the site.
You should have at least a few sprites uploaded.
Your work on the site should be current and not old.
Go to the page listing your profile.
Print the page with the thumbnails of your projects.
Print out the page showing your most recent project.
Hand it in this period.
This printout should give a basic reflection of the work you have been doing.

6-11-08

Export Sprites

When you are editing a sprite, you can export it.
By exporting it, you can post it to your wiki, or save it as a scratch game.
Other people can use your exported sprite.
You can use your sprite for other programs.

show your work

Post your work on your site
EmbedScratchonYourWiki

Check out the work at the StudentWork Page.

6-9-08

show your work

Post your work on your site
EmbedScratchonYourWiki

Check out the work at the StudentWork Page.

6-6-08

ScratchGame - EmbedScratchonYourWiki

Post your most recent work.
Post your work during the period
here is an example of a simulation using the scratch board:

Scratch Project

http://scratch.mit.edu/projects/connors934/178774

Show the work on the screen.

NewGame

StudentWork

Comments

Play nice
If you have inappropriate comments, flag them.

6-2-08

Exam Maxi block

ScratchGame

Check out the description at the above link.

UseaSpriteSheet

Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.

Game Research
Checking out other games should be for examining their code primarily.

ScratchBoard
Other projects?

5-30-08

Exam Maxi block

ScratchGame

Check out the description at the above link.

UseaSpriteSheet

Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.

Game Research
Checking out other games should be for examining their code primarily.

ScratchBoard
Other projects?

5-27-08

MCAS Maxi/mini block

ScratchGame

Check out the description at the above link.

UseaSpriteSheet

Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.

Game Research
Checking out other games should be for examining their code primarily.

ScratchBoard
Other projects?

5-27-08

MCAS Maxi/mini block

ScratchGame

Check out the description at the above link.

UseaSpriteSheet

Modify some other Sprite
Sprite sheets - http://www.panelmonkey.org/
Search for "Sprite Sheet" add the name of the game after it.

Game Research
Checking out other games should be for examining their code primarily.

ScratchBoard
Other projects?

5-21-08

ScratchGame

Check out the description at the above link.

Checking out other games should be for examining their code primarily.

ScratchBoard
Other projects?

5-20-08

ScratchGame

Check out the description at the above link.

Checking out other games should be for examining their code primarily.

Explain your game

Write a promotional statement about your game.
This statement explains your game to potential users.
It should be two paragraphs long.
The first paragraph explains the story behind your game.
The second paragraph describes to the user how they will control the game.

You should be writing about a game that you created.
Each paragraph should be at least 5 sentences.
Provide a link to your work that you have uploaded to the scratch server.

Hand this in at the end of the period.

Scratch Board
There are a few scratch boards that can be used as a physical interface for scratch.
If you would like to try one, let Mr. Connors know.

5-16/19-08

ScratchGame

See more info at the linked page.

You may check out examples of games on the site, but this should be for development purposes, not for entertainment. You should look at the code and build into your program some of the features in the best of what you see in other programs.

Explain your game

Write a promotional statement about your game.
This statement explains your game to potential users.
It should be two paragraphs long.
The first paragraph explains the story behind your game.
The second paragraph describes to the user how they will control the game.

You should be writing about a game that you created.
Each paragraph should be at least 5 sentences.
Provide a link to your work that you have uploaded to the scratch server.

Hand this in at the end of the period.

5-15-08

Discussion -

  • Followup on QualitiesOfGames
  • Build as many good qualities into your scratch game as possible.

hand back

5-14-08

Discussion -

  • What qualities do you look for in a good video game?
  • What are the qualities of a bad game?
On your wiki, write up your response to the question.
Hand in a printout of your written response.

5-12/13-08

Videogamesprites.net
Scratch Projects
Check out your classmates.
Create a scoring system.
Create a variable and use it for helping calculate the score.
Make sure your work is uploaded to the scratch site.

IntroToScratch

5-9-08

ScratchTutorial
Check the link at ScratchTutorialsSpring08
If yours does not go to that address, make a page with that address
Add a link to your tutorial page on the new page

Scratch Projects
Keep at your project
Check out your classmates work at ScratchUsers
Try out each others' project
Update your project with more features.
If you reach a stopping point with a project, start another.
Tag your work Duxtech to make it easier to find.

5-8-08

ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.

ScratchTutorial
add pictures to your writing of yesterday
Check your writing to make sure it explains the steps properly.
It should be very clear to the user what they should do to follow your process.
Your topic should be simple, but not simplistic.
If it is something that is pretty obvious, you might need to widen the scope.

Scratch Projects
Keep working on your individual projects
Upload your work to the scratch site as you reach milestones. scratch.mit.edu
Check out your classmates' work at the links on this page - ScratchUsers

5-7-08

ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.

ScratchTutorial
add pictures to your writing of yesterday
Check your writing to make sure it explains the steps properly.
It should be very clear to the user what they should do to follow your process.
Your topic should be simple, but not simplistic.
If it is something that is pretty obvious, you might need to widen the scope.

Scratch Projects
Keep working on your individual projects
Upload your work to the scratch site as you reach milestones. scratch.mit.edu
Check out your classmates' work at the links on this page - ScratchUsers

5-6-08

ScratchUsers - Check your link and make sure it works.
Upload your project to the scratch.mit.edu site each period to keep from losing work.

ScratchDiscussionMay08
What are the relationships between Scratch and the other programming systems we have used this year?
What are some of the more interesting things you have done with Scratch this term?
What are some of the more interesting things you have seen done by others?

What is a simple thing that you could explain to someone using scratch for the first time?
StudentWork

5-5-08

ScratchUsers
Upload your project to the scratch.mit.edu site each period to keep from losing work.
Scratch discussion
What is a simple thing that you could explain to someone using scratch for the first time?

5-2-08

Scratch
Upload your work to the scratch site.
tag your work duxtech
you can upload a project after working on it
Other people can download, and modify your project.
Some example programs:
Make a button
glide
talk
key moves
change color

5-1-08

Scratch
Make an account on the scratch site. http://scratch.mit.edu/
Use your first name, last initial and dhs example: drewgdhs
upload your work from last class.
tag your work duxtech and other words which are appropriate and descriptive.
Upload your work as you go.

Make a button
glide
talk
key moves
change color

If you have headphones, you can use them to work with sound on your scratch projects.

4-30-08

Scratch
Make an account on the scratch site. http://scratch.mit.edu/
Use your first name, last initial and dhs example: drewgdhs
upload your work from last class.
tag your work duxtech and other words which are appropriate and descriptive.
Upload your work as you go.

Make a button
glide
talk
key moves
change color

If you have headphones, you can use them to work with sound on your scratch projects.

4-28-08/4-29-08

PostBotballVideos

Project Options
Console programming - devc++
Gamemaker
Programming in Interactive C
Scratch
Scratchboards
GamemakerAndScratch

4-18-08

Demonstration of project
We will host another class to show them the work we have done in programming the lego bricks and other systems.

Put your code up on the display, explain what you did with it.
Show your device, explain how it works.
Answer questions about your code and device.
We may make video of the presentations.

4-17-08

video

During class today and tomorrow we will be making short videos of the robots running the code you have written.

You will be asked a few questions while the device is operating:
Some sample questions:

  • What does your robot do?
  • How does your device respond to its environment?
  • What pieces of the programming language were most useful to learn?
  • If you were to do this project again, how would you approach it differently?

Links to program

Make a page for PostBotball
Upload your code to your wiki
Put a link on the PostBotball page to each of the programs you have made.

Demonstration of your device

Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.

4-16-08

Links to program

Make a page for PostBotball
Upload your code to your wiki
Put a link on the PostBotball page to each of the programs you have made.

Demonstration of your device

Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.

There will be video recording of the running and explaining.

PostBotball

Program your robot or device to:

  • Have output through motors, sound etc.
  • Respond to its environment through switches, sensors and other input
  • Use statements, variables and functions in your program
  • Comment your code with your names and information about what is happening.
  • Declare and use variables.
  • Declare and use functions.
  • main() should have function calls and not much else.
Your focus in this project should be on programming and testing your programs.
Your efforts should include information gathering and curiosity about the programming process.
Share information with your classmates about the things you figure out.
Help each other to get it right.
Your program should not be disruptive to others in the class.
Devices should be as autonomous as possible.
lego drummer

4-15-08

Demonstration of your device

Thursday and Friday of this week.
Run your device so that everybody can see how it works.
You will explain what you did to come to these programming design choices.

There will be video recording of the running and explaining.

PostBotball

Program your robot or device to:

  • Have output through motors, sound etc.
  • Respond to its environment through switches, sensors and other input
  • Use statements, variables and functions in your program
  • Comment your code with your names and information about what is happening.
  • Declare and use variables.
  • Declare and use functions.
  • main() should have function calls and not much else.
Your focus in this project should be on programming and testing your programs.
Your efforts should include information gathering and curiosity about the programming process.
Share information with your classmates about the things you figure out.
Help each other to get it right.
Your program should not be disruptive to others in the class.
Devices should be as autonomous as possible.
lego drummer

4-14-08

PostBotball
Program your robot or device to:

  • Have output through motors, sound etc.
  • Respond to its environment through switches, sensors and other input
  • Use statements, variables and functions in your program
  • Comment your code with your names and information about what is happening.
  • Declare and use variables.
  • Declare and use functions.
  • main() should have function calls and not much else.
Your focus in this project should be on programming and testing your programs.
Your efforts should include information gathering and curiosity about the programming process.
Share information with your classmates about the things you figure out.
Help each other to get it right.
Your program should not be disruptive to others in the class.
Devices should be as autonomous as possible.

Print your code and hand it in today.

We will have a demonstration session at the end of the week. You will show what your bot can do, and explain how you did it in 5 minutes or so.

4-10-08

PostBotball
Program your robot or device to:

  • Have output through motors, sound etc.
  • Respond to its environment through switches, sensors and other input
  • Use statements, variables and functions in your program
  • Comment your code with your names and information about what is happening.
  • Declare and use variables.
  • Declare and use functions.
  • main() should have function calls and not much else.
Your focus in this project should be on programming.
Your efforts should include information gathering and curiosity about the programming process.
Share information with your classmates about the things you figure out.
Help each other to get it right.
Your program should not be disruptive to others in the class.
Devices should be as autonomous as possible.

Print your code and hand it in today.

4-9-08

PostBotball
Program your robot or device to
Have output through motors, sound etc.
respond to its environment through switches, sensors and other input
Use statements, variables and functions in your program
Comment your code with information about what is happening.

4-8-08

PostBotball
The focus of the PostBotball project should be on programming, not construction.
Recap of Botball tournament
photos - link
ReflectiononBotballProject

WATD interview

4-4-08

Period 1

coding for robots
Using functions to handle parts of the code
Add your movement and other actions into separate functions.
Your main() should be relatively short and uncluttered
Use comments to show what your code is doing.
Print your code and hand it in before the end of the period.
If you would like to help out this afternoon, we could use your help. If you are available on Saturday, bring a permission slip home, and come with it filled out on Saturday morning.

Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.

4-3-08

Period 6

Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.

Examples from testing of yesterday afternoon.

Build prep
We need to get as much information as possible to the people who will be going to the competition.
Links, resources, sample code etc.
All parts and supplies need to be neatly stored.
Links to the following will be very helpful:

  • general approaches to working with the xbc and create code
  • using the camera and create libraries
  • using servos and motors
  • using sensors to communicate about the environment
After the competition
We will do a recap of this phase of the project.
We will discuss what directions to go with the project from here.
After April vacation we will transition to another programming project.

Period 1

Botball Announcement
LOOKING FOR ANYONE WHO WOULD LIKE TO PARTICIPATE IN UMASS LOWELL's BOTBALL ROBOTICS TOURNAMENT on SATURDAY. Will look great on your brag sheet. FIinal build is Friday afternoon. We'll be leaving the competition at 6:30 Saturday morning and will get back at 6:30 Saturday night. If you would like to join the team, please see Mrs. Lewis or Mr. Connors for a permission slip.

4-2-08

Period 1

Using functions to handle parts of the code
Add your movement and other actions into separate functions.
Your main() should be relatively short and uncluttered
Use comments to show what your code is doing.
Print your code and hand it in before the end of the period.

Each group/person will have to share the towers.
Put your code on your wiki to make it easier to transfer and back up.

This page has a link to some example programs - http://dhsbotball.pbwiki.com/InteractivecProgramming
This tutorial for the handyboard works for the rcx - http://handyboard.com/software/icmanual/icmain.html
The table of contents is a good pointer to lots of ideas - link here
Here is a list of tutorials - http://dhsbotball.pbwiki.com/InteractiveC

Robotics tournament this weekend
If you can come along on Saturday, take a permission slip.
We will have after school build/programming sessions for the rest of the week.

Period 6

Programming
Make a program that drives to the safe zone and parks
Get this program to work on both the create and the xbc
It will probably take a slightly different code for each.
Add this program to the tournament code
Get the program to run with the lights
Back up the code to the Botball site and a flashdrive.
comments in the code are extremely helpful.

Build
Make sure that all the parts are stored in plastic tubs and organized for the people who are going to the tournament.

Strategy
Speak with the other groups and make a detailed list of everything that will be needed on Saturday.
Print the list and check it to make sure that it includes everything

We need to have people who can commit to going on Saturday.
I will buy lunch for everybody who goes.
After school build/programming/strategy sessions will happen this week.

4-1-08

This page has a link to some example programs - http://dhsbotball.pbwiki.com/InteractivecProgramming
This tutorial for the handyboard works for the rcx - http://handyboard.com/software/icmanual/icmain.html
The table of contents is a good pointer to lots of ideas - link here
Here is a list of tutorials - http://dhsbotball.pbwiki.com/InteractiveC

3-30-08

Competition

3 classes to the competition
We need to start combining the programs of the various functions.
We need to use the competition code that will start and stop when it needs to.
We need to have the robot go out and accomplish tasks as quickly as possible.
We need to have a pack up and go strategy
Supplies, materials, chargers etc. need to be carried to the site.
checklists
CompetitionPrepEmails

Computers

We should be able to program the robot and download onto the newly rebuilt computers.
If the download isn't working, we can set up another computer brought in from home.

New computers.

The computer lab rebuild has been done.
When you log on to the computers, you will agree that you will follow the school's acceptable use policy.

The computers are for educational purposes. They are not toys, and they are not something that you should break. Please pay attention this matter.

Make a folder for your work in the my documents folder.
Don't mess with any other folder than that.

Log off the computers at the end of cla

3-28-08

New computers.

The computer lab rebuild has been done.
When you log on to the computers, you will agree that you will follow the school's acceptable use policy.

The computers are for educational purposes. They are not toys, and they are not something that you should break. Please pay attention this matter.

Make a folder for your work in the my documents folder.
Don't mess with any other folder than that.

Log off the computers at the end of class.

Free robotics competition this weekend in Boston - http://www.bostonfirst.org/

Period 1

Using loops to handle your code.
Music
Using code to operate sophisticated constructions like arms and jaws.
On task and cooperative.

Period 6

CompetitionPrepEmails
4 classes until the competition.
What code and build is achievable in the time we have left?
We need a prep list for the travel day
We need to start integrating the pieces we have developed.

Parts for the board are in, and should go together.

3-27-08

Period 1

this page has some good sample code to modify for your needs: http://www.kipr.org/curriculum/programming.html#DISPLAYS
Loops
If statements
While loops
Use the if statement to increment a beep
Use a while loop to run the motors backwards when the push button is pressed.
You may need to build a bumper to get the button to work off a variety of surfaces.
What can you put in a loop so that the vehicle can respond to its environment?
Can you get the light sensor to work?
If we can get the light sensor to work, we can do a line following robot.

Period 6

build - Make sure you let the programmers at the robot.
There are a few books with designs for mechanisms.

Programming
Start to integrate multiple program components
Travel measured distances
Upload programs to your wiki

Documentation

The third and final deadline for the Botball Online Project Documentation is April 1, 2008. All assignments must be entered by 11:59 PM (local time of your tournament venue). Entries made after 11:59 PM, will not be judged.

3rd Period Assignments:

• Mechanical Design - Upload Pictures or CAD Models of the Evolution of Your Systems Design

• Project Planning - Project Plan

• Simulation, Prototyping, and Testing - Robot Testing for Reliability

• Software Development - Upload Source Code

• Other Documentation

• Botball Lessons Learned

• Upload Robot Glamour Shot

Don't wait - login to the team home base now to check on your team's progress:
3-26-08

Period 1

Extendo MCAS block
this page has some good sample code to modify for your needs: http://www.kipr.org/curriculum/programming.html#DISPLAYS
Loops
If statements
While loops
Use the if statement to increment a beep
Use a while loop to run the motors backwards when the push button is pressed.
You may need to build a bumper to get the button to work off a variety of surfaces.

3-25-08

Updates from groups
Successes you have had, challenges you face.
Last period Erin set up several stations so the xbc can be programmed on more stations.

6 periods before April 5th
How does this affect strategy/build/programming?
We need to get some of the documentation going.
We will need to develop a competition day plan.
We need to develop a checklist to make sure we bring everything to Lowell.
Who will be able to go to the competition April 5th?

A few Lego bricks are available for testing code. You will need a tower, some motors and pushbutton switches.

3-24-08

Period 1

Comment your name into the code and the date you wrote it.
Have your program move your bot:

  1. forward for two feet
  2. backward for two feet
  3. turn left
  4. turn right
  5. beep when it is done.
Comment your code to indicate what it is doing.

Add another section to the same code:

  1. turn in a complete 360 degree circle
  2. make a different beep
  3. turn in the opposite direction 360 degrees
  4. Adjust the size of the circle with the code
Comment your code to indicate what it is doing.

Hand this code in.

Bump switches:
Add a feature to the program that uses the bump switch to cause it to switch between turning and going forward/backward or circle.

Period 6

Updates from groups
Successes you have had, challenges you face.
Last period Erin set up several stations so the xbc can be programmed on more stations.

7 periods before April 5th
How does this affect strategy/build/programming?
We need to get some of the documentation going.
We will need to develop a competition day plan.
We need to develop a checklist to make sure we bring everything to Lowell.
Who will be able to go to the competition April 5th?

3-19-08

Focus on programming
The build should be based on being able to see what the program is doing.
Help each other with the code.

Timing - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC75

Here is a section of documentation on output - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC62

This is about tones and beeps - http://www.newtonlabs.com/ic/dist/ic-monolithic.html#TOC76

Sensors, what can we do with them?

Each group should have their own program(s) that they are developing.
Print your code this period and hand it in.
Make sure your code has your name(s) commented into the top of the code.
Post your code on your wiki so others can see it.
http://dhsbotball.pbwiki.com/InteractiveC

In class competiton. What can we do that demonstrates your ability to code and build?
A simple pushing contest would not be enough, there would need to be some logic in the program that favors a carefully programmed bot over a heavily built one.

3-19-08

Roomba Control
XBC programming - How can we get the board to show up on the computer?
There is a botball folder in the my documents folder of all the computers.
Lego towers and bricks are available for programming purposes.
The mdf for the board will be in next week, probably monday or tuesday.
Lighting materials are available.
Two areas that will need some attention are the Computer Aided Design and documentation.

Everybody should be on task

3-18-08

Period 1

forward backward pause
touch sensors

Batteries are available
Towers are available

Period 6

Use the team Homebase part of the site for information

Board setup

roomba control

xbc control


3-17-08

Period 1

Program your bots for motors first, then add sensors and get them to respond to the sensors.
Make the bot turn in a circle.
Can you make it turn in a figure 8?
Line Follower
This page has lots of resource links - http://dhsbotball.pbwiki.com/InteractiveC

Period 6

Three classes this week.

Code
Can you get good control of the roomba?
Can you get feedback from the camera?
Program for both the xbc and the roomba.
The teams only part of the botball.org site has lots of information.

Board
Can you place all the parts on the board in the correct location?
Where will the lights be?
Take a look at the board specs, if there is not much more to do with it today, check with Mr. Connors for what to work on.

Build
Join up with strategy to build for solving the problems we need to solve.
We need a basic platform that will carry the xbc.
Nothing complicated, just something to carry the controller and camera

Rules
Write up your basic understanding of the rules on your wiki.
Have a few sections: Robot, board, people, code
When you have these written, join up with build and programming to

Strategy
Write up your most thought out strategies.
Share them with the group
You will need to join forces with the build and programming groups to help them design to the strategies.

3-14-08

Period 1

Build a structure that can hold two motors and the lego rcx.
If it is too complicated to make into a vehicle, you can make something that uses the motors to move something else.

Think simple.
Your build process should take less than half of the period.
Make incremental success.
Do not spend a huge amount of time building something complicated that may not work well.

Focus on the programming.
Once you get it to work with a simple program, add a bit of complexity.
Use the touch sensors. Have the motors change their behavior based on the touch sensor input.
Make the display activate, make the beep activate, make the motors run forward and backward. Use the programming resources available online.

This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC

3-13-08

Period 6

Discussion of progress last period
What have you found out?
What did you accomplish?
What do you need to work on next?
What do you need for supplies/materials?

Code
What do you need to learn about the code to do simple tasks?

Build
What can be used on the robot?

Rules
What are the rules for the robot?
What are the rules for the board?
What are the rules for the people?

Board
What do we need to do to the board?

Strategy
What are two or three approaches to getting points?

this should help you get the program downloaded to the brick - http://dhscpp.pbwiki.com/DownloadingToRcx
This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC


3-12-08

Period 1

Work in pairs to build and program a simple robot with legos and Interactive C:
Each person will be getting a daily grade based upon effort and participation.

Work towards a success. Don't get hung up on problems, move forward. Use documentation to help you figure it out. Work together on the problem. Communicate your needs politely.

Focus on programming:
What do you need to learn about the code to do simple tasks?
Some of the functions you may want to use:
fd(); runs the motor specified with a number forward. bk(1); runs motor 1 forward
bk(); runs the motor specified with a number backward. bk(1); runs motor 1 backward
sleep(); holds the previous command for a number of seconds. Takes a float as an argument. 2.0 is 2 seconds.
printf(); prints to the screen. 5 charactars max, likes numbers.

this should help you get the program downloaded to the brick - http://dhscpp.pbwiki.com/DownloadingToRcx
This has a lot of links to resources - http://dhsbotball.pbwiki.com/InteractiveC

Focus on build:
What is the simplest robot you can make out of legos to test your program?
You can
You should start with two motors, can add a third.
You can add sensors There are plenty of touch sensors available. Light sensors and others are also available when you get the hang of the touch sensors.

Period 6

Write up some answers to these questions.
We will discuss them.

Code
What do you need to learn about the code to do simple tasks?

Build
What can be used on the robot?

Rules
What are the rules for the robot?
What are the rules for the board?
What are the rules for the people?

Board
What do we need to do to the board?

Strategy
What are two or three approaches to getting points?

http://dhscpp.pbwiki.com/DownloadingToRcx




3-12-08

This is a forum for working with Interactive C
http://www.kipr.org/boards/viewforum.php?f=2
DownloadingToRcx

This has some projects around working with the RCX
http://www.kipr.org/curriculum/touch.html

3-11-08

http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html
Programming with Interactive C
Botball
Programming the lego bricks.
Programming devices with C
BU design competition

3-10-08

BotBall
Set up some groups to tackle the problem.
20 students is a good sized group to solve this problem.
Table
Strategies
Rules
Getting at the programming techniques
The lego bricks will run the same program as the roomba.
What do you need for information/resources?

The rebuilding of the lab has begun.
Make sure your work is uploaded to your wiki.
At some point this week, the lab work should be done.
If you don't know how to upload your work, please ask.

3-7-08

BotBall
Video
OverviewofProject
Lego vs. xbc/roomba Create
grading system: Daily grades, project participation, products that move the project forward
This is a large project, which will require everybody to work, program and participate as a team of individuals.
April 5th - Umass Lowell - Robotics competition with teams from around the Northeast.

3-6-08

ScienceFairNeedsJudges
DesignSquad
http://www.mauratighe.com/ds/CastingCall.html

Array Chart
Add user interaction to the code demonstrated last class.
Put your .exe for the program on your site
We should be able to view everybody's on the big screen.

Interactive C
Programming lego bricks
http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html

DesignSquad
http://www.mauratighe.com/ds/CastingCall.html

3-4/5-08

For loops
null statement for loop
making columns with a nested for loop
Make sure your work is backed up.

BotBall - getting started with Interactive C - http://www.kipr.org/curriculum/programming.html
http://www.kipr.org/curriculum/touch.html

3-3-08

LastChanceGas
if then else loop
random number generator - http://www.daniweb.com/forums/thread1769.html
make a NumberGuess.cpp program
Back up your files to your wiki every class.
The lab should be rebuilt this week.

2-28/29-08

Miles per gallon and AverageRainfall
Make sure you see that you put in some values to have it return a floating point number. This is one of the main changes we made with this program. It can handle a non integer figure, which we didn't do with the calculator.

Didn't get AverageRainfall done?
Do it for homework and bring it next class.
Use your wiki to hold the code.

LastChanceGas

Interactive C and BotBall
Using RCX lego bricks.

2-27-08
Finish up Miles per gallon program
Side Projects:
You should be exploring c++ problems on your home computer. Show me the code and get some credit for it.

AverageRainfall

2-26-08

Test for anybody who missed it before vacation.
Computers in this room will be reformatted soon.
Make sure you keep your work backed up to your wiki. StudentCourseWiki
The date of the lab work will be announced soon.
Don't mess with anybody else's work on your computer.
Variables notes

Interactive C is on more of the computers.
We can use IC to program for lego bricks, and the BotBall robot.

MPG
Write a program that calculates miles per gallon of a car. Name the program MPG.cpp. Have the user input the number of miles and number of gallons used. The miles should be an int and the gallons and mpg should be a double. Have the user identify the car by a letter, stored as a char. Comment your name, the file name and date at the top of the code and comment in the results into the bottom of the code.
Here is an example of a car's gas use log http://farm3.static.flickr.com/2325/2016919961_32e83699a5_b.jpg

Use a While loop to have the user choose when to terminate.

2-25-08
Test for anybody who missed it before vacation
Set up Interactive C on the computers
Set up Scratch Board on the computers
Scratch
Don't mess with anybody else's files
Set up a wiki to store your work - StudentCourseWiki
Back up your work on your wiki

2-15-08

Test on intro to c++

Get any work done that you need to complete
Scratch

Turn the computers and monitors off at the end of class.

2-14-08

Test on intro to c++

TemperatureConverter
review of strategies
complete the code
If you are done with the code, make another which will convert imperial to metric such as pounds to kilograms, gallons to liters, etc.

test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console

You might find these helpful
Variables notes
Intro notes

Robotics team
We will be making the battle arena after school this week in room 136

2-12-08

TemperatureConverter
create a program that will convert fahrenheit to celcius.
Have the user choose which they want to start with and give a temperature
Return the converted value.

test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console

You might find these helpful
Variables notes
Intro notes

Robotics team
We will be making the battle arena after school this week in room 136

2-11-08

Make sure you hand in your calcdisplay.cpp code.
Save your calcdisplay.cpp file as calcfunctions.cpp
Move all the action causing code out of main into their own functions.
create a function for operatorchoice()
create a function for numberinput()
Main should have only variable initializations and function calls
Change the variable that handles division to a float.
float d; this will make it so your division can have a decimal point and digits after it.
Try changing the color of the display ConsoleColor
Try using EscapeSequences
Try a do while loop to give the user control of whether they repeat the process.

test on the material covered so far on the last class of this week.
you should be able to: write a hello world program in pen or pencil
identify statements
initalize variables
identify functions
comment lines
comment sections
write the code to print to the console
write the code to receive from the console

You might find these helpful
Variables notes
Intro notes

Robotics team
We will be making the battle arena after school this week in room 136

2-7-08
Debug calcdisplay.cpp
Set up wiki for archiving your work
irobot create robot - programmed in interactive c

2-6-08
Open yesterday's code, save your operatorswitch.cpp as calcdisplay.cpp
Use ASCII codes to make a visual for the calculator
Have the display called in it's own function called display()
Call the equation and result from the display() function.
The equation and result should show up on the display of the calculator.
Comment your results into the bottom of the code.

Winter sports over?
Robotics team Thursday afternoon.
dhsbotball.pbwiki.com
botball.org

2-5-08
Demo of Switch.
Using a Switch statement to allow the user to make decisions
Save your Operators.cpp file as operatorsswitch.cpp (don't rename the file, keep the original)
Add the switch to your calculator so the user can choose which operator to use.
Modify the output so it helps the user understand what is going on.

2-4-08
Handback of numberinput intitials and helloworld
Modifying the numberinput.cpp code
Make a copy of your numberinput.cpp file, name it operators.cpp
make several functions that will take the user's numbers and do things with them.
make and call these functions from main:
add()
subtract()
multiply()
divide()
modulus()
Use the working add() function, and modify it so it works to do the new operations.
Initialize new variables for each of the new operations.
Alter the output of main so that it tells the user what is going on.
Give the results to the user.
When you use divide and modulus, you will encounter an error if the user enters 0 for the second number. Instruct the user not to use 0 for the second number.

Interactive C
Menu Selection

1-31-08
Handback of initials and helloworld
Debugging the initials code
Make the code work, fix any errors, hand it in

Variables notes
Intro notes

Programming activity:
Write a program called numberinupt.cpp to demonstrate a simple input. Your program will have one function, main() will ask the user for a two number input, then call add to add the numbers. It will return the numbers. Main will show what the numbers were set to and exit. Comment your name, the file name and date into the top of the code.

Course Selection

Technology and Engineering

701 Principles of Technology
Half Year
710 Standards Based Technology and Engineering
Full Year, counts as one of your three science requirements
707 Building and Repairing Computers
Half Year
716 Robotics
Half Year

Computer Science

201 Introduction to Programming with C++
204 Introduction to Programming with Java
206 Website Design

1-30-08
Getting the DevC++ program running
Opening your files
Setting the file up with line numbers
Debugging the Hello.cpp file
Finding the c++ wiki
Comments - line comments and section comments

Make a program that displays your initials
It should be named initials.cpp
Your initials should be 10 lines tall
Comment your name into the top of the code.
Comment a copy of your results into the code

If you finish early, take a look at the Botball.org site

Homework:
Set up Bloodshed DevC++ on your home computer
You will need to make a screen shot of your computer running the program by friday



1-28-08
Welcome to C++!
First class
Intro to course
Intro to subject

Course expectations
On task
In class assignments
Homework
Side Projects

Robotics team
After school
Programmed in C
Roomba and Gameboy robot

C++ IDE
Integrated Development Environment
DevC++ - Bloodshed Software - http://www.bloodshed.net/index.html
Download from Source Forge - Download link

install instructions - http://csjava.occ.cccd.edu/~gilberts/devcpp5/

HelloWorld


Page Information

  • 2 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts