Modellers – Week 10

Hi folks, hard to believe this was our last regular session of 2019. Next week is our Christmas pizza party and show-and-tell.

This week we took a photo of a cereal box and UV mapped it to a simple cube which we scaled to the appropriate proportions. One we made our model we built a very basic studio setup and did our first render with a camera and a light.

Here are the video instructions:

Here is the final render from my model:

cerealbox_render

The file for this week can be download from here.

Once we return in January I’ll be using Blender 2.81, instead of 2.80 which we have been using, so everyone should try to upgrade if they can by going here.

 

Explorers Week 10 – Making Music – Electric Piano

Hi everyone,

Thank you all for coming again on Saturday, Ruaidhrí ran the session this week and I am sure you were all glad not to have to listen to me for a change.

He did musical instruments and should you how to create variables for each one so that you could have a note repeat.

No notes this week but below is the code that was used.

This coming Saturday will be run by Eoin and will be Christmas themed based! This will be our last session before our Christmas party so dust off those Christmas Hats! and Jumpers

 

Martha, Ruaidhrí, Iseult, Julie and Eoin

Modellers – Week 9

This week, we took the mug we’d created the week before and UV unwrapped it again. We’d covered that last week too, and it’s in last week’s notes, but because we’d rushed a little we went over it again.

One the model was unwrapped, we created an image texture and manually painted it. We then used the GIMP image editing program to add an image to our texture.

Step-by-step notes can be found here:

The model file can be downloaded from here.

Hackers – Soldering LED Circuits

At Hackers this week, we learned how to solder. Group members stripped wires and then soldered them together, and they made LED circuits by soldering them onto stripboard, and tested them with Arduino programs.

As we discussed, it is important to build your circuits temporarily with a breadboard (where you just push the wires in, and can easily move them) before moving onto soldering them on to stripboard. Stripboard (also called Veroboard) has holes every 2.5mm in a grid, and has copper strips on one side connecting the holes in one direction. You mount the component (such as an LED on the side with no copper, and solder its pins to the copper strip. Then, you can solder a pin of a different component somewhere else along the same copper strip, and current can flow through the copper strip.

There are plenty of videos on YouTube  to demonstrate soldering technique. Here is one by Emer Cahill of GMIT:

Explorers Week 9 – Guessing Game!

Hello Everyone,

Great to see you all on Saturday.

We made a slight departure from the games we have done in previous weeks. This weeks game was a mathematical Guessing Game.

DUCK

We only had one sprite and one large block of code. We had to create variables and figure out all the possible situations that could occur when a guess was made.

guess

Here are the notes in PDF form from this weeks session CDA-S8-Week_09-GuessNumbers.pdf

Martha

Iseult, Julie, Ruaidhrí and Eoin

Modellers – Week 8

 

Hi folks.

This week we started looking at texturing. Texturing is the process of taking an image, which is flat, and mapping it onto a 3D object, which generally isn’t.

UV maps are just the plan that shows which part of the texture goes to which part of the 3D model.

Unwrapping is the process of taking the 3D surface of the model and laying it flat, like peeling an orange. This flattened version of the model, when placed over the texture becomes the UV map.

unwrap

The animation above illustrates the process for a simple shape as if we really were unfolding the shape manually. In reality, we just tell Blender where the seams are (where it can cut the model’s surface) and the rest can happen automatically.

Here are the video instructions for this week:

The model file can be downloaded from here.

Next week, we actually paint the model and perhaps add a logo.

Hackers – Getting started with Python programming on Arduino

circuit2

In the past two weeks in the Hackers group at CoderDojo Athenry, we have started Python programming on the Raspberry Pi.

The Pi is about the same size as the Arduino that we used earlier, and the Pi Zero is about the size of the Arduino Nano, and both Pi and Arduino have input/output pins for physical computing. However, they have significant differences.

Unlike the Arduino which is a microcontroller (which means it is designed to run a single program that was uploaded onto it), the Raspberry Pi has a full computer operating system, so it is more like a PC to use. It can be programmed in many languages, but Python is a popular choice as it is clear to read and there are lots of libraries to make tasks easier. Because it’s a full computer, you can write and run your programs all on the Pi, without connecting it to a laptop.

The first step in programming is to figure out how to do loops, variables and decisions, as these are fundamental. Here is our first Python program to try out these:

# Python comments start with #

age = 14 # a variable holding an int
name = "Michael" # variable holding a string

# Output
print ("My name is", name, "and my age is ", age)

# Loop
for x in range (1, 5):
    print ("This is line ", x)

# Decision
if (age  17):
    print("Adult")
else:
    print("Teenager")

Next we moved on to using the GPIOZero libraries for controlling lights and buttons. We will continue to explore this in the coming weeks.

The documentation is here: https://gpiozero.readthedocs.io/en/stable/

 

Week 8, Explorers – Pen Commands

Hello Everyone,

This week we finished off our Paint Program from last week and did some more work with Pen Commands.

 

pencommand

We didnt get to do all the code that is in the attached notes so if you want to give it a go yourself, that would be great. You can add a start and stop button and some variables.

 

sliders

 

 

 

 

 

 

 

 

 

Here are the full Pdf version of my notes from this weeks session. CDA-S8 Week 8-Pen Command.pdf

Hope to see you all this Saturday, we will be doing a great Maths Guessing Game!

Martha

Julie, Iseult, Eoin and Rauidhrí

Week 8 2019 Explorers – Paint Program

Hi everybody,

our drawing program. We made good use of costumes this week to make it look like we were dipping our paint brush in each of the different colours.

We also used a variable similarly to how we used in the Piano Game we made. We made it into a slider and then code select the Pen Size we wanted.

Here are the notes in PDF. CDA-S7-Week_08-Paint.PDF

 

 

Martha