Hackers – Disassembling Stuff!

A great way to figure out how things work is to take them apart. In the Hackers group, we unscrewed, hammered, de-soldered and detached the parts from the insides of an old living-room DVD player, a computer CD player, and a speaker from a stereo, to see what we could find.

Group members de-soldered components such as switches and capacitors that we will use in new projects, extracted and examined motors from the CD/DVD players, and got a working speaker from its housing. They powered up the motors with DC batteries to see how they work, and hooked up the speaker to a phone headphone jack (whch worked but would need amplification).

CDs and DVDs are great because they include different high-quality motors for spinning the disc, moving the laser read head forward/backward, and ejecting the tray.

Hackers – Arduino Basics

arduino

On 15 Oct, we spent the session figuring out the basics of programming and electronics with an Arduino micro-controller. We had a couple of Arduino Unos (pictured above) and a Genuino 101.

We downloaded the Arduino IDE (integrated development environment) software here: https://www.arduino.cc/en/Main/Software

We then built a simple circuit to turn on an LED, using a breadboard:

Circuit.jpg

After connecting the 5V side of the circuit to Digital pin 2 on the Arduino, we started experimenting with writing code to control it, using the C-based language of the Arduino IDE:

arduinocode

After that, group members started experimenting with more complex programs and hardware, such as pressure and temperature sensors, which they had working by the end of the 2-hour session. I was very impressed with the speed with which they made progress!

 

Hackers – tips for safely using a 3D printer

We were very pleased this week to be able to let the first members of the Hackers group take home 3D printers for the week to experiment with them. We will continue to do this in the coming weeks.

Here are some guidelines on safely using a 3D printer, prepared again by Kevin from Boston Scientific:

3d-printer-operating-guidlines (PDF)

Next time, we will take a closer look at building models in a 3D modelling package.

Welcome to the 2016-17 Season at CoderDojo Athenry!

coderdojoathenry-infosession-2016-sept

We had a great first day back at CoderDojo Athenry on 17 September 2016, with about 205 young people and their parents attending the first day.

In case you missed the session, you can review the introduction notes here:
1-coderdojoathenry-infosession-2016-sept (PDF)

This year, we have renamed our groups:
  1. Explorers, led by Martha, was formerly the Scratch Beginners group, as well as Scratch, it will include graphics packages and stop-motion animation — overview notes here: 4-explorers-wk1_information-session (PDF)
  2. Advancers, led by Mark and Oliver, was formerly the Scratch Advanced group, and will feature more advanced projects Scratch and packages such as GameMaker — overview notes here: 5-advancers-coderdojoathenry-kickoff-sept2016 (PDF)
  3. Bodgers, led by Declan, was formerly the Raspberry Pi group and will involve hardware and electronics projects — overview notes here: 6-bodgers-coderdojoathenry-info-sept2016 (PDF)
  4. Creators, led by Kieran, was formerly the Unity group and will involve 3D game development in Unity, complemented by 3D modelling and sound effects — overview notes here: 7-creators-coderdojoathenry-kickoff-sept2016 (PDF)
  5. Hackers, led by Michael, is a new group, and is a hacker space for CoderDojo Athenry, with more in-depth projects building on technologies learned in other groups, as well as new ones — overview notes here: 8-hackers-coderdojoathenry-infosessoin-2016 (PDF)

We encourage people to work through the groups in the order listed above. Creators and Hackers are aimed at young people in secondary school.

For the Bodgers group, Declan has also posted additional notes about getting started: Bodgers-Setting up our laptops.

See you all next week!

Congratulations CoderDojo Athenry Members at Coolest Projects 2016!

Congratulations to everybody from CoderDojo Athenry who participated in the CoderDojo Coolest Projects on 18 June 2016.

12 children from CoderDojo Athenry presented their group or individual projects at Coolest Projects in the RDS Dublin – this is the annual competition organised by CoderDojo, and had over 700 projects from Ireland and internationally.

We are very proud of everybody who participated, including 5 of them who won prizes: Shane won top prize in the Hardware category for his Flood Gauge project, Roy won a runner-up prize in the Games category for his Pretendo arcade game project, and Ruaidhri, Luke and Oisin won a runner-up prize in the Games category their Broken Island game written in Unity.

Congratulations to over 100 CoderDojo Athenry ninjas who earned belts on 28 May 2016!

Belts2016

Congratulations to all of our ninjas of CoderDojo Athenry who earned belts on Saturday 28 May and then joined in our party with pizza and chips.

Here are some photos of the day, posted on our Facebook page: https://www.facebook.com/CoderDojoAthenry/posts/1141076832579849

We awarded a total of 102 belts to young people who have mastered a wide range of programming technologies:

  • White belts for being actively involved in the dojo: 10
  • Scratch Beginners: 34 yellow belts
  • Scratch Advanced: 7 yellow and 21 blue belts
  • App Inventor: 3 blue belts
  • Raspberry Pi: 4 blue belts and 1 orange belt
  • Minecraft JavaScript: 7 green belts
  • Unity C#: 1 yellow, 5 green and 9 orange belts

Well done, everyone! We are very proud of you all.

We are very grateful to our supporters –thanks to them and all of the time given for free by our mentors, CoderDojo Athenry is entirely free of cost for all of our participants:

  • Clarin College Athenry and its principal Ciaran Folan, for generously hosting us every week and providing sponsorship towards our belts
  • The Galway-Roscommon Education & Training Board, for an annual youth club grant
  • Medtronic for a Volunteering Grant via mentor Declan Fox, recognising the many hours he puts into CoderDojo Athenry.

And we are very grateful to our special guests from this year: Niall of Colmac Robotics, Chris Tierney with his drone, and Brenda, Donovan and John Romero.

CoderDojo Athenry is now closed for the summer and will resume around mid September. We will notify you all by email when it is restarting.

Have a great Summer!

Michael and the CoderDojo Athenry mentors.

ModderDojo: Exploding Villager or other NPC

I put this together as a simple example of how we can modify the Exploding Chickens mod that was  written in Java by CodeName_B for CoderDojo Athenry and then re-written in JavaScript by Kieran Coughlan:

https://cdathenry.wordpress.com/2015/04/03/scriptcraft-an-exploding-chickens-mod/

My version does not check that the player has damaged a chicken, but instead checks the entity’s name. If the entity is called “Donald” and you hit it, it will explode in 5 seconds! It does not matter whether Donald is a Villager, a pig, or whatever, and you can have multiple NPCs called Donald and it will work on all of them. (In case you didn’t know, an NPC is a non-player character.)

// Require events
require("events");

// Create a var to represent the bukkit type that represents a player
var bkPlayer = org.bukkit.entity.Player;


// The function which we will run when we load this module
var _loadMod = function()
{
 // Announce ourselves to the console
 console.log("Exploding Villager ScriptCraft Mod loading");

 // Tie our code into the event that fires every time one entity damages another
 events.entityDamageByEntity(_entityDamageByEntity);
}

// The code that we want to run each time one entity damages another
var _entityDamageByEntity = function(event)
{
 // Find out, from the event, who's getting damaged and who did the damage
 var damagedEntity = event.getEntity();
 var damagingEntity = event.getDamager();
 
 // If it's a NPC getting damaged by a player, game on...
 if (damagedEntity.getCustomName() === "Donald" && damagingEntity instanceof bkPlayer)
 {
 // Announce in the console that we've detected a player damaging an NPC called Donald
 console.log("Exploding Villager - a player damaged an NPC called Donald");
 
 // Schedule a task to run in five seconds (20 * 5 because the Minecraft clock ticks 20 times a second.
 server.scheduler.scheduleSyncDelayedTask(__plugin, function() 
 {
 // The original Exploding Chckens mod only triggered if its health went to 0 (killed), 
 // but let's comment that out so the first hit causes an explosion
 //if (damagedEntity.getHealth() - event.getDamage() <= 0)
 //{
 // Get the NPC's location
 var loc = damagedEntity.location;

 // Create an explosion at the chicken's location. 
 // A big one...
 loc.world.createExplosion(loc, 10.0);
 //}
 }, 20 * 5); // end of the command to schedule the task
 }
}

// Run this script as soon as the file's loaded

_loadMod();

 

ModderDojo Topic 7: Planning and Building a Complex Structure Mod in Minecraft

PyrimidInside

This topic continues from ModderDojo Topic 6: JavaScript Operators and ScriptCraftJS Drone Functions.

Sharing a Server:

In previous weeks before we stopped for Christmas, some people struggled to make progress through no fault of their own: they were hampered by CanaryMod crashing a lot on some people’s computers.

To work around this, everyone can connect to my computer as the Minecraft server, and I will also create a shared folder on the computer so you can drop your mods into it.

Please review these notes from several weeks ago: Topic 2: Connecting to Each Other’s Servers.

This Week’s Challenge:

This week (and for the next week or two), your challenge is build a substantial mod in ScriptCraft that, when you run it, will create an impressive-looking structure!

A key step to success here is planning and design: as I have said before, a  programmer’s most important tools are paper and pencils, for figuring out what you want to create before you write code for it.

You should review the following:

 

Tunnel1

 

Happy New Year 2016!

Happy-New-Year-2016c

CoderDojo Athenry will resume on Saturday 16 January 2016 at our usual time and place, 12:00 in Clarin College Athenry (formerly called Gairmscoil Mhuire / The Tech). See you there!

We are very grateful all of our members in CoderDojo Athenry for your involvement and enthusiasm during 2015. And of course we are hugely grateful to our mentors who are so generous with their time and expertise every week, and to the school for accommodating us.

We are looking forward to another year of fun coding and excitement learning about new technologies in 2016, and we hope you are looking forward to it too!