Wednesday, April 18, 2018

Final Stuff

/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

int RECV_PIN = 11;

IRrecv irrecv(RECV_PIN);

decode_results results;
//This is the global varieables for neopixel
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
  #include <avr/power.h>
#endif

#define PIN 6


Adafruit_NeoPixel strip = Adafruit_NeoPixel(55, PIN, NEO_GRB + NEO_KHZ800);
//close for globel variables for neopixel


void setup()
{
  Serial.begin(9600);
  // In case the interrupt driver crashes on setup, give a clue
  // to the user what's going on.
  Serial.println("Enabling IRin");
  irrecv.enableIRIn(); // Start the receiver
  Serial.println("Enabled IRin");
  // set up for neopixel
    #if defined (__AVR_ATtiny85__)
    if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
  #endif
  // End of trinket special code


  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
    
    String code = String(results.value, HEX);
Serial.println(" this is the teh constructed string " + code);
  if(code=="c1aafc03"){
   colorWipe(strip.Color(255, 0, 0), 50); // Red
    }
    else if(code=="c1aac23d") {
      colorWipe(strip.Color(255, 255, 0), 50);
      }
    else{
      colorWipe(strip.Color(0,255, 0), 50); // green}
}
  }
  delay(300);
  

}
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
    strip.setPixelColor(i, c);
    strip.show();
    delay(wait);
  }
}

This is the code used to make the controller read red, yellow, and green on the strip. Plan is to make the strip light up with my own controller and to open up the controller and reuse the buttons in form of a wand. Giving 5 strands of LED to Olivia for free because she is really nice. So now I have 55 strands of neopixel LEDs instead of 60.

Monday, April 2, 2018

Week 14

For the project I am unfortunately having to wait for my products to come in, however it is coming in on Thursday, so I will be able to start fresh with it on Monday.

Monday, March 26, 2018

Week 13

Write out what I need for this project.
Look for IR receiver first

Cybernetics

Homeostasis

Happening in about 7 or 8 in your own body. It will go up and down based on its needs.

creating philosophical understandings of what is around us. Body vs the soul. Neri Oxman makes and works with making biological technology to attach to our body.

Marshall McLuhan - how the medium is also what you talk about. Medium is the message. He recognizes the symbolism is totally evolving.

Opaque technologies and their transparencies

transparent technology is seamless. Writing stylus, hammer... ect.

opaque technology needs time and energy to discover. 


Monday, March 19, 2018

Week 12 (presentation idea)

An idea that I have had is to make a hand mouse. I have seen this idea presented and actually sold, so it is not an original idea like I had hoped, however I want to present my idea with an extra feature I have yet seen added by these patents. Probably because it is a horrible one, but I will see.


This was created by a company called AirMouse that has, as you can see, the sensor on the palm of the hand, the pointer is the left click, and the middle finger is the right click. 

"The wireless mouse utilizes an optical laser, and can run for a week without recharging. According to the company website, the clinically-tested product works by aligning itself with the ligaments of your hand and wrist. This lets you keep your hand in a neutral position, and transmits more of your vector force than would be possible with a regular mouse. Not only does this make it easier on your hand, but it increases your mousing speed and accuracy as well. The mouse is also designed to remain inactive until your hand is placed in a neutral, flat position, so you can easily go back and forth between typing and mousing. Other ergonomic designs have strayed from the AirMouse’s style of traditional flat, one-dimensional mousing, but Mark and Oren’s market research indicated that consumers tend to reject such products." - newatlas.com 

So something I would like to do really is include a scrolling feature. I have two ideas on how I want to do this. I either want to use the ring finger as the scroll button, or I put a scroll wheel on the side of my pointer finger facing the thumb and have my thumb scrolling on the wheel. The wheel is my plan a action, and if it looks silly on sketch, my plan b is to make my ring finger the scroll button. Another reason why I want to do the scroll wheel is because I have not seen it being done before.

Another plan I really have is to make this wheel easier and more safe for designers to use while they are on a program that utilizes a lot of control with a mouse. Something else I also really want to do with this design is put the laser sensor on the meaty part of the thumb instead of the top palm of the hand.

I may have to set my ambitions a little smaller with this project. I would just love to see this product aim for artists.

https://www.youtube.com/watch?v=M2xqMZ6b85w

So this is William Osmond, who turned a friends self built vehicle as a mouse itself, built with an arduino.

Another idea I would also like to play around with is using your finger as a wacom tablet pen tool. either for left hand or right hand.

I understand it isn't gonna look as clean as AirMouse and more like this probably

excellerometer

instead of just hand do the whole body. Want to think of a design for full body

Wednesday we had the critique and here is the code that I had used with my laser module

//www.elegoo.com
//2016.06.13
int pos = 0; 
void setup() {
  pinMode(9,OUTPUT);
}
void loop() {
  for (pos = 0; pos <= 255; pos += 1)
  {
    analogWrite(9,pos);           
    delay(25);                     
  }
  for (pos = 255; pos >= 0; pos -= 1)
  {
    analogWrite(9,pos);           
    delay(25);                   
  }
}

Wednesday, March 7, 2018

week 10

Helping with parts and ordering them for the final project.

3 categories:

1. Cheaper materials, but longer to ship. Less selection - MPJA.com, Electronix Express, Altronics

2. A lot of kits and materials. Amazing for products, sample codes, shipping cost is more - adafruit.com and sparkfun electronics.

3. Best selection in the industry and better shipping. More expensive. - newark.com/element14, mouser.com, jameco.com.

Pay attention to the price of the object, if it is super cheap you may be needing to watch how long it ships.

Make a presentation for the wearable final project.

Show how to play with code in arduino and how to put two items together

keeping things organized in that pattern. Add things together in those three sections. Be aware of what pins am I using in my sketch. Can't have both sensor be an input and an output.

Idea I just had. Mouse glove. pointer finger will be left click, middle finger will be right click.
Not the first to think of this but the designs I am seeing are inspiring. third finger scroll up and down.

Monday, March 5, 2018

Week 9

https://www.instructables.com/id/Make-a-Wooden-8-bit-Pixel-Link-the-Legend-of-Zelda/
Good one ^^^ She tells what she's doing, what she's made, how she's made it.

https://www.instructables.com/id/How-To-Make-A-Kawaii-Banana/
Bad one... It's not cute. Pictures are fuzzy, too little instructions.

https://www.instructables.com/id/DIY-Mardi-Gras-Parachord-Wig/
I understand he's a kid. However the blurry photos should say enough. This one is the ugly.

Wednesday, February 28, 2018

Week 8

2/28/18: Identify three instructables on instructables.com and see which one was good, bad, and ugly.

Get the avoidance sensor. Thinking about getting a mirror, sticking two red LEDs where someone's eyes would be when they look into the mirror. Avoidance sensor tells when someone is near by. Gotta do research of how far the avoidance sensor reaches. If maybe not a mirror, maybe a painting?