ProCodeCG – Private Training – Data Acquisition with ESPectro – Day #1 – 15 May 2017

Standard

Today we had a training on gathering data from sensors using DHT11 and MLX90614 using ESPectro development board πŸ™‚

Setting up before the class started

IMG_8921 IMG_8922

IMG_8923

We used two different computers to make sure we can do lots of things simultaneously πŸ™‚

IMG_8924

we also have to make sure we have reliable internet connection and a toolbox full of anything we might need πŸ˜‰

IMG_8925

we tested MLX90614 with Arduino

IMG_8927

IMG_8929

and it worked. Next we will use ESPectro to be able to send the data via cloud πŸ™‚

IMG_8928

We’re going to use the sensors to measure battery temperature

IMG_8930

We’re going to use multiple sensors to measure multiple batteries, so we’ve got lots of things to do, and will continue the training on Wednesday πŸ™‚

IMG_8931

ProCodeCG codeMeetUp() #104 – BR – Acer CloudProfessor

Standard

ProCodeCG is where we can learn the most recent technology πŸ™‚ Today Professor BR taught us a bit about Acer CloudProfessor πŸ™‚

IMG_8412 IMG_8413

Acer CloudProfessor (black little box) connected to a powerback (white, bigger box), surrounded with devboards, connectors, and sensors.

IMG_8414

One of our cutest audience πŸ™‚

IMG_8415

The audience (a few more came later)

IMG_8416

Yaaay, more moms and kids πŸ™‚

IMG_8418

The ide of CloudProfessor inspired by MicroProfessor – MPF-01

IMG_8420 IMG_8421

Acer CloudProfessor connected to RGB LED to be controlled remotely via a smartphone

IMG_8422 IMG_8423

The code

IMG_8424

Lots of things can be done with different sensors

IMG_8425

IMG_8426

IMG_8427

Several sensors connected to an Arduino Leonardo with a stack-up I2C connectors

IMG_8428

Working easily πŸ™‚

IMG_8429

A brilliant example: CPF Ramen Cooler πŸ˜€ It will detect the temperature of a bowl of ramen and activate fan to cool it off πŸ˜€

IMG_8430

Bluetooth technlogy

IMG_8431

A demo of compiling and running the code

IMG_8433

IMG_8434

Very few people know about this latest technology, and those attending this short lecture today will surely a few steps ahead πŸ˜‰

IMG_8437

ProCodeCG Kids Regular Coding Class – ESPectro Programming – 7 May 2017

Standard

ESPectro Programming class yesterday πŸ™‚

IMG_8233

Clarence had a some interesting thing to show us, like usual πŸ™‚

IMG_8234

He created a clock that is synchronized to internet with ESPectro and TFT display. This one is before connected to the internet.

IMG_8231

This time when it’s connected to the internet and synchronized
IMG_8241

Rafi missed several classes so he had to keep up and started with connecting to wifi using ESPectro

IMG_8235

He was so glad to be able to scan and display the details of every available networks πŸ™‚

IMG_8253

He turned on teethering on his smartphone

IMG_8255

and see it on the list πŸ™‚ The signal is -47dBm which is quite strong πŸ™‚

IMG_8254

Ozan was keeping up with LCD display πŸ™‚

IMG_8236

After installing some libraries and fix some error, Ozan finally able to send text to be displayed on LCD πŸ™‚

IMG_8263

Farrell was back πŸ™‚

IMG_8237

He insisted to continue his SSTV project πŸ™‚

IMG_8243

Ren and Mom πŸ™‚

IMG_8238

Ren finished up two tasks

IMG_8249

displaying custom chars to LCD

IMG_8248

and displaying the info of wifi connected to πŸ™‚

IMG_8262

Danesh was still catching up with button to serial code πŸ™‚

IMG_8239

Raul finished 2 tasks

IMG_8240

displaying custom chars

IMG_8245

and displaying wifi info

IMG_8246

and this one refused to leave the class eventhough all stuff had been returned to the storage room πŸ˜€

IMG_8284

See you all kids, next Saturday πŸ™‚

ProCodeCG Kids Regular Coding Class – ESPectro Programming – 29 April 2017

Standard

Hello Saturday πŸ™‚ This class is what makes every Saturday so fun πŸ™‚

IMG_7716

This little girl is Alice, she is Azriel’s sister, and she was the most helpful person today!

IMG_7717

Alice set up the class voluntarily πŸ™‚

IMG_7718

Preparing things like this is a good training for kids, it is amazing that a kid this young is already aware about giving help πŸ™‚

IMG_7719

Go Alice πŸ˜‰

IMG_7720

Ren (on the left) moved aside to give Alice space to work πŸ˜€ πŸ˜€ πŸ˜€

IMG_7721

All set! Thanks so much Alice πŸ™‚ ❀ ❀ ❀

IMG_7722

More kids were on their way πŸ™‚

IMG_7726

Like usual, the first thing to do is downloading the newest version of handout πŸ™‚

IMG_7727

Today we learned how to scan wifi, and this is Ozan’s πŸ™‚

IMG_7745

Reza working on wifi scanning

IMG_7728

Once it worked, Reza moved on to the next task

IMG_7751

… connecting ESPectro to a LCD I2C so next we will be able to display wifi statusΒ to it πŸ™‚

IMG_7785

Ren πŸ™‚

IMG_7729

… and Mom. When these two get together, there’s nothing they can’t do

IMG_7735

because they are a great team πŸ™‚

IMG_7765

Danesh was catching up with button and LED

IMG_7730

He had successfully control LED by pressing the button, and toggle its function too πŸ™‚

IMG_7736

Raul won’t stop until everything works πŸ˜€

IMG_7731

He finished the wifi scanning and and connecting ESPectro to LCD I2C πŸ™‚

IMG_7752

Clarence had lots of achievements today πŸ™‚

IMG_7758

He had successfully display active wifi to a TFT display, complete with the strength of the signal πŸ™‚

IMG_7737 IMG_7738

And Clarence also code an algorithm to sort data and display it πŸ™‚

IMG_7759

The process of sorting πŸ™‚

IMG_7788

IMG_7760

Clarence’s stuff πŸ˜€

IMG_7762

Pak BR gave a task of data visualization with Python to Clarence πŸ˜€

IMG_7784 2

Pak Budi had his own project too

IMG_7744

Including fixing the broken extension cable by creating an emergency voltmeter πŸ˜€

IMG_7742

Also had a discussion with one of the parents (one of those geek parents :D) about IoT πŸ™‚

IMG_7787

We learned so much today

IMG_7740

and got so much guests too πŸ™‚ Bubi, Azriel’s mom was there to share about family and communication πŸ™‚

IMG_7739

Other parents πŸ™‚

IMG_7733

IMG_7734

We are not only having a coding class every Saturday, we also have a great family time πŸ™‚

ProCodeCG Kids Regular Coding Class – Espectro Programming – 8 April 2017

Standard

Hello Saturday πŸ™‚

IMG_6284

Every Saturday kids report their progress or ongoing project πŸ™‚ Koosha created an “operating system” using batch file πŸ™‚

IMG_6281

very interesting πŸ™‚

IMG_6283

Even Faris wanted to try it πŸ™‚

IMG_6305

Koosha finally find out how to change the colors of neopixel πŸ™‚

IMG_6302

Clarence came with lots of progress πŸ™‚

IMG_6294

IMG_6295

He is still working on data visualization

IMG_6286

He was asked to read a sensor and display the reading, and he did πŸ™‚

IMG_6314

IMG_6313

IMG_6298IMG_6288

Raul followed the handout very smoothly today πŸ™‚ He finished all the task: button, button to serial monitor and neopixel πŸ™‚

IMG_6285

IMG_6291

IMG_6289

We had a newcomer: Danesh πŸ™‚ Danesh Mom is a Coding Mom Alumni. She understands about coding so she was really helpful with the painful process of installing today :0

IMG_6290

Don’t worry Danesh, we will use the toolkit as soon as we finish with this installation and setup process πŸ™‚

IMG_6300

We also had Gyan joining Espectro Class today πŸ™‚ He also had to gone through painful process of installation and setting just like Danesh did πŸ˜€ We had to continue next week πŸ™‚

IMG_6296

Rafi finished his tasks too πŸ™‚

IMG_6292

Rafi looked so happy to see how neopixel changing colors like RGB LED πŸ™‚

IMG_6306

After 2 weeks of installation etc process, now it’s getting easier to do things with Espectro πŸ™‚

IMG_6303 IMG_6304

A scene of friendship today in the class πŸ™‚

IMG_6301

We already have plans for next week πŸ™‚ Will be reporting very soon πŸ™‚

ProCodeCG Kids Regular Coding Class – Espectro Programming – 1 April 2017

Standard

We were still working on installing drivers, libraries and board for Espectro yesterday πŸ™‚ The beginning is always hard and tricky πŸ™‚

IMG_5853

Espectro has been running well on Mama Ren’s laptop, so yesterday they tried to make Espectro work on Ren’s laptop

IMG_5855

IMG_5889

We had a newcomer, Rafli πŸ™‚ He’d gone through all the steps, the only thing we hadn’t had time to figure out is Espectro configuration on Mac (we’ve done installation on several Mac’s but this one is a bit different)

IMG_5856

We also installed Minecraft and Spigot Server for the next class while waiting the Espectro libraries downloading

IMG_5888

Muhammad had successfully finished Espectro installation and configuration so he was on duty to help his friends πŸ™‚

IMG_5862

IMG_5890

Muhammad and Mama Ren helped Raul with the final steps of configuration

IMG_5857

Koosha and Dad realized they forgot to bring the Espectro, lucky that ProCodeCG has 2 Espectro πŸ™‚

Rafi (on the left) was downloading handout to execute final step of Espectro configuration

IMG_5858 2

A nice Saturday for tinkering like always πŸ™‚

IMG_5859

Hello Farrell πŸ™‚ He was back after a while and he also forgot to bring his Espectro and toolbox πŸ˜€

IMG_5860

So Farrell was doing some research about his sensor projects and a alsoΒ about Minecraft Modding

IMG_5863

IMG_5894

Capt. Reza was given different task: to create Knight Rider pattern with Espectro on board neopixel πŸ™‚

IMG_5861

IMG_5891

The folder where variants folder and boards.txt has to be copied to the other directory

IMG_5880

Rafi’s neopixel worked! πŸ™‚

IMG_5884 IMG_5886

All in all, we made progress with Espectro yesterday πŸ™‚ There were also new friendship in the class πŸ™‚

IMG_5893

Kids πŸ™‚ One day they hate each other the other day they play together LOL

IMG_5883

We’re going to explore more things with Espectro next week πŸ™‚ Don’t worry we will help kids who haven’t finished installation and configuration process πŸ™‚

ProCodeCG codeMeetUp() #90 – BR – IoT and MQTT

Standard

The topic for today is how to connect IoT to cloud, by Prof. Budi Rahardjo πŸ™‚

IMG_0568

The preparation before presentation and demo. Making sure internet connection was stable πŸ™‚

IMG_0569

IMG_0570 IMG_0571

What is MQTT?

IMG_0572

Concept of Queue

IMG_0573

The audience (a few more were coming late)

IMG_0574

Example of queue system is RabbitMQ

IMG_0575

The stuff for demo

IMG_0576

Pak BR used DyCodeX Espectro because it already has wifi module on board πŸ™‚

IMG_0577

MQTT communication model

IMG_0580 2

Brokers. The open source one is Mosquitto

IMG_0581

IMG_0599

Starting up Mosquitto

IMG_0582

subscribing to HiveMQ

IMG_0583

The client

IMG_0584

The code

IMG_0585

It worked just fine, with DyCodeX Espectro πŸ˜‰

IMG_0587

Compiling code with PlatformIO

IMG_0588

The topic can be subscribed from an Android phone with MQTT apps. Look on the right, when the publisher send a message to turn on/off the LED, Espectro LED on board will be on/off and the switch on Android will be checked/unchecked.

IMG_0594 2

The code can be in Python too πŸ™‚ With paho library

IMG_0595

The code can be compiled with Arduino IDE too

IMG_0596 2

IMG_0597 IMG_0598

We learned so much thing today πŸ™‚

IMG_0600

After class, we tried to set up a publisher and subscriber on Android phones

IMG_0602 2

Yea it worked πŸ™‚

IMG_0603

The phone on the left is publisher and the right one is subscriber. Notice that the right oneΒ display anything inputted by the left one πŸ™‚

IMG_0604

With this platform we can create so much things! Will be reporting more updates very soon πŸ™‚