Saturday, May 29, 2021
CPX light box
This is a relatively pure integration of digital technology with art. The Circuit Playground Express (CPX) provides backlighting for drawings done on tracing paper.
Materials: Shoe box, light card, CPX, tracing paper
I'm a poor artist so I googled "easy to draw pics" and picked some from this site. I used a 6B pencil.
Here are a couple of videos which show how it works:
Sunday, May 16, 2021
CPX fabric friend
When I made Leah Buechley's Lilypad interactive stuffed monster I said then that I would also make another version using the Circuit Playground Express (CPX).
This time I'm using the pins more than the sensors so I'll show that diagram:
Rob Morrill has included this project in his course and called it Fabric Friend, so I took those instructions as my guide.
This is the first time I've used adafruit's Flora RGB smart neopixels and a LiPoly battery so there was significant new learning in this project for me.
First step was planning the design. I wasn't original here and used a similar design to my previous stuffed monster. It's important to plan it on paper so that all the connections are in the correct place:
Then you can transpose the paper plan onto the felt fabric. This shows where the CPX (larger circle) and two Flora neopixels eyes (smaller circles) will go:
Rob has some excellent diagrams in his tutorial showing how to connect up the CPX to the Flora neopixels.
The tutorial recommends to write the code and test the circuit using alligator clips before sewing, so I did that:
Here is the test code:
Sew the CPX to the fabric using normal thread:
I then stuck the neopixel "eyes" to the felt. You have to use the correct glue otherwise they will fall off at the wrong time! A glue that works well is Reno Art Tacky Glue.
Now I'm ready to sew the connections with conductive thread:
Follow the conductive thread sewing tips in the tutorial:- the looping technique to make a knot at the start and finish
- sew three times around the eyelets on the CPX and neopixels
- apply clear nail polish on the knots at the end to stop them unravelling
The next pictures show the fabric friend after sewing with metal thread, front and back views:
Next I have to sew the front and back together, stuff it with filling and find a good place for the battery:
THE CODEI've copied Rob's Magic Eight Ball code ideas here, with only minor alterations. Ask the Fabric Friend a questions with a Yes / No answer, then shake it. It uses a random function to come up with one of three possible responses: Yes, No or Confused. I've taken it to class and played the game with students and they like it a lot.
Here is the almost finished FF waiting to be shaken. I've tucked the tiny LiPoly battery inside: LIPOLY BATTERIESThe LiPoly battery I've bought from Core Electronics (3.7v, 120mAh) from is small enough to tuck into the Fabric Friend itself. Their advantage is superior energy density. I read up on the safety precautions about these batteries. The main danger is in charging, do not use a charger greater than the battery voltage (3.7v). If you do they can explode. Read the safety precautions and the full pdf at the adafruit site, li-ion-and-lipoly-batteries, about these batteries,
Sunday, May 02, 2021
CPX light bot
Rob provides an amazon address for a continuous servos and wheels kit. I did buy that one but have since found similar materials available through adafruit (continous rotation servos, matching wheels). I'm mentioning this since, as far as I know, adafruit treats its workers far better than amazon does.
The tutorial says "Create a reinforced bottom for the front of the robot" but doesn't stress that this could be done to increase the surface area for attaching the servos by cutting notches that match the ones on the chassis. Doing that would strengthen the wheel attachments.
I bought heavy duty velcro from Bunnings (holds 3 kg) for attaching the CPX and battery to the car.
Coding issues
Rob claims that the CPX Slide Switch acts like a forever loop when moved left (always checking). I didn't find this to be true so I abandoned use of the Slide Switch and used a forever block instead.
The car in the tutorial has an awning. The plan is that when it approaches a wall the shade produces less light and this is used to trigger a reverse and turn. I found this too fiddly because light varies within a room and different times of the day. So, instead I reversed the approach and coded so the car goes forward in "normal" light and then shine a torch on the sensor when it approaches an obstacle to put it into reverse.
Here is my modified code, with some comments attached:
And here is a short video of the light bot in action:
Monday, April 26, 2021
Scratch course new upgrade
This is the third upgrade of a Scratch introductory course and a substantial one at that.
In my previous upgrade I developed some good projects but I gave too much of the code to the students. The problem with that of course is that copying for quite a few students doesn't produce learning. So, this time around I'm providing lots of clues and expecting them to work out how to put the blocks together. Of course, I'll do demonstrations for those who want more clues. I'm hoping this will encourage more trial and error and will end up with more diversity in their project solutions.
I'm keeping the core idea that Scratch multimedia coding is for telling stories in an interesting and entertaining way.
I'm insisting on more collaboration than in the past. For a couple of these projects a requirement is that students choose a partner.
I only teach these Year 7 students for 2 x 55 min periods for 9 weeks so it's not possible to cover all of the many great features of Scratch in that time. For those who work more quickly I do have extension projects planned, either letter magic, my music or make a game
Below I just show the tasks set for the students, not the preparatory clues. Send me a message if you want the full worksheets, I'm happy to share
So, the stories are:
1) Weird animals
Make your animals look and behave weirdly. Do at least two different weird animals.
eg. a cat that thinks it is a dog and barks. It also has it body parts rearranged.
But don’t copy that, use your own imagination and creativity!
2) Animate and Communicate
Choose a partner for this one
Think of a simple story. You will need to choose two sprites. The first sprite moves in some way and talks. The second sprite waits until the first sprite has finished and then responds by moving and talking.
a) Write an outline of your story using words and pics on paper and show the teacher. You will receive more credit if your story is interesting and entertaining!
b) Now develop the story as a Scratch program
3) Glide and Draw with the Pen
a) Get the graph paper with a Cartesian grid from the teacher and draw your initials on the paper
b) Use that as a guide to draw your initials on the Scratch page
4) Teleport
A character teleports from one place to another. On arrival in the new place something surprising happens. Work with your partner to develop this story Make it entertaining.
5) Sensing
Make a sprite do something strange by moving the mouse
At certain mouse positions the sprite talks to the user about what is happening. This varies in different positions.
Include a two colour gradient background
Previous:scratch course upgrade
introductory scratch projects with a story theme
Friday, April 23, 2021
some plants of Alice Springs (Mparntwe)
Buffel grass (invasive species, which is everywhere)
Woolly oat grass
Dead finish with its unforgiving rigid and thorny leaves providing protection against water loss and predators
Origin of the name: Either, when this one dies then everything else is finished, or, in a drought the desperate rabbits try to eat its leaves and die in the branchces!
Silver witchetty, the witchetty grubs (yum) feed on the sap inside the roots
Close up of a witchetty showing flowers, seed pod and leaves
Dog wood, identified through the "Central Australian Flora" brochure
Mulga, can survive in the harshest conditions (in 2019 Alice Springs had its lowest rainfall on record, 67.6 mm). The hardwood is useful for fencing and as a fuel for campfires.
Not identified
Sunday, April 18, 2021
the wider walls
In commmemoration of the 50th anniversary of "Twenty Things to do with a Computer" by Seymour Papert and Cynthia Solomon
THE WIDER WALLS
“the room was humming harder
as the ceiling flew away”
- Whiter Shade of Pale by Procol Harem (1967)
Seymour was very good at finding a great pithy expression to describe a learning event. For example, he described the turtle as “an object to think with”. Another such expression is “wide walls”, to express a diversity of doing, but I’m less certain about who coined that one.
I wasn’t aware that the concept of wide walls (as distinct from the expression) was there from the start. I thought there was a transition as the baton passed from Seymour to Mitch Resnick. Not only did the turtle become a cat but, in my mind, the philosophy also changed from “low floor, high ceiling” (Seymour) to “low floor, wide walls” (Mitch).
Being a long way away, in Australia, perhaps I missed some nuance. Maybe someone closer to MIT can fill me in. In reading “Twenty Things ...” I can see the wide walls were there from the beginning: floor turtle, screen turtle, turtle graphics, game making, movies, music, robots, light displays, poetry, physics, curiosity about self, even making fun of Computer Aided Instruction.
Nevertheless, we owe a lot to the Scratch team for continuing to lower the floor (block coding), opening the windows (remix and a web site where it is so easy to share) as well as wider walls (easy to code multimedia and extensions to music, the micro:bit, Makey Makey and others). The user interface, with its colour coding of blocks into categories has always been brilliant.
What attracted me to computers in the first place was Seymour’s book “Mindstorms” with its intention of making maths more accessible to those who struggle with textbook maths or maths in general. Start by drawing a square using your body. Build further from that simple starting point by changing the angles, changing the number of repeats and introduce variables. This approach was both more interesting and could bring maths to more students.
Tinkering: Seymour was also there early on in a collaborative article with Sherry Turkle, “Epistemological Pluralism”. Ostensibly, this was directed at the needs of girls but in reality, it was about those who tinker or the bricoleurs. It’s better to initially allow sloppy code (spaghetti) and for design to iterate through stages. If a teacher insists on getting it perfect from the start then that is a sure way to kill motivation in many students. If only the standards based curriculum designers, remote from the classroom, who separate the what from the how, understood that. This was pointed out by Mitch Resnick in a recent exchange with Mark Guzdial in the comments at Mark’s blog. There are those who understand how the wider walls can work and those who, through not understanding, put up barriers to them working.
In my research, I came across a thesis by Jennifer Cross where she designed a course called Arts & Bots. Taking this cue, I wrote a submission for a new course in my current school and called it Artbotics. Rather than robotics, we can have Artbotics, with the Hummingbird Bit. Let us create a provocative, tangible sculpture and then add robotic actuation and sensing. This reframing of robotics makes a difference. The artbotics word hit a nerve since there is an ongoing desire for school administrations to introduce more creative middle schooling curricula. I see Artbotics as another expression of wider walls, integrating different subjects in the curriculum into a whole which students find more meaningful.
As Seymour pointed out, the computer has a protean nature and can be used as a multimedia hard fun machine. It is also true that the division of Knowledge into different subject domains, although useful in some ways, has always created artificial distinctions too. Maths can be Arty. Art can be Mathy.
Look up Wassily Kandinsky for more like thisIn Central Australia, where I live, there is a famous indigenous art movement called Papunya Tula. One of its core motifs is dotted circles. I had a go at simulating parts of that work using SNAP and the local gallery in Alice Springs agreed it was worthwhile. I invite you to see the simulations at my blog, with a link to the SNAP program where you can do your own.
By making art a real part of the plan we soften the traditionally hard cultures of the STEM subjects and broaden the appeal of the whole mix. It has to be real and it can be real because digital by its nature does embrace everything. A program such as Scratch is multimedia with built in icons, backgrounds, sounds, music, speech with all of them editable. The coding is there too, of course, and the purpose of the coding is to bring the multimedia to life.
As well as art, storytelling needs to be in there too. I managed to rewrite all my introductory Scratch projects as short stories rather than lessons in technique, eg weird animals where the dog meows and the cat barks. This serves as a good model for later when I ask students to create their own stories.
One of the best expressions of the wider walls concept is a 2005 article by Mitch Resnick and Brian Silverman about how to evaluate construction kits. We need those design principles now with all the new construction kits (and this also applies to the new microcontrollers and new software) that have come on stream.
A key principle here is that a little bit (of programming) goes a long way. By using the KISS principle, new users will make a fast start and the possibility is there to transition rapidly to projects they really want to do, not just can do.
When it comes to learning principles the value of tinkering and iteration (iterate, iterate, iterate …) as well as curriculum integration also fit under the rubric of wider walls.
You can see the same KISS principle designed into Turtle Art (by Brian Silverman, Paula Bonta and Artemis Papert). Its variety of coding blocks is restricted yet you can make beautiful art readily. See some beautiful Turtle Art here
Here's a sample from my article How to create a great background in Turtle Art:What I’ve really been looking for is a pithy expression to describe the ongoing evolution of the creative use of computers in education. In reading “Invent to Learn” (thanks to Gary and Sylvia) I was struck by the three game changers assertion, the game changers being coding, physical computing and fab labs. Could there be a pithy expression to describe these?
Possibly “wide walls”, although a good try, lacks a bit of oomph, requires too much explanation and can only be stretched so far. Can we set the world on fire with wider walls? Perhaps. As my students explore more I do feel the room humming harder ... but I am still not satisfied that it is an adequate descriptor.
Jay Silver takes this a step further when he situates his invention, Makey Makey, within a larger context. He designs tools which enable a sensual re-experiencing, a re-seeing, of the everyday world. With Makey Makey you can make an orchestra which is played by pieces of fruit, rather than a keyboard. Digital meets the banana. It began with Seymour’s insight that the turtle could be “an object to think with” and has now further developed, in Jay Silver’s words, into conceiving the whole “world as a construction kit”.
The world as construction kit has a very long history. Indigenous Australians used to live off the land and made all their tools, as well as their food and medicine, directly from nature. When they looked at the natural environment they saw a construction kit.
The part of this argument that I like is that our perception is a variable: we can design new tools, like Makey Makey, which changes the way we perceive the computer / keyboard. Insofar as modern consumerism can kill off self reliant productivity this new way of perceiving is a good thing.
Wouldn’t it be desirable for many more of us to become more maker orientated, particularly if the developments in modern technology lower the entry barriers? From STEM to STEAM then moves on to STEAM for the 99%.
STEAM for the 99% means bringing all of the subjects to a broader audience. This may be achieved through diverse cross curricular subjects which go under names like Artbotics, Digital Wearables, Culturally Situated Design Tools and Unruly Splats.
When the computer is used as a dynamic (programmable) multimedia fun machine it becomes the best tool available for wholesale curriculum integration. In other words it’s time to merge the computer into the world with all its junk. If that isn’t wider walls, then what is it?
REFERENCECross, Jennifer. Creative Robotic Systems for Talent-Based Learning (2017)
Culturally Situated Design Tools
Makey Makey
Papert, Seymour. Mindstorms: Children, Computers and Powerful Ideas (1980)
Papert, Seymour and Solomon, Cynthia. Twenty Things to do with a Computer (1971)
Resnick, Mitchel and Silverman, Brian. Some Reflections on Designing Construction Kits for Kids (2005)
Scratch
Silver, Jay LENS x BLOCK: World as Construction Kit (2014)
SNAP
Stager, Gary and Martinez, Sylvia. Invent to Learn (2nd Edition, 2019)
“The goal of a first CS course should be to promote confidence … ”
(see comments 2, 3, 11, 13, 14, 15 and 16 for discussion between Mitch Resnick and Mark Guzdial)
Turkle, Sherry and Papert, Seymour. Epistemological Pluralism and the Revaluation of the Concrete (1991)
Unruly Splats
Thursday, April 15, 2021
CPX gondola
I didn't have to make any modifications to this one but here are a couple of notes about the materials.
I used velcro to stick the CPX to the cardboard. Better if you can find a "Heavy Duty" velcro, holds 3 kg, which I found at Bunnings.
The shelf, supported by gusset braces, for the battery is important so the gondola hangs perpendicular. Wrap a piece of masking tape all the way around the battery for extra support.
See the video for my gondola in action!
Monday, April 12, 2021
CPX bike helmet prototype
Here are a few notes about the materials since it saves a lot of time if you get them right at the start.
I had to find a piece of cardboard as long as the circumference of my head (56 cm).
I like duct tape because it really does stick and also used it to repair the cardboard which was damaged in a couple of places.
The battery holder I used (AAA) had an on/off switch and a belt clip. The belt clip made it easy to attach the battery to the cardboard
I kept the “right” and “left” variable declaration and “on start” code the same as Rob’s but altered the tilt right and tilt left functions since they required tilting the head at an extreme angle before they kicked in. My altered code is:
This means that as soon as the head stops tilting the indicator lights change back to solid pale blue.
I’m looking forward to some of my students making this helmet prototype. The reaction when I have shown them has been extremely positive. I receive lots of requests from students who want to wear the helmet.
Sunday, January 31, 2021
digital smashes the banana
Jay Silver and Eric Rosenbaum on the origins of Makey Makey
I downloaded Jay Silver’s PhD thesis, Lens x Block, a while back and took some notes. When I came to the bit about “world as construction kit”, I thought, at last, a modern rationale for the Maker Movement. This feeling has persisted, that Jay explains it deeply, whilst others who are great practitioners haven’t found the right words. They use more mundane rationales, such as “we are all makers”.
I won’t try to summarise all my notes to Jay’s PhD here but was reminded of them when I read the Forward to the book by Colleen and Aaron Graves about the Makey Makey.
It took me a while to buy my own Makey Makey because initially I thought it could be just a gimmick without much real depth. But once you realise that the concept is for the digital to smash the banana then that all changes.
I’ll just extract a few words, from the above mentioned Forward, from Jay Silver and Eric Rosenbaum, the inventors of Makey Makey below to illustrate.
We were super obsessed with the everyday world, skin to skin contact, and touching things in nature ...
Scratch has this powerful flexibility and open endedness. We also wanted that kind of flexibility for physical stuff and how to hook things up in a super flexible way ...
Computation is the greatest practical power but it is tied up in coding. And coding has barriers to access no matter how simple you make it ...
We thought a lot about making things tinkerable. One way to do that is to make them really immediate, so you could try something and see its effects right away…. So the idea of the keyboard hack and making a device that thinks it’s a keyboard partly came from that...
In Lifelong Kindergarten (LLK) we’re obsessed with creating the building blocks and fingerpaints for people of all ages...
The reason we were in LLK was because we want to live in a world created by everybody. That can only be possible if you create tools that help people create the world and those tools are very easy to use.
I think this video presents the best rationale for the modern maker movement that I’ve seen Hack a banana, make a keyboard (NY 2013)
"what kind of tools can we give adults who know too much ..."“Let us smash computers with everyday objects…”
“the world as construction kit”
Reference:
Graves, Colleen and Aaron. 20 Makey Makey Projects for the Evil Genius (2017), Foreward.
Lens x Block: World as Construction Kit (Jay Silver’s PhD Thesis)
Wednesday, January 27, 2021
making an arduino lilypad monster
I heard about Leah Buechley’s program to make electronics and coding more available to girls and women through linking it to fabric design. So I bought a copy of her Lilypad kit through Sparkfun and her tutorial book, Sew Electric.
This one slowed me right down because I had to learn to sew and learn the Arduino interface C language, both of which I’ve avoided in the past.
During the Christmas holidays I jumped to the third tutorial, an interactive stuffed monster. A trip to Mad Harry’s to buy felt, stuffing and a few other goodies and I was good to go.
First step was design. Initially I designed my monster with 2 eyes but changed that to one when I realised there was only one LED in the kit.
The tutorial explained how to setup the circuits and how to get started on the sewing. I’m sewing with metal conductive thread. Doing the loop to obtain a knot was new to me. Also, I read a tip in another tutorial to put clear nail polish on the finished knots to prevent them fraying, so that’s important as well.
This picture shows the LED connected by conductive thread to the Lilypad Arduino SimpleSnapThen I went to the Arduino site and copied the code to make the LED blink. Success!
Next step was to attach the speaker, more sewing and then code to make the monster sing! It worked!
For a minute I thought I was nearly finished. But the next section was to attach some Aluminium paws to the monster. So, I had to order some Heat n Bond online and wait for that to arrive. Then with the Heat n Bond I added 4 little aluminium paws to my monster!
Then I sewed more metal thread so the paws became a part of the circuit too. Then back to the Arduino site to do more coding, so that when you hold the paws the monster sings; when you let go the monster blinks.
Just about finished now. Sewed up the monster and added some stuffing. Then I made an eye, mouth and teeth and stuck them on.
Back view Front viewThe LilyPad system was designed by Leah Buechley while pursuing her Ph.D. in computer science at the University of Colorado Boulder. The commercial version of the kit, which launched in 2007, was collaboratively designed by Leah and SparkFun Electronics
The Lilypad was pioneering in its time but is a bit dated now. Next time I’ll make something using the CPX and Flora RGB neopixels from adafruit.
Reference:Sew Electric: A Collection of DIY Projects the combine Fabric, Electronics and Programming by Leah Buechley and Kanjun Qiu (2013)
Arduino create web editor
Spark fun Lilypad
Footnote: How the code works. The analogRead values of the circuit are roughly 1024 by default. When we hold the aluminium foil hands of our monster, this drops the analogRead values below 990. The Serial.println(sensorValue) part of the code was used to obtain these values through the serial port. We write an ifelse statement, so that, by default, the LED in the eye blinks but when we hold the monster's hands the song plays and the eye stops blinking, temporarily. This part of the code is shown below:
void loop() {
sensorValue = analogRead(aluminiumFoil);
Serial.println(sensorValue); //send sensorValue to computer
delay(100);
// touching the aluminium foil drops the analogRead value below 990
if (sensorValue < 990)
{
song(2000);
}
else
{
blinkPattern();
}
}
Saturday, January 23, 2021
building the Circuit Playground Express inch worm
This shows the potential to build simple cardboard robots with the Circuit Playground Express. It's a good place to start to illustrate the making side of the CPX.
The instructions here are comprehensive.
Materials: Cardboard 35x11 cm, Velcro, Duct tape, Scissors, Box cutter, Googly eyes, Paper clip (small)
Electronics: Circuit Playground Express; Battery pack, 3 xAAA with on/off switch; Micro servo; Alligator clips to male jumpers
When constructing the inch worm I had a few minor issues with the online instructions. I'll record them here:
To make sure I had the servo arm in the correct starting position I jumped ahead and wrote the code that moved the servo. Then set it up on the cardboard strip and ran the code to make sure it was moving as shown in the online video.
You need a small paper clip to connect the servo arm to the cardboard. The larger one I had was too thick to go through the holes on the servo arm.
I didn't have any strong adhesive dots, as recommended in the online materials, so for the servo and the battery I used duct tape. But use velcro for the CPX for ease of removing if you need to edit your code.
I did follow instructions for adding teeth and toes to the feet. It needs grip to move. But in the end my inch worm hardly moved on felt. But it did walk well on my work tray and I provided a downward slope, too, for the video shot.
Coding: The final code includes a clap (and finger click worked too) start, which is great.
Here are a couple of short videos showing my inch worm moving, with a finger click start. There is a deliberate 2 second delay while the lights flash before it moves off

















































