ProCodeCG Kids Regular Coding Class – Arduino Programming – 17 Dec 2016

Standard

WHOOOAAA, today we learned a very difficult schematic: water meter using transistors πŸ˜€

Before the class and the headaches started πŸ˜€

IMG_8633

Transistor is an active component, and a bit hard to understand. Luckily GodFather Captain BR visited us today to lecture us about it πŸ™‚

IMG_8639

The schematic is quite complex

IMG_8648

So Capt. BR broke it down into simpler ones. We created only a resistor connected to 5V and to Arduino digital output and observed the output (that should be 1). After it worked then we added the transistor and see if it worked.

IMG_8666

A transistor works like a water tap. When the base gets the required voltage level, it will be turned on and let the current flow through collector to emitter. Just like a switch.

IMG_8642

This schematic explained pull-up resistor and how the transistor being turned on or turned down.

IMG_8645

We created this simple avometer to check if there’s a voltage πŸ˜€

IMG_8658

After we got the previous ones worked, we continue to add more components

IMG_8665

The schematic required 3 transistors. Each transistor has 3 legs. We use 2N3904 NPN transistors, so the emitter leg is on the left side when the flat surface is facing us. Kids had to put the component one by one really carefully, this is Rheino “copying” Reza’s πŸ™‚

IMG_8634

Clarence is looking for the resistors with the required (or similar) values required by the schematic

 

IMG_8635

Malik didn’t feel doing the water level project today. He instead chose to tinker with dot matrix LED πŸ™‚

IMG_8637

Syahna helping Cinta reading the value of the resistors

IMG_8638

Mama Ren helping our newcomer, Raul to get started with Arduino πŸ™‚

IMG_8640

Muhammad is copying the example really really carefully πŸ™‚

IMG_8641

We’re lucky Capt. BR gave us a very long and clear lecture about how transistors work

IMG_8643

Kids looked confused at first but once they get the idea they will be able to make more things with the components they have learned! πŸ˜‰

IMG_8644

And our Lead Captain is back! Capt. Zaki πŸ˜‰

IMG_8646

He has grown so big! πŸ™‚

IMG_8647

Well, we got lots of Captains visiting us today πŸ™‚

IMG_8649

Capt. Zaki tried to keep up with the class because he has to be on duty on next coding camp πŸ™‚

IMG_8650

Capt. Cinta choose the components really carefully, because each leg of the transistor requires different value of resistor

IMG_8651

Malik was doing his own research on how to make a dot matrix LED works

IMG_8652

We learned so hard today, one misplaced leg will ruin all πŸ˜€

IMG_8653

Reza is a very quiet and focus kid. Very detail and persistent πŸ™‚

IMG_8654

We started with the simple code, to make sure the simple schematic works

IMG_8655

While Raul, with his new ProCodeCG Arduino Kits had learned multiple LED, and later RGB LED πŸ˜‰

IMG_8656

He seemed to enjoy his first class (despite of the lecture of the transistor :D)

IMG_8657

Happy kids. A pleasant scene to see. Always πŸ™‚

IMG_8662

Clarence is almost ready to test his schematic

IMG_8663

And so is Reza

IMG_8664

Look at those cables πŸ˜€ Can you believe kids can deal with this level of complexity πŸ™‚

IMG_8670

Clarence kept improving his code to display the info about the water level

IMG_8672

While Reza assisted by Mama Ren has got the circuit running

IMG_8673

And they’re ready to put the cable into water πŸ˜‰

IMG_8674 2

Reza’s, is the first schematic working today πŸ™‚

IMG_8675 2

We should put the cables on different levels to check the height of the water but this time we just check that each level sensor is working πŸ™‚ Our another flood sensor prototype πŸ˜‰

IMG_8676 2

Yeaaah!!! πŸ™‚ This one works better than a water sensor because a water sensor can only sense about 5cm water level while with this one we can set different level and different distance between each level πŸ™‚

IMG_8678

The code (with case)

IMG_8679

Debugging the code

IMG_8680

And they got different code using if πŸ™‚ Nice work!

IMG_8684

The last version of Clarence water level info: with bars πŸ™‚ Awesome!

IMG_8685

Looked like everybody had a good time today! We’re going to make more! See you next week πŸ™‚

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s