Skip to main content

Free Computing Resource: Junkbots and Scratch 1

The Junkbots project has been running for a number of years as an initiative to bring sustainability, computing and engineering together by building bots out of junk  details of the project can be found at.  https://junkbots.blogspot.com/.  Junkbot is an extension of the Research into teaching problem-solving going on at the University of Northampton please feel to visit https://computingnorthampton.blogspot.com/2019/01/problem-solving-research-outputs-and.html for more details.


One of the criticism of the robot programming part of the Junkbots project is not everyone necessarily gets a go at the programming. To address this a new feature has been added to the project, using Scratch to play with the ideas. This is the first of a set exercises to play with these ideas. The cleaning robot shown is loosely based on the LEGO Mindstorms RCX.


The commands all in the My Blocks section




Exercise 1: Moving the Robot Cleaner around.:






Now go to https://scratch.mit.edu/projects/384342734 and rewrite the code so the robot moves in a square.

Exercise 2 


Now go to https://scratch.mit.edu/projects/384347284 run the code (or try it below) and see what it does. Now alter the code in the RCX sprite to get the robot to push the purple drinks can across the line.








Please share and post comments on either the comments blog or on the scratch projects. It would be great to see how you do with this.

All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruon

Comments

Popular posts from this blog

Activity: Writing a translation program in Scratch

Scratch 3 the gift that keeps on giving; including the new extensions are Text to Speech and Translate; Text to speech - does as the name suggests, turns typed in phrases into speech via Amazon Web Services. Translate using Google (and I assume Google Translate?) to translate text between different languages. As an experiment, I wanted to play with clapping my hands, have Scratch the Cat ask me to enter a phrase and then convert that into French, German and Spanish with different voices. The resulting code is shown below. It is all started by a loud noise like a hand clap. The two extensions have been added to the blocks and are ready to go. The voice is initially set to Alto and the text-speech block has had the phrase "Please enter a phrase" typed in and says this. The ask block has the same question permanently set and the answer produced gets feed into the translations.  The remaining blocks do essentially the same thing - change the voice; - take the phrase ty...

10 most view post on the problem-solving blog - April 2020

Building an artificial neuron in Scratch Build yourself a Crumble Eggbot from junk Full details at http://bit.ly/2yZ3dZT There was three inspirations for this project ·Eggbot - http://www.instructables.com/id/Plastic-Egg-Bot/?utm_content=buffer9b065&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer  ·Femi Owolade supported by Nic Hughes ran a session at Mozilla Festival 2016 using the Crumble’s to make a wheeled robot. ·The junkbot project https://junkbots.blogspot.co.uk/  Kit ·Kinder Egg (without the Chocolate and toy) · Crumble   also available at  https://redfernelectronics.co.uk/crumble/  · 4x Crocodile clips and leads  · Battery pack  and 3xAA · Vibrating motor  ·Tape (lots of) Free Computing Resource: Junkbots and Scratch 1 The Junkbots project has been running for a number of years as an initiative to bring sustainability, computing and engineering together by building bots out o...

One of the best blogs of 2010

The blog Confessions of a mediocre programmer  by Alan Norton is one of the most interesting blogs I read in 2010. Including a great definition of a Mediocre Programmer: " Mediocre programmer  - A programmer who has a limited toolset. He knows the syntax of only the simplest commands, but he knows where to find the syntax for more complex commands. He doesn’t know how to write the most efficient code, but he knows how to rewrite and test the code for greater efficiency if he must. He runs into more roadblocks along his passage to success, but he views each as a challenge and is confident that he will find a path around each roadblock. He may take longer to get there, but he always reaches his goal. He doesn’t know how to create a DLL, but he knows he can if necessary. Like most programmers, he doesn’t particularly like documenting his work but does so anyway because he is a professional. " Alan Norton (2010) A definition which in their heart of hearts a lot of success...