2017 in review

I was going to write a Facebook post or a brief tweet about all of the things I’ve been up to this year, but then I realised that professionally, 2017 has been one of the most exciting and varied years of my life – so much has happened that, looking back, I can’t believe it’s my life. Two years ago I was a respectable, happy primary school teacher and now, in the space of one year, I’ve been to Argentina, Brazil, Texas and Orlando for work as well as NYC for holiday and various parts of the UK and Brussels for an award nomination! What a rollercoaster.

TL;DR : I’ve had an AMAZING year

January

By January, I finally felt settled into my role at pi-top, I’d begun working on some pi-top events for a couple of charities BECSlink and IntoUniversity and having lots of fun with the ever-growing staff. I managed to squeeze in visiting the London Python Dojo at Sohonet where I finally met Drew Buddie IRL and the two of us chatted to all the attendees about the teaching of coding as well as getting a better understanding of how a Python Dojo works.

I attended BETT for the first time as an exhibitor, which was kind of exciting – I got to meet so many people IRL and, because everyone knew where to find me, I probably met more people than I would’ve had I just been visiting the show. I was expecting to be exhausted by the end of the week and, although I was pretty tired by Saturday, I was also still super-excited to see so many lovely people in attendance and I can’t wait for this year. I also attended the BETT awards with pi-top where we won the ‘start-up of the year award’ – I was really pleased with this as I had been involved in writing the application and so it was great fun getting all dressed-up with the company founders and getting up on stage to accept the award. pi-top are shortlisted for another two awards this year so fingers crossed we get to win again!!

ANT_9206.jpg

February

February saw my first Coding Evening of 2017 – we’ve managed to host one per half term since I started running them in 2014 and I’m still having lots of fun and meeting new people each time!

At pi-top, February also saw the first Champions weekend – I got to take most of the lovely people that I’d selected to be pi-topCHAMPIONS to Bletchley Park and the National Museum of Computing for a two-day bonding and training session. Not only did we get great feedback, we also had an amazing time. It proved to be a great weekend all around and I was reminded once again how lucky I am to have so many wonderful people in my life.

On a personal note, February saw me taking up running properly for the first time in my life – I’ve just checked and have managed to clock up just shy of 300km this year which is pretty impressive for someone who has always hated running!

16425775_10158096740215024_2809211062775560534_n

March

March began with the pi-birthday, what a fabulous event that was – from unicorn face paints, to pi-brewed beers, it was great fun. I managed a talk and panel at the event in spite of a nightmare cold and got to meet a host of wonderful people – from the young up and coming coders in the pi-youth community to some wonderful adults organising events and supporting children around the world (I’m looking at you Mr Provenzano). It was also great fun catching up with the Pimoroni pirates and long-time community members like Alex Eames again and we managed to squeeze in a giant meal at a local restaurant after one of the nights.March

March also saw another Coding Evening and I also got to visit one of the schools in the group I used to work for as a teacher to deliver a workshop as part of their STEM day. As part of my work for Crossover Solutions, I visited a school in Amesbury to run a Physical Computing workshop and had lots of fun!

April

I’m really lucky that I know so many wonderful people in the Raspberry Pi community and so I was really pleased to be invited to help out at PiWars 2017 in Cambridge – I was invited to help judge the event and so I headed up for a weekend of fun. I have to admit that PiWars was a HUGE highlight for me in 2017 – I always burble about how great the Raspberry pi community is, but this is the event that really shows this off. Lots of fans coming together to compete, but with no malice or anger, just lots of support and fun. Even the people who did badly left smiling and so I’m really exciting this year to have bullied some of my colleagues at pi-top to help me enter a team! I can’t wait to see how we get along!

April also saw me attending a lovely little event in Malvern called ATI and running pi-top workshops in schools in Eastbourne. Albert Hickey and I also managed to squeeze in a third Wimbledon Raspberry Jam which was a hugely successful event including talks by students, teachers and community members as well as workshops run by young people and involving LOTS of glitter.

I also started some work for Crossover Solutions teaching for half a day every other week in a local school in Wandsworth which has been great for keeping my finger on the pulse of CS teaching!

No surprises that it was another busy month.

May

In May, I built my Pimoroni Mood Lamp and really honed my soldering skills- turns out, I’m quite good at soldering!

May.jpg

I met with Alasdair Davies and Francisco Coutinho Gouveia at London Zoo so we could talk about the amazing coding and conservation activities they’re getting up to on the island of Principe – in the last few weeks, Alasdair has been receiving footage from the turtles that are currently ‘wearing’ Raspberry Pi cameras and it’s hypnotic stuff.

May saw me visit Cornwall again to do some work for the National STEM Centre as a roving Scratch roadshow as well as visiting Bank of America to help them run an amazing pi-top workshop for children of their staff!

June

June was a whirlwind month – I managed to fit in performing in an amateur performance of Blithe Spirit as Edith the maid, a Coding Evening at the Library Pot in Richmond AND a trip to San Antonio, Texas for ISTE (the US equivalent of BETT).

July

I’m still not sure how I survived July – I was meant to be going to Brazil for two weeks to run some coding workshops for teachers, but somehow, before I knew it, I was booked to spend the week before in Argentina for pi-top!! I got to attend the first Code Club festival in Horsham but had to leave at lunch time so I could head back to Heathrow for my flights to Buenos Aires.

July

I can’t get over how much of an amazing three weeks I had in South America and I’m very excited about heading back to São Paulo in two weeks for some more training with Maple Bear!

IMG_2067

I spent my birthday in Brazil so it was a great relief to finally come home and relax a bit in August.

August

On the first of August, pi-top moved offices from a very ‘start-up’ office in Bethnal Green, to a much more professional looking office in Old Street – it was a very exciting move for all of us and has been great fun! The only problem with the new office is that it’s much too close to too many lovely eating places!

At the beginning of August, Stuart, Kirk and I managed to build my Google AIY (or ‘Boxy’ as Kirk renamed it), which was great fun!

IMG_2129

On a personal note, in August, we managed to sneak away for a few days with my nieces (aged 7 and 4 at the time) and had a little escape to the country visiting both Longleat and Stourhead House and I directed a rehearsed reading of a play, which I’m now going to be directing in April in Kew!

At the end of August, I decided to see if any of my pi-top colleagues fancied playing a few board games after work and thus ‘board games nights’ were launched at pi-top with a games night occurring every couple of weeks (and occasionally twice in one week). I have to admit to being really pleased with how this has worked out as there seems to be at least 6 people each time and occasionally as many as 12 and, while there are a few ‘core’ gamers, the attendance has been quite varied, allowing a greater variety of people to hang out and spend time together – great team building!

September

Having missed the first pi-top social in July as I was in Brazil, I was pretty excited to organise a second one – karaoke night in the local pub… unfortunately, I’m not sure my colleagues would appreciate me sharing details of the event on social media, but let’s just say that it was a FABULOUS night and I hadn’t realised that I worked with such an amazingly ‘talented’ bunch of people 🙂

I’d love to pretend that September was a peaceful month, but with everything building up for October, there was nothing quiet about it – between a Code Club event at Monzo, beginning our PiWars project, organising a Coding Evening and attending the ArtsRichmond Swan Awards for drama and musicals, it was another crazy, but exciting month.

Also in September, I had an article published in issue three of Hello World magazine – thanks to my earlier meeting with Francisco, I had developed an interest in teaching coding to pupils who don’t speak English as their first language so, while I was in Brazil, I wrote a piece for the magazine and was really excited to see it published.

I finally put all of my running practice to the test in September by running my first 10km in Kew Gardens, finishing in just over one hour and 8 minutes.

October

At the beginning of October, I finally took a real holiday and Stuart and I headed off to NYC for a week – we got back just in time for pi-top to launch the new pi-top with Inventor’s Kit, which had kept me busy for most of September. It was an amazing achievement to have been involved in such a great product and I really feel proud to have been part of the team.

This month also saw me being featured in the MagPi magazine on their community profile – thank you for writing lovely things about me Alex, it was a real honour.

October also saw me ‘popping’ over to Orlando for a few days to attend an event called Project Lead the Way, but, more importantly, to spend some time with John Sperry, my US counterpart along with pi-top‘s new education guru, Graham Brown-Martin.

When I landed back in the UK, I had to immediately jump in my car and drive to Cardiff as I’d been invited by the RPF to help out at Picademy as part of PyconUK. PyconUK was a really wonderful event this year and I’d like to thank everyone who was so supportive of my talk about mental health – this was a bold new step for me and I really hope I get the opportunity to talk more about it in 2018.

Also at Pycon, I was presented with a John Pinner award for service to the Python community which was overwhelming and amazing and I was so honoured to be one of the first recipients (along with quite a few familiar faces including both Tim Golden and Josh Lowe!)

I got to catch up with some many amazing people at Pycon – you read my write up here.

November

I thought that November had brought an end to my travels, so it was surprising to learn that I’d been shortlisted for an Ada Award for European Digital Woman of the year, meaning I had to go to Brussels for an overnight stay. Although I didn’t win, it was an incredible honour to be shortlisted and to spend some time with some wonderful people, especially Danny and Helena, as well as one of my favourites, Iseult and her wonderful daughter Aoibheann – what a fab couple of days!

November saw another Coding Evening and a trip to the V3 Tech Awards, which pi-top were shortlisted for as well as a visit to Merton Council to talk about ways to support the local community and youth clubs with pi-top.

December

December has been a wonderful month with Christmas parties, event planning and meetings about some exciting stuff next year. Thankfully there were no trips abroad, just to visit family in Cornwall and Lincoln and I’ve finally been able to relax a little bit.

Next year is already looking exciting with trips to Brazil, Dubai and Chicago already in the diary – I’m directing a play with auditions in 10 days and a house-move may even be on the cards later in the year (fingers crossed – five years in a one bedroom flat is my limit when the pair of us have so much stuff).

I’m really looking forward to attending BETT with pi-top as we have some great things planned and I’m confident that 2018 is going to be another amazing year. I still can’t get over how much my life has changed in the last 18 months.

 

Advertisements

A busy few months

I know you guys love hearing about what I’m up to so here are a few fantastic events that I’ll be appearing it either running workshops or giving talks – it’d be great if you could come along and join in the fun!

Firstly, this weekend I’m taking the pi-top Champions to The National Museum of Computing and Bletchley Park museum for a weekend of training and fun – the most exciting thing about it is that on Sunday 19th the Champions will be running workshops in the National Museum of Computing, showing off exactly why we chose them – I’m so excited about this weekend and hope some of you can join and bring your kids along to what will be an incredible day of opportunities. Let us know you’re coming by signing up here!

tnmoc-logo_3

I’m really excited about the Champions day as I feel like we’re bringing together some of the best of the best when it comes to running workshops, training and all things Raspberry Pi – we’ve picked an amazing team of people for our Champions and I can’t wait to share further details with you all!

I’m looking forward to joining Nic Hughes at the London CAS conference on Saturday 25th February. Nic and I are working together with him leading a Crumble workshop and me leading a Physical Computing Raspberry Pi workshop. It’s always good fun working with Nic and we’re looking forward to inspiring some teachers to innovate their computer science classrooms.

Raspberry Pi is celebrating it’s 5th year at the Junction in Cambridge on 4th and 5th of March and I’ll be there both days and doing a talk on the importance of teaching children to code on Saturday 4th at 1.30. The birthday party is always a great fun community event and tickets can be bought here.

Throughout March and April, I’m running workshops through pi-top for a number of great charitable groups such as STEMSussex, BECSLink and London CLC which will be great fun and I’m hoping to be able to do something for International Women’s Day on 8th March.

</edit> I forgot to mention my own event – Coding Evening for Teachers, in Twickenham on Friday 24th March – tickets are here.</edit>

At the end of March, I’m VERY excited to be attending three incredible events – first up, the NAACE conference in Leicester (28th-29th March), where I’m running not one, but TWO break out sessions – one for pi-top and one talking about the amazing Active Lit as a tool for writing text adventures. Looking at the speaker list, I have a feeling this is going to be a very exciting event and it seems that the people at NAACE are really determined to make it a very successful couple of days.

Next up is PiWars in Cambridge – I’ve always been a big fan of Mike Horne and Tim Richardson, especially their really helpful CamJam EduKits for teaching physical computing with Raspberry Pi so I was incredibly honoured to be asked by them to be a judge at PiWars, an event so popular it’s had to extend to cover two days instead of just one! The blurb for the event describes it as:

logo-v2-rgb-sm

Pi Wars is a challenge-based robotics competition in which Raspberry Pi-controlled robots are created by teams and then compete in various non-destructive challenges to earn points. There are prizes awarded at the end of the day. Last year, we had teams from schools, families and groups of hobbyists and 30 of these teams competed for a full day of robot fun and games! Pi Wars takes place in Cambridge, UK and is open to anyone from around the world. It is run by the same team that organises the Cambridge Raspberry Jam.

How much fun does that sound? There are still spectator tickets available if you want to bring your children or even your class up to inspire them to create their own robots and one of the two days is dedicated entirely to schools and youth groups!

Following on the heels of PiWars is ATI 2017 in Malvern. Primarily an Apple event, this year ATI has extended to include some more general computer science skills, particularly Raspberry Pi and the lovely Joe Moretti asked me to suggest some workshops. I feel like a bit of an interloper seeing my name surrounded by some of the big names in Apple Education, but I’m really excited about offering some Physical computing and Minecraft hacking information for some teachers, most of whom will be completely new to Raspberry Pi and then entire Pi ecosystem. ATI looks like n exciting event and I know that the other presenters are all incredibly inspiring so I’m really glad to be part of the team – there are still tickets available and it’s worth going along just to meet people like Joe, Mark Anderson, Catherine Jessey and Jon Neale, all of whom I’ve seen present before and know are incredibly inspiring!

c4n_svmwaaa5kgf-jpg_large
Photo credit – Mark Anderson @ICTEvangelist/ATI event page

You’d think that’d be enough events, but no… in May, I’ve been invited by the STEM Centre in York to run a ‘Scratch Roadshow‘ taking sessions to Truro, Bristol, Swindon and Reading. This will be an intro to Scratch for primary school teachers who want to build their confidence a little – the best thing about it is that there is a bursary which makes the training completely free so it’s well worth letting your local primary school know if you think they could do with a boost!

Anyway, there are more events later in the year, but that will do for now! I hope you can come along to some of these events and please do come over and say hi – I love meeting you all ‘IRL’. And remember – if you can’t come to any of these events but are still interested in the type of training I can do, please drop me an email cat@crossover.solutions – I offer workshops and CPD training bespoke to your school or group’s needs!

 

Shakey Sense Hat Cat

[edit] As of June 2017, there is a version of Scratch 2.0 on Raspbian which makes this worksheet obsolete [/edit]

After Sunday’s coding session, I set the boys the task of making our Scratch Sense Hat Cat Shake, just like Carrie Anne’s Interactive Pixel Pet.

The first thing the boys did was to figure out how to use some of the sensors on the SenseHat – remember how in my other post, I said it was good practice to run the basic broadcast command before you do anything.

screen-shot-2017-02-12-at-19-33-46

We had found some code from Albert’s GitHub page, however, when we tried to select the sensor value for accelerometer, we only had a few choices as shown below.

screen-shot-2017-02-14-at-12-40-30

screen-shot-2017-02-14-at-12-35-53

Luckily, after trying a few things, I suggested that we hit the green flag to check that the GPIO pins were on and that Scratch knew we had a SenseHat attached. When we next checked the sensing options a while heap of new options appeared, including the accelerometer (sorry, I forgot to screenshot it).

The boys had great fun playing with the sensors, but couldn’t quite figure out how to get the ‘shake’ function working so they went back to the original code for Interactive Pixel Pet.

x, y, z = sense.get_accelerometer_raw().values()

while x<2 and y<2 and z<2:      
    x, y, z = sense.get_accelerometer_raw().values()

This is what they come up with:

screen-shot-2017-02-14-at-12-49-01

A job well done, if I do say so!

Now, I’m sure some of you have spotted that I could neaten up my code by removing the ‘ledbackground’ line and that ‘clearleds’ would be better suited to the end of the repeat loop as that would leave me with a completely blank neopixel array at the end of the animation sequence, but otherwise I’m pleased with our work in recreating the pixel pet for Scratch.

I look forward to trying out some of the other sensors using Scratch in the future!

 

Sense Hat Cat using Scratch

[edit] As of June 2017, there is a version of Scratch 2.0 on Raspbian which makes this worksheet obsolete [/edit]

So, I absolutely LOVE the Interactive Pixel Pet activity from the Raspberry Pi website, and while I was playing with the Sense Hat the other day, I realised it was possible to imitate it using Scratch. So far I’ve only got it running as an animation, so next step is to get the shake function working as we’ve just figured out how easy it is to use the other sensors on the hat using Scratch.

I had a play and managed to get a very cool dancing cat on my LED matrix – I’m not going to lie, I was super excited and may have run around showing everyone in a slightly excited manner. Fortunately, my colleagues were also excited, although their contributions of dancing ‘poo emojis’ weren’t quite what I had in mind.

screen-shot-2017-02-12-at-19-33-04

Here’s a bit of background on the Sense Hat… for those of you who don’t already know, the Sense Hat was created by the Raspberry Pi Foundation and launched as Astro Pi – a competition to get your pupils’ code into space. It has an 8×8 neopixel array, a mini joystick and a load of amazing sensors like humidity, pressure, gyroscope and accelerometer.

So, the first thing you always need to remember when using Scratch GPIO is that you have to turn on the GPIO server on and, if you’re using a hat, you’ll need to let it know which hat it is by using the command “set AddOn to”.

screen-shot-2017-02-12-at-19-33-46

This is pretty important for anything using the SenseHat and it’s good practice to run it before you go any further in your code as by running it, Scratch will realise you have access to all of the sensors on the hat and allow you to access them through the drop down menu in the blue ‘sensor value’ block.

Firstly you will need to delete the Scratch Cat so that you can draw you own sprite.

screen-shot-2017-02-12-at-19-34-06

In the paint editor, you need to zoom right in as far as you can and select the smallest brush size.

screen-shot-2017-02-12-at-19-34-36

You have four squares in total to draw your image – I’ve shown this here by making the area black (you don’t need to do this, but it can help as ‘black’ represents the neopixel being turned off).

screen-shot-2017-02-12-at-19-35-16

Now you can draw your image – you have exactly 64 pixels to draw with and, as you may have guessed, one pixel on the screen represents one neopixel on the sense hat. By the way, a neopixel is a very bright LED which can be any colour depending on the mix of red green and blue. The lighter your colour, the brighter it will appear on your neopixels so try to avoid dark browns and blues etc.

screen-shot-2017-02-12-at-19-35-42

Next you need to create a second image – you need to use the duplicate command to create a second version of your image.

screen-shot-2017-02-12-at-19-36-05

Then click on the costumes tab to be able to edit it a little bit so that you can make your second sprite slightly different, thus giving the appearance of animation.

screen-shot-2017-02-12-at-20-04-20

Finally, you need some simple Scratch code to get your image moving – I’ve put a couple of broadcast commands in here to clear the SenseHat before you start and to make sure that the background is black (so turned off).

screen-shot-2017-02-12-at-19-36-38

You can experiment if you want by changing the background colour, although this will only make a difference if your sprite is ‘backgroundless’ (but you have to make sure it’s still only 8 pixels/2 squares wide).

screen-shot-2017-02-12-at-20-11-12

I’ve had great fun recreating this project in Scratch and I’ve set Stuart and Kirk on a mission to figure out the ‘shake’ control too so hopefully I can add an update soon.

<edit> Kirk and Stuart have successfully managed to get shake working and are now celebrating with chocolate cake

img_0908

</edit>

Part two of this project can be found here.

All thanks to Albert Hickey for his advice with this project – he is a Scratch and SenseHat guru!!

Watch this space for some more projects using Scratch soon!

CAS Conference 2016 – workshop links

I will do a proper write up soon, but for those who were in my workshop, here is a downloadable version of the two worksheets, plus a link to the prezi and links to the resources that I showed you!
Scratch workshop – Python

Scratch workshop – pi-top

Prezi – Scratch-ing the Surface of GPIO

pi-top

Pi-Stop (traffic lights)

Pimoroni Flotilla

CamJam EduKit 1 (plus free worksheets)

CamJam EduKit 3 (robotics kit – plus free worksheets)

Astro-Pi Sense Hat Kit (as sent to the ISS)

I think that was all of the things that I shared with you, but please let me know if there was anything else you wanted further information about!

Cat

Crumble Bot by Redfern Electronics

A few months ago, I donated ‘an afternoon of robot building’ to a charity auction and so this weekend I headed out to fulfil my promise.

Last month I tried out the CamJam Edukit, which I absolutely loved, but quickly realised wasn’t necessarily the right tool for using with 9 and 11 year olds so, on the recommendation of the wonderful Nic Hughes, I bought a Crumble Bot from Redfern Electronics.

cbb_image_04-600x600

The robot is based around the crumble controller, which is a simple programmable board with simple inputs and outputs.

Basic-Connections-595x275.png

Photo credit redfernelectronics.co.uk

The kit comes with an easy to follow booklet which shows very clearly how to build the robot.

Screen Shot 2016-05-15 at 08.38.52.png

We started off by fitting the Crumble to the base unit – it required a bit of force to push the controller into the base, but with the help of big brother Rupert, Annabelle was able to push it into place.

IMG_9145.JPG

The boys handled screwing bolts through the motors and it was only after they’d screwed both pieces in that we realised that they had fitted them to the motor the wrong way around! As you can see from the diagram, it’s quite important that you put the screws in the right way around, otherwise you can’t attach the wheels later!!

Screen Shot 2016-05-15 at 08.38.58.pngAlerted to the boys desire to do everything backwards, we kept a careful eye and had to check carefully to ensure that Alexi had put the screw through the base the right way around.

Screen Shot 2016-05-15 at 08.41.20.png

Luckily, we caught it before any further mistakes were made.

The children worked really hard and built their robot in around forty five minutes – we were really impressed with how easy to follow the directions were and how quickly we had a working robot.

Our next job was to work out the Crumble interface. Redfern have created a ‘Scratch-like’ interface to make programming the bot easy and we were really pleased when, after a few seconds, we had a robot moving across the floor.

Screen Shot 2016-05-14 at 21.49.24.png

We’d had some great conversations so far about circuits and the need to ground the motors, we discussed how the controller is used to control the robot and now we were ready to get the robot to draw some shapes on the floor. Once we added a loop in, we discovered there were only two ways to stop the programme running. Either we unclipped a crocodile clip from the battery pack, which wasn’t easy unless we’d removed the slippery protection from the clip and risked a short circuit, or we pushed the stop button on the computer interface, but this only worked while the bot was plugged into the computer. Perhaps a future step for us would be to put in a button which ‘stopped’ the code as it was quite a pain to stop it running otherwise (saying that, it was pretty funny watching Sia dive across the floor and grabbing the robot while frantically pulling out crocodile clips).

Screen Shot 2016-05-15 at 08.51.06.pngThe children worked hard to figure out how to make a square on the floor and had great fun making the bot dance, but there was one more piece of kit in the box. We had one neo pixel ‘Sparkle‘. With no instructions for getting the Sparkle working, we searched the internet to find some instructions. Our vain hope that we’d be able to just drag a ‘set sparkle’ block didn’t work out.

Screen Shot 2016-05-15 at 08.55.14.pngWe tried setting it up in various different ways and, from looking at some diagrams in blog posts, we realised that the arrows on the Sparkle were misleading and didn’t actually tell us where to clip the crocodile clips, but were to let users know how to set up the Sparkles in series.

Screen Shot 2016-05-15 at 09.05.54

I would’ve liked there to be clearer information about how to clip in the the Sparkle and how to programme it as it took us a long time to figure out – the information is there, but it wasn’t as easy for us to find as I would’ve liked.

We eventually found some code which included the block ‘let ‘t’ = 0′ and so we tried dropping a block in the beginning of our code and this seemed to do the trick, so now our robot both drew a square and had a red sparkley light. Screen Shot 2016-05-14 at 21.48.30IMG_9150

I’ve now been told by Redfern that we shouldn’t have needed the variable block to get the sparkle working so who knows what we were doing wrong!

One other issue we struggled with was that the Sparkle tended to flicker between colours for no apparent reason – to be honest, the children actually quite liked this; it wasn’t intentional and is perhaps a hardware fault that could be improved on, but nothing to worry about.

I admit to a moment of indulgence at this point – I wanted to see if I could make the Sparkle phase through different colours and so I tried the following code:

Screen Shot 2016-05-14 at 21.48.01.pngI was pretty pleased when the bot went through blues, pinks and reds as it drew its square and I’d love to have time to further develop this code!

Anyway, we had a super afternoon building our Crumble Bot – the children were pleased with their robot and had just as much fun coming up with code for it as they did building it in the first place. I would thoroughly recommend this for primary school teachers as the robot could easily be dismantled and rebuilt and it was great fun to do – it really emphasised the importance of physical computing to make coding relevent and fun. The Scratch-like interface for programming the robot was mostly intuitive and easy to use (although the sparkle code needs work) and the children quickly managed to achieve their goals with very little input from me. I’ve seen some wonderful projects where teachers have used this robot as a base, but have built and designed their own chassis as a DT project. It is a great way to get started with robot building in the primary school and then, once the children are more confident they can move on to more challenging projects such as the CamJam kit.

I’m really excited to see this robot in the classroom so I hope you give it a go!

Thank you to the parents of the children involved for allowing me to use photos of their children in this post.

CamJam EduKit 3 – part 2

First of all I’d like to thank you all for the positive responses to my first blog about the CamJam EduKit 3 – loads of you commented, retweeted and even offered some really helpful advice. Yesterday, Louise came around and we embarked on phase two of the robot build.

On Wednesday I hosted a Coding Evening in Twickenham and quite a few attendees brought along their robots. Richard Hayler brought his CamJam robot which was controlled by a bluetooth keyboard – what impressed me most is that Richard had written his code and then set up the pi so that it automatically started running on boot up. I was also very impressed with the Crumble Bot kit that Nic Hughes brought along, controlled by an interface based on Scratch so very easy to use – I’d be interested in trying one out for myself as it looked like a great introduction to robot building for children.

The first thing I wanted to do was to make my code run on start up, so I quickly checked the code I’d written last weekend to make the bot move forward, turn left and right and backwards. I’d been sent a blog post from Raspberry Pi Spy, as I’d been warned by Alex Eames from RasPi.Tv that auto booting on Jessie could be a little complicated. I was rather proud of myself for figuring out that because my python file was in a folder called EduKitRobotics, I needed to include that in the code I was typing in, meaning that instead of the website of example of /home/pi/myscript.py, I needed to use /home/pi/EduKitRobotics/4-driving.py, however, what I failed to do was to use capital letters for any of the commands in square brackets in the config file. I also made one massive mistake in the terminal code that I was typing in meaning that nothing worked.

IMG_8477IMG_8478

You can imagine the fear when I saw the words ‘dead’ in the instructions, but luckily it was Alex to the rescue as he spotted that I’d made a typo in the ‘ExecStart’ command – my python filename was missed off – I’d obviously been in such a hurry to get it typed that instead of typing:

/EduKitRobotics/4-driving.py

I’d just written

EduKitRobotics.py

A simple, but silly error, which caused my code to fail. The next attempt to run everything, with the capital letters all in place and the correct file information typed up, we were ready to test whether our code launched on start up.Screen Shot 2016-03-27 at 17.59.37.png

We were quite excited when, after quite a wait, our robot set off wobbling across the carpet, as seen here, however, we couldn’t help but notice that the wheels were starting to come off the side of the box. Fortunately, it was Stuart to the rescue as he found a piece of wood, cut it to size and stuck it to the bottom to support the motors!

My next task was to attempt the code for following a line – at this point, I decided it was safest to just use the 4-driving.py saved code for all of my future work to save having to redo my boot up code, so I carefully copied and pasted the original code into a new file and began work on the next bit of Python.

I should probably point out that I got a fair bit of stick last week from both Stuart and Louise for the awkward position I was sat in to type my code and so this week I borrowed a monitor so that I could be a bit more comfortable. I also decided that to input my code I’d use my Pi 3 because it had enough USB slots to have a mouse and keyboard attached, and then I could simply pull out the memory card and put it in the A+ when we wanted to use it in the robot. This also meant that our cables could be permanently attached to the pi, without worrying about maneuvering them to attach the pi to a monitor (yes I still need to figure out how to VNC into the pi). IMG_9929So, with the line following code ready to go, we put our robot back onto the floor, plugged in the trusty Anker power supply and set it off. We were hugely disappointed when nothing happened, until I realised that the diagram for wiring the line sensor showed the sensor facing up, whereas we had installed it facing down and therefore the cables were the wrong way around!

With a slight fear that we’d damaged the sensors by having it back to front, we switched the cables and ran the code again – this time it worked, but we had a slight issue with the robot going backwards and so I had to go and tweak a tiny bit of code to get it sorted and then we were able to watch excitedly as our robot wiggled it’s way along a line. We did have one further problem, the bit of wood we’d added to help support the wheels had made our robot a little heavier and that meant it couldn’t manage to move on the big, fluffy carpet in the living room so we had to relocate to the tiled kitchen, with its black, granite tiles. Not an ideal location for testing for black lines, but as long as we kept the robot on bits of paper, it worked ok!

Our final bit of Python was the code to get the front sensors working so that our robot could detect distance. Using a bit of careful cutting and pasting from the previous code I had typed up, I was able to get the robot moving fairly quickly – you can see it bouncing around the kitchen here. I should note at this point that it took quite a long time from plugging in the battery to the code actually starting to run and we were often close to giving up when it started to run. I’d estimate it was between 30-60 seconds from battery in to code running, which can be a long time when you’re worried that it doesn’t work!

The next step of our build involved Louise spending a lot of time with spray paint and an entire tube of super glue to decorate the robot!

One slight issue with all the decoration is that it made the robot quite heavy, as you can see here, but it was so funny that we didn’t really mind!

Perhaps jealous of our achievement, Stuart got out his remote controlled car, and then started looking suspiciously at the sensors and muttering that he could attach them to the car and automate it… we decided it was safest to hide our robot from his tinkering hands, but watch this space to see if he does end up using a CamJam Kit with his car.

So, as you can see, we had a fantastic couple of days building our robots – considering neither of us is particularly techy, we were pleased with our achievements both in terms of the building and the coding. I still don’t think this is a class activity, but definitely one to do with a small group of enthusiastc children as it was so much fun.