NEWS$show=/search/label/news

Here's where you'll find all the latest news about technology for children. We love to follow cool new inventions on Kickstarter and we hunt out all the latest announcements about tech toys and gadgets for the coming Christmas holidays. You'll also get our take on children's technology stories in the media.

REVIEWS$show=/search/label/review

Our kids technology product reviews are intended to help you work out whether a toy, gadget or kit is a good fit for your child or family. There's lots of cool stuff available, but is it the right choice for the child or teenager that you are buying for? We'll help you make the right choices and get the best value for money.

GIFT GUIDES$show=/search/label/gift%20guide

Parents, grandparents, aunts, uncles, and friends assemble. We create gift lists to help you make good choices for kids technology which helps them develop the right skills for the future. We research the best in Coding Toys and Games, Making / Craft Tools and Kits, STEM/STEAM related gifts, Programmable Robots, Electronics Kits and Gadgets for Tech Age Kids and Teens.

PROJECTS$show=/search/label/project

Get crafty with technology. Here we'll post all our ideas and projects using technology to get creative and making with kids. You'll find anything from making a lemon battery to a glow-in-the-dark Minecraft sword. Our projects are tried and tested on our own kids or at events we run, so we are sure you can have a go at home with your kids. Some of our projects use specific tech gadgets which we provide links for you to purchase.

STEM$show=/search/label/stem

STEM stands for Science, Technology, Engineering, and Mathematics. In recent years there is an increased focus in these areas of study. We like to include Art and Design too, so we often talk about STEAM (A stands for Art). At Tech Age Kids we believe Coding is a new literacy and children need to understand how technology works, practice making skills and grow in their curiosity to make a better future for us all.

CODING$show=/search/label/coding

Coding is increasingly being recognised as an important skill for children to learn. Some will learn to code at school or at a coding club, but it's brilliant if they get support at home too.

ELECTRONICS$show=/search/label/electronics

We think it's really important for kids to get hands-on with electronics and learn how to make circuits and write code to control hardware. Younger kids can start with conductive playdough. For kids who like to combine craft and tech, littleBits are fab. And we love SAM Labs wireless electronics components for making it easy for kids to make Internet of Things inventions. Lots of electronics kits for kids have support for the Arduino microprocessor environment. The DuinoKit Jr is one of our favourites. Arduino is a fab skill for older kids and teens to develop.

ROBOTICS$show=/search/label/robotics

We love robots at Tech Age Kids, especially programmable ones. We've got lots of them and write reviews and projects that use them. Our programmable robots for kids buying guide is a good place to start if you're not sure what's available. Roby the mBot Meccano robot dog is one of our popular projects and has been with us to lots of events. Our Ozobot LEGO trailer is fab for kids who love LEGO and robots.

MAKING AND CRAFT$show=/search/label/making

We're advocates of the creative use of technology, but this needs to be balanced with developing physical skills such as papercraft, woodwork, clay modelling, technical drawing and soldering. If children don't develop these skills as they grow up then physical making projects can become frustrating rather than fun. The Maker Community uses the term 'making' as a broad term to include all sorts of artisan skills or craft activities. Being able to make things can lead to life-long hobbies or even careers. It's a great feeling to be able to take a project from an idea in your head to a real object that does something. We're particularly interested to explore products that combine maker skills with tech skills such as electronics but others focus purely on the physical making skills that are still important to modern making.

Flotilla and Minecraft Pi Light-Up Real-World Furnace with Python


Our first Flotilla Python project adds a lit furnace effect to our real-world Minecraft storage solution. We can now make the furnace glow with a programmable fire effect using the array of RGB LEDs on the Flotilla Rainbow module.

Flotilla is a plug-and-play electronics dock and modules for the Raspberry Pi from Pimoroni. We backed the Flotilla Kickstarter and have a big treasure chest of components to play with. You can read our first impressions review (keep in mind that it was early days) and our more recent experience with the Flotilla Cookbook recipes.

We decorated IKEA storages boxes to create a Minecraft chest, furnace and crafting table, check our our real-world Minecraft storage article to find out how to do this. Originally we just created a removeable cardboard cut-out to allow the furnace to change between lit and unlit, but the long term plan is to add electronics to our Minecraft storage.

The Flotilla Rainbow Module

The Flotilla Rainbow Module has 5 bright RGB LEDs in a row. Perfect for creating a fire effect in front our our furnace. The Minecraft furnace had red colours towards the outer edges through to orange and then yellow in the middle so we wanted to program a similar effect.



Choosing Python

We considered the Rockpool UI for controlling the Rainbow module but it didn't seem to be quite the right tool and also we knew we would want to link up with Minecraft Pi using Python.

We looked at node-red (a graphical way of connecting up inputs and outputs with functions in between) but couldn't work out how to set the LEDs individually. We'll have a look at Flotilla node-red again in future, we did get some other stuff working.

Installing Flotilla Python

The instructions for installing Flotilla Python can be found right at the end of http://flotil.la/start/

Note that if you don't have git installed then you can just go to https://github.com/pimoroni/flotilla-python and choose Clone or download -> Download ZIP and then unzip the downloaded zip. 

A set of examples is included so we took a copy of the rainbow.py example to get us started (there's not much in the way of documentation!)

We also looked at rainbow.py in the Flotilla Python library to see what functions we could use and found that it's pretty straightforward. 

There are methods for setting the colour of each pixel individually or all of them at once and a method for setting the brightness. You also need to call an update method for your changes to take effect. 

First we just tried setting the LEDs to different colours. The set_pixel function takes a pixel number from 0 to 4 and red, green and blue values, each from 0 to 255.

Here's the code:

#!/usr/bin/env python

import time
from random import *

import flotilla

from mcpi.minecraft import Minecraft
import mcpi.block as block

mc = Minecraft.create()

client = flotilla.Client(
        requires={
            'eight': flotilla.Rainbow
        }
    )

on = False

try:
    while True:

        for module in client.available.values():
            if module.is_a(flotilla.Rainbow):

                module.set_brightness(255)
                
                if on:
                    red = randint(155,255)
                    module.set_pixel(0, red, 0, 0)             
                    module.set_pixel(1, red, 55, 0)
                    module.set_pixel(2, 255, 135, 0)
                    module.set_pixel(3, red, 55, 0)
                    module.set_pixel(4, red, 0, 0)
                    module.update()
                    time.sleep(0.1)
                else:
                    module.set_all(0, 0, 0)
                    module.update()
                    
        for hitBlock in mc.events.pollBlockHits():
            if mc.getBlock(hitBlock.pos.x, hitBlock.pos.y, hitBlock.pos.z) == block.FURNACE_INACTIVE.id:               
                mc.setBlock(hitBlock.pos.x, hitBlock.pos.y, hitBlock.pos.z, block.FURNACE_ACTIVE.id, hitBlock.face)
                on = True
            elif mc.getBlock(hitBlock.pos.x, hitBlock.pos.y, hitBlock.pos.z) == block.FURNACE_ACTIVE.id:
                mc.setBlock(hitBlock.pos.x, hitBlock.pos.y, hitBlock.pos.z, block.FURNACE_INACTIVE.id, hitBlock.face)
                on = False
                        
except KeyboardInterrupt:
    client.stop()



This all worked very smoothly. There's lots of scope for trying out different ways to create more realistic fire effects.



Diffusing the Light 

During prototyping we used a box lid to diffuse the light to see what kind of effect we could create.



We added code to change the amount of red in the four outer LEDs within a range. The amount of red changes every tenth of a second to create a flickering effect. 

We also experimented with the brightness of the LEDs to create a realistic flame effect. 


3D Printed Diffusion Panel

Next we created designed a 3D printed diffusion panel in Open SCAD to go in front of the Rainbow module.



The pixels in our real-world Minecraft are 2cm square. We only created a panel for the inner part of the bottom of the furnace so that we didn't need to 3D print a huge panel. 

Here's the OpenSCAD code for creating the shape that we used:

sw = 20;

rows = [6, 6, 4, 2];
for (i = [0:len(rows)-1]) {
  translate([sw*(3-rows[i]/2), 0, 0]) {
    for (j = [0 : rows[i]-1]) {
      difference() {
        translate([sw*j, sw*i, 1.25]) cube([sw, sw, 2.5], center = true);
        translate([sw*j, sw*i, 1.25+2]) cube([sw-4, sw-4, 2.5], center = true);
      }
    }
  }
}


If you don't have access to a 3D printer then you could just cut a shape from some semi-translucent plastic packaging or cover a cardboard frame with tissue paper.

Turning the Furnace on from Minecraft Pi

Of course the next obvious step was to be able to turn the Furnace on from Minecraft Pi using Python. You don't have crafting in Minecraft Pi but you do have active and inactive Furnace blocks.



When programming Minecraft with Python on the Raspberry Pi you're pretty limited in what events you can access. You do get an event when a block gets hit so that's what we used. 

When you hit an inactive Furnace it turns to active and so does the Furnace in real world Minecraft. When you hit an active Furnace it switches to inactive and so does the Furnace in real world Minecraft. 

Here's the end result:





We're pretty please with what we managed to do and we'll be doing more projects with Flotilla and Minecraft on the Raspberry Pi.

You might also like:











24 days of Scratch coding book cover and cute penguin
Name

2013,13,2023,1,3d printing,5,3DTin,2,accessories,1,activities,1,adafruit,1,advent calendar,2,adventure games,1,amazon,13,amazon fire,2,amazon prime,1,android,6,angry birds,1,animation,6,anki,1,app,19,app toy,4,app toys,8,appcessories,1,apple,1,apps,25,arcbotics,1,architecture,4,arckit,9,arduino,33,art,1,artificial intelligence,5,astronauts,2,astronomy,1,augmented reality,11,automaton,1,awards,1,battle bots,2,battling robots,2,bedtime,1,big kids,103,big tablets,1,bigtrak,1,bike,1,binary,1,birthday,4,bitsbox,1,black friday,2,blockly,1,blogging,1,bloxels,1,bluetooth,2,board games,7,book,2,books,35,boolean box,1,breadboard,2,bricks,1,brixo,1,buying guide,11,camera,4,cameras,1,card game,1,careers,2,catroid,1,celebration,1,cellphone,1,ces,2,chemistry,2,chess,1,christmas,44,circuit cubes,1,circuit playground,8,circuit scribe,10,cleaning,1,climbing,1,code clubs,1,code-a-pillar,1,codebug,1,coder,2,coding,173,cognitive learning,1,communication,1,comparison,1,competition/challenges,9,computational thinking,3,computer,2,computer games,2,computer science,2,computer vision,2,computers,1,computing,1,conductive playdough,2,connected toys,7,construction,40,conversational ai,1,cozmo,1,craft,34,craft cutter,3,creative thinking,1,creativity,3,crochet,1,crowdfunding,120,css,1,cubs,1,curiosity,1,curious chip,1,cyber monday,1,dads,1,data,2,deals,4,dens,2,design,10,design process,1,design thinking,7,digital parenting,2,digital skills,13,disability,1,disney infinity,1,dog tech,1,dolls,2,drawing,2,drones,2,duinokit,1,earth day,1,Easter,4,ebooks,11,eco,1,edblocks,1,edison,5,edtech,1,education,79,egypt,1,electricity,1,electronic pets,2,electronic toys,2,electronics,141,electronics kit,4,electronics kits,1,electtronics,1,elementary,1,elenco,2,energy,1,engineering,17,entertainment,1,ereader,2,ereaders,6,esafety,1,escape the room,1,event,21,ewriter,1,exercise,4,family,12,family tech,2,fathers day,1,Festival of Code,1,fiction,1,fire,1,fitbit,1,fitness,1,fitness tracker,3,flotilla,3,flow charts,1,flutterbye fairy,1,flying,1,force awakens,2,force friday,2,future,2,gadgets,36,games,35,games console,2,games consoles,8,gaming,3,gift guide,55,gifts,12,girls,24,giveaway,4,glow in the dark,1,google,1,grace hopper,1,grove,1,hackaball,2,hacksoton,1,halloween,13,halloween costumes,1,hardware,3,headphones,1,health,1,hexbug,3,hexbug aquabots,1,hexbug project,1,high school,1,history,26,home,1,home education,2,homeschool,4,hot toys,7,hour of code,3,html,4,humanoid,4,ICT,1,in app purchasing,1,indiegogo,13,industry event,9,innotab,5,innotab 3,3,innotab 3s,1,internet access,1,interviews,1,invention,4,ios,3,IoT,4,ipad,7,ipad mini,1,iphone,2,jacquard,1,japan,1,java,1,javascript,5,k'nex,7,k'nex robotics,1,kano,8,keyboard,1,kickstarter,92,kids,3,kindle,7,kindle fire,8,kit,2,kits,5,kodu,1,kubo,1,label printer,1,languages,1,laptop,1,laptops,1,last minute,1,leap motion,1,leapfrog,2,leappad,7,leappad 2,3,leappad ultra,3,leappad2,1,leapreader,1,learning,5,learning resources,5,learning tablet,2,learning tablets,9,leds,2,lego,36,lego boost,1,lego chain reactions,1,lego mindstorms ev3,5,lego power functions,2,lego technic,5,lego wedo,2,let's start coding,1,lights,1,lightseekers,1,little kids,110,littlebits,16,logiblocs,1,logic,3,logical thinking,4,loom,1,machines,1,magnetic,1,make it,2,makeblock,16,makedo,1,maker,6,makey makey,6,making,54,mardles,1,mars,1,mars rover,1,marty,1,math,3,maths,1,mbot,6,mbot ranger,1,me arm,1,meccano,6,meccanoid,5,meccanoid 2.0,1,merge vr,1,mews,1,michael faraday,1,micro:bit,9,microbit,6,microcontroller,5,microscope,1,microsoft,2,middle school,6,miles kelly,1,mindstorms,3,minecraft,21,minecraft mods,1,mixed reality,1,mobile,2,modular electronics,2,monsters university,1,morse code,2,mothers day,4,motion capture,1,motors,2,mover kit,3,movie,1,movies,4,mu,1,mu toys,1,munzee,1,music,10,my first robot,2,national dog day,1,nature,1,new,1,new year,1,news,170,news coding,1,nikola tesla,1,nintendo,2,nintendo switch,3,ohbot,3,ollie,3,on the web,1,opinion,19,origami,1,osmo,4,outdoors,13,ouya,1,ozobot,10,papercraft,3,paperwhite,1,parental controls,2,parenting,34,parrot,1,pc,1,people,8,pet tech,2,pets,3,phone,1,photography,1,photon,1,physics,3,pi day,1,picks,2,pimoroni,1,pinoccio,1,pixel kit,1,pixelart,4,play,2,playstation 4,3,plezmo,1,pocket code,1,pocket money,1,pokemon,4,pokemon go,4,poll,1,pre order,1,pre-teens,2,prehistory,1,preschoolers,42,primary,41,printable,1,products,34,professor einstein,1,programming,15,project,102,projects,12,puzzles,4,python,10,racing,1,raspberry pi,29,reading,12,reivew,1,remote control,1,research,3,resource,34,resources,2,retro,2,review,223,rights,1,robot,11,robot dog,1,robot fish,1,robot wars,3,ROBOTERRA,1,roboticals,1,robotics,32,robots,140,role models,1,role play,1,romo,1,romotive,1,root,1,rover,1,safety,2,sam labs,6,samuel morse,1,sandbox,1,schools,3,science,16,scratch,48,scratchjr,3,screen time,2,screenless,15,screens,1,sensors,5,servos,1,simbrix,7,skills,1,skylanders,3,skylanders superchargers,1,skylanders swap force,1,smart pens,1,smartphone,1,smartwatch,1,snap circuits,2,social media,1,solar power,2,soldering,2,sonic pi,1,sony koov,1,sound,3,space,9,sparki,2,speaker,3,speech sythesis,1,sphero,12,sphero mini,1,spider,2,star wars,6,stars,1,STEAM,1,stem,10,stikbot,1,stop motion,2,stop motion studio,1,storage,1,story,2,strawbees,2,students,1,subscription,5,subscriptions,1,sugru,1,summer,7,swift,1,tablet,3,tablets,23,tangible coding,2,tech,3,tech age,1,tech craft,4,tech is bad,7,tech is good,4,tech toys,21,tech will save us,10,technology,2,technology will save us,3,teens,64,teknikio,3,tekno,1,teksta,1,tenka labs,1,tesla,1,textiles,1,thames & kosmos,2,the extraordinaires,1,tim berners lee,1,tinkercad,1,tinybop,3,toddlers,9,toot-toot,1,top pick,9,touch,1,toy,1,toys,5,travelling,1,TTS,1,TV,1,tween,1,tweens,119,tynker,2,typing,1,ux,1,vehicles,1,videos,3,view-master,1,views,10,virtual reality,8,voice assistants,1,voice recognition,2,vr,4,vtech,8,web,2,websites,1,wifi,1,wii,2,wii u,2,windows 8,1,wonder workshop,9,wowwee,2,writing,7,writing. education,1,xbox one,2,xyzprinting,1,
ltr
item
Tech Age Kids | Technology for Children: Flotilla and Minecraft Pi Light-Up Real-World Furnace with Python
Flotilla and Minecraft Pi Light-Up Real-World Furnace with Python
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4utKe6Ib2yfEkoyVs_oGYZMzIQSHobo7O0-9LtI-OdKs1_bMUcus__FnbHs8aMa1NGbthMvv90nobESLOCAyHJm-CEr98juXz5GODUBgSQT0PY4zs1zNIMR1OeDcqHfVJ4LVzawD8oU/s640/light-up-minecraft-furnace-flotilla-minecraft-pi-head.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZ4utKe6Ib2yfEkoyVs_oGYZMzIQSHobo7O0-9LtI-OdKs1_bMUcus__FnbHs8aMa1NGbthMvv90nobESLOCAyHJm-CEr98juXz5GODUBgSQT0PY4zs1zNIMR1OeDcqHfVJ4LVzawD8oU/s72-c/light-up-minecraft-furnace-flotilla-minecraft-pi-head.jpg
Tech Age Kids | Technology for Children
https://www.techagekids.com/2016/09/flotilla-python-minecraft-raspberry-pi-project.html
https://www.techagekids.com/
https://www.techagekids.com/
https://www.techagekids.com/2016/09/flotilla-python-minecraft-raspberry-pi-project.html
true
15639169850959392
UTF-8
Loaded All Posts Not found any posts VIEW ALL Read more Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy