MidTerm Cont’d Research: Strangers^3

It is only rarely that a psychoanalyst feels impelled to in- vestigate the subject of aesthetics even when aesthetics is understood to mean not merely the theory of beauty, but the theory of the qualities of feeling. The subject of the “uncanny” is a province of this kind.
-SIGMUND FREUD, The “Uncanny” (1919)

strangers

Creating a series of simple cubes to reflect upon relationships requires understanding how subjectivity influences interaction. Furthermore for the individual to understand themselves within this context, creating a representation becomes a requirement. Each cube was meant to measure and calibrate its color to an individual. Once those cubes touched each other they would reflect within themselves the facet being shared with the other.

The project is still in research phases. Three methods are being tested in conjunction here, and for the midterm I tried to test the Digital Representation, i.e. via Node and Arduino. The connection has been successfully made and the web side works. The microcontroller also works with an RGB LED to reflect the equipped colors and create the change; however the current challenge is having the Arduino parse information from the web as integers. The following is the code I developed in order to have the information parsed correctly:

const int redPin = 11;
const int greenPin = 10;
const int bluePin = 9;

int color;
int index;

int r=255;
int g=255;
int b=255;

String inputString = “”;

void setup()
{
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
Serial.begin(9600);
setColor(r, g, b);
}

void loop()
{

if (Serial.available() > 0) {
char incomingByte = (char)Serial.read();
inputString +=incomingByte;
int split;
Serial.println(inputString);

do {
split = inputString.indexOf(‘:’);
if(split !=-1){

String strTemp =inputString.substring(0,split);
char strValue[3];

strTemp.toCharArray(strValue, 3);
color = atoi(strValue);
Serial.println(color);
}
else {
if (inputString.length() > 0);

String strTemp =inputString.substring(0,split);
char strValue[3];

strTemp.toCharArray(strValue, 3);
index = atoi(strValue);
Serial.println(index);
}
}
while(split>=0);
if (color==0){
r=(int) index;
}

if (color==1){
g=(int) index;
}

if (color==2){
b=(int) index;
}

setColor(r, g, b);

}
}

void setColor(int red, int green, int blue)
{
analogWrite(redPin, 255-red);
analogWrite(greenPin, 255-green);
analogWrite(bluePin, 255-blue);
}

In this code the incoming string is initially deconstructed to a char and then re-strung together into a sting to extract the three int values for the RGB LED. It is important to note that incoming strings must be deconstructed to be read by the microcontroller, also that is chars cannot be converted into int values so the char values must be restrung to create the int values.

After some additionally research I was able to find a JSON library for the Ardunio, however it has limitations and I am currently working on testing how much JSON data and, what integrated level, the microcontroller can handle.

683 thoughts on “MidTerm Cont’d Research: Strangers^3

  1. Pingback: couples dare sex games

  2. Simone

    Hola! I’ve been following your web site for some time now and finally got the courage to
    go ahead and give you a shout out from Atascocita Tx!
    Just wanted to mention keep up the excellent work!

  3. Verna

    Hi my friend! I wish to say that this article is amazing, great written and
    come with approximately all significant infos.
    I’d like to peer more posts like this .

  4. Katrin

    Ahaa, its pleasant conversation about this article here at this website, I have read all that, so now me
    also commenting here.

  5. Terese

    First off I want to say wonderful blog! I had a quick question in which I’d like to ask if you don’t mind.

    I was curious to know how you center yourself and clear your thoughts before writing.
    I have had difficulty clearing my thoughts in getting my thoughts out there.

    I do enjoy writing but it just seems like the first 10 to 15 minutes are wasted simply just trying to figure out how to begin. Any recommendations
    or hints? Cheers!

  6. Florence

    Thank you for sharing your thoughts. I truly appreciate your
    efforts and I am waiting for your next write ups thank you once again.

  7. Stanton

    That is a great tip especially to those new to the blogosphere.
    Brief but very precise information… Many thanks for sharing this one.
    A must read article!

  8. Deanna

    Hello it’s me, I am also visiting this website regularly,
    this web page is really nice and the viewers
    are really sharing fastidious thoughts.

  9. Emanuel

    Excellent beat ! I would like to apprentice while you amend your
    website, how can i subscribe for a blog website?
    The account helped me a acceptable deal. I had been tiny bit acquainted of this
    your broadcast offered bright clear concept

  10. Beryl

    Piece of writing writing is also a excitement, if you know
    afterward you can write if not it is complicated to write.

  11. Numbers

    Woah! I’m really enjoying the template/theme of this
    website. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between usability and visual
    appeal. I must say you’ve done a great job with this.
    Additionally, the blog loads super fast for
    me on Chrome. Outstanding Blog!

  12. Jill

    I am not positive where you’re getting your info, however good topic.
    I needs to spend some time learning more or working out more.

    Thank you for great info I was looking for this information for my mission.

  13. Shawn

    Since the admin of this site is working, no uncertainty very
    quickly it will be famous, due to its feature contents.

  14. Pingback: bahis siteleri

  15. Pingback: 3retailer

Leave a Reply

Your email address will not be published.