Sunday, 15 April 2018

Coventry and Warks Jam '19


Jam '19 was at Coventry Central Library with one session using an improved version of 'Big Red Button' Scratch resource(link) and session two was the first outing for the 'Micro:bit Minecraft PixelCakes'  resource(link). I'll upload the master folder with the other files needed.


Secondly many thanks to Anthony Orme and Kari Lawler for their much help.

Below you can see a few photo's I managed to take in between running around.

Next Jams are......

The next two Jams will be Nuneaton(tba) and Leamington(tba) at some point over the next 3 months.


The next Minecraft coding session available is 'Experiments with Minecraft' in collaboration with Coventry FabLab (link). The first session has filled up quickly so we will be offering a second session to try and give people chance to get a ticket. 


 












Cya.

Experiments with GPIOTriggers / switches)



Using gpio triggers / switches 3 demos.

All of these three demos use GPIO PIN 3 as a trigger.

Demo 1 / Scalable housing

This code will allow you to use gpio PIN 3 and GND with two male to female jumper cables attached as a switch / or trigger for an event in Minecraft. This example triggers an question to ask you how many houses you would like in a row/ street. After typing this in you it then renders the "street" in your Minecraft world. Which needs to be open before you execute the code or else it will give an error.


What you will need:
  • Two female to male jumper cables
  • Raspberry Pi
  • Minecraft Pi installed the code from below
You can see below an example street of 7 houses:


Code

You can download the code from here




Demo 3: Storm Trooper and Rainbow Walls

This is 32block x 32 block grid animation. Coding wise its not as efficient as demo 2 but creates some nice effects. You can see what it does by clicking on the link to the video below.

You can see the event working here:

link


Code

link




Demo 2: Pixel Cakes

This is a simplified version of the RPI pixelcakes activity which works with Micro:bit. You can see what it does by clicking on the link to the video below.

You can see the event working here:

link

Code

link




Enjoy,


Chris

Tuesday, 3 April 2018

BitIO blog 14: Scalable housing

Scalable Housing


This blog is based on the original house an article from issue 68 of the Magpi Magazine which you can buy here , or download for free from here.

The article is on page 54.  It was written by a chap called Steve Martin who you can access on Twitter here . Without digging too deep it seems as though he helps run/ attends the Cotswold Jam. This is an excellent tutorial in how to get started with Python and Minecraft. I have slightly modified and extended the code to work with the Micro:bit. This version creates a 3-4 storey version which creates 2 sides of a "road". It is buggy as the right handside faces the wrong way. You click on 'b' button to set how many houses are in the road and then 'a' button to execute the printing of the rows of houses.

As usual this Micro:bit code uses the excellent bitIO library created by David Whale see more here.  Here is an example of what my extended version does:


5 houses...
Each printing session creates two rows, notice the glitch with the doors being on opposite sides.

You can download the extended version of the code here.

Enjoy,

Chris Penn