Archives for July 15, 2015

REThink 2015 Day 12, Machine Learning, Arduino, More MATLAB

Today started off by talking about Machine Learning. In fact, we started using the WEKA program to begin our machine learning about Iris plants, and classifying them into groups. The University of California Irvine, has quite a repository of machine learning datasets, available here. I’ve attached the powerpoint on what we did (more like a tutorial): Weka_a_tool_for_exploratory_data_mining (1)

We then worked on an Arduino Project, which was really interesting (and easy for me, as I used Arduinos in a previous RET).  Here’s the sketch, note that you’ll need a few libraries for it to run correctly:

#include <Wire.h>
#include “Adafruit_LEDBackpack.h”
#include “Adafruit_GFX.h”

Adafruit_BicolorMatrix matrix = Adafruit_BicolorMatrix();

void setup() {
Serial.begin(9600);
Serial.println(“8×8 LED Matrix Test”);

matrix.begin(0x70); // pass in the address
}

static const uint8_t PROGMEM
tongue_bmp[] =
{ B01100110,
B10011001,
B10000001,
B10000001,
B10000001,
B01000010,
B00100100,
B00011000 };

void loop() {

matrix.clear();
matrix.drawBitmap(0, 0, tongue_bmp, 8, 8, LED_RED);
matrix.writeDisplay();
delay(50);
;
}

And here is the Teacher Guide to the laboratory (Thanks Suzanne!):Light Lab

Here’s the setup instructions:

And the code I posted above is for a heart. Happy Wednesday!

  

 

Now I’m spending the rest of the day working on MATLAB, trying to get the GUI to close when pushbutton1 is executed.