ayishahiba-blog
ayishahiba-blog
ayisha
85 posts
Don't wanna be here? Send us removal request.
ayishahiba-blog · 6 years ago
Photo
Tumblr media
FINAL PROJECT
TINKERCAD + CODE
This is the code and wirings for our robopet .it includes an Arduino, breadboard ultrasonic sensor and a servo.
#include <HCSR04.h> #include <VarSpeedServo.h>                //Library for to run a servo with different speeds VarSpeedServo myservo;                    // create servo object to control a servo
HCSR04 ultrasonicSensor(12, 13, 22,200);  //set pins of distance sensor (trigger, echo, room temperature, maximum distance) const int power = 11;                     //declare variable power with value 11 (to be used as pin) const int trigPin = 12; const int echoPin = 13;
void setup()  {
 Serial.begin(9600);  pinMode(power, OUTPUT);                 //set pin 11 as an output (so we power our sensor)  pinMode(trigPin, OUTPUT);               // Sets the trigPin as an Output  pinMode(echoPin, INPUT);                // Sets the echoPin as an Input  ultrasonicSensor.begin();               //sets trigger as output & echo pin as input
 myservo.attach(10);                     // attaches the servo on pin 10 to the servo object  myservo.write(180, 40, true);         //set servo to 180 degrees at the speed of 50
}
void loop() {
   long duration, inches, ServoAngle, ServoSpeed;    ServoAngle=180;    ServoSpeed=100;
   delayMicroseconds(2);    digitalWrite(trigPin, HIGH);    delayMicroseconds(10);    digitalWrite(trigPin, LOW);
     duration = pulseIn(echoPin, HIGH);      inches = microsecondsToInches(duration);      if (inches != 0) {        ServoAngle=180/inches;        ServoSpeed=1000/inches;      }      Serial.print(inches);      Serial.print("in,   :");      Serial.print(ServoAngle);      Serial.print("Degree,   ");      Serial.print(ServoSpeed);      Serial.print("RPM,   ");      Serial.println();      myservo.write(ServoAngle, ServoSpeed, true); }
long microsecondsToInches(long microseconds) {  return microseconds / 74 / 2; }
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
FINAL PROJECT
FINAL RESULT
This is the final result of our robopet butterfly and we are so proud how it turns out to be. This picture shows the different angles of the Robopet. The robopet works with ultrasonic sensor, as the person goes near to the pet it starts moving faster and when the person moves away from it starts slowing down its movement.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
FINAL PROJECT
PROCESS
We had gone through different trial and errors during our process. We wanted our robopet butterfly to be abstract pretty. So we tried different shapes that we could give to it and tested it on the rhino. After coming to the conclusion we laser cut it and made the scissors to make it move up and down. Then we started attaching all the parts to it and formed the final shape.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK 10- FINAL PROJECT
INSPIRATION
When we were first introduced to the brief of having to create an artificial zoo, we were confused.  Until one day when I was doing research, I came across this beautiful image of a butterfly. I saw this beautiful multicoloured creature and I was completely fascinated. I know when one thinks off creating an artificial pet the word butterfly doesn’t come to mind but for me, these creatures are so majestic. And when given the brief we had to also think of things that our pet would be able to do or in ways it would be able to react to certain surrounds and one of the first ideas that came to mind where ‘why not create a butterfly that could change colors according to one's mood.’ Have this petite artificial butterfly change colors according to one's mood.
1 note · View note
ayishahiba-blog · 6 years ago
Photo
Tumblr media
#include <HCSR04.h> #include <VarSpeedServo.h>      //Library for to run a servo with different speeds
//connect pin S on your sensor to A5 //connect middle pin to 5v //connect (-) pin to gnd //connect short led leg to pin gnd on arduino //connect long led leg to pin 11
// declaring variables     int sensorPin = A5;                    //declare variable sensorPin with the value A5 where we read the sensor           int lightIntensity;                    //declare variable angle int lightSensor;                       //declare variable lightSensor int ledPin = 13;  //declare variable ledPin assign it the value 11 pin where we insert the led VarSpeedServo myservo;          // create servo object to control a servo
void setup() {  pinMode(sensorPin, INPUT);            //set sensorPin as input to receive values  pinMode(ledPin, OUTPUT);              //set led pin as output to power up the led  Serial.begin(9600);                   //initialize serial port to read sensor values  myservo.attach(10);                   // attaches the servo on pin 10 to the servo object  myservo.write(180, 50, true);         //set servo to 180 degrees at the speed of 50 }
void loop() {  lightSensor = analogRead(sensorPin);                  //assign value coming from sensorPin (A5) to the variable lightSensor  lightIntensity = map(lightSensor, 0, 900 , 0, 180);   //map and assign to variable angle the sensor value which is 0 to 900, to a value from 0 to 180  if (lightSensor > 300)
 {    Serial.println(lightIntensity);                       //print angle value to serial port    analogWrite(ledPin, lightIntensity);                  //write mapped sensor value to ledPin (11) hence decide it's in    Serial.print(lightIntensity);        myservo.write(160, 100, true); //turn servo to 160 degrees and the speed of 50    delay(300);                  //wait 1.2 seconds    myservo.write(10, 200, true);  //turn servo to 10 degrees and the speed of 50    delay(200);                  //wait 1.2 seconds  }  delay (00); }
This is the code for the sheikha bot with Arduino wiring
0 notes
ayishahiba-blog · 6 years ago
Video
tumblr
WEEK 9-SHEIKHA BOT
This week I used the scissors and attached it to our Sheikhabot.  I then used the code with light sensors to test the sheikha bot. It started moving when their light went off and stopped when the light is on.The main element in the code was the light sensor.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media Tumblr media Tumblr media Tumblr media
WEEK-8-LINKAGES
This week we explore scissors systems and were assigned curves to explore. I was assigned curve A, U, D
We saw a tutorial which helped us teaching ourselves how to change curves to scissors. We had to divide the curves into segments, explode and ungroup it and begin working on it. Some of took soo long in doing it and after formed our scissors we had to laser cut them in cardboard first to experiment and after on acrylic 
This was then joined together using screws and bolts to match its profile done on the rhino. then we had to digitalize it which is the above shown as.
1 note · View note
ayishahiba-blog · 6 years ago
Photo
Tumblr media Tumblr media
EXPLORING PROCESSING
I am starting to understand more of coding everyday.this is the second phase of my semester one project,
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media Tumblr media
WEEK-7-EXPLORING CODING
As I am exploring coding I started experimenting with my first-semester project by creating lines from a certain point. I also experimented on how I could create less and more lines using code and using colors but found that using minimal is the best. I will be sure, by exploring more.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media Tumblr media
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media Tumblr media
WEEK 7-EXPLORING CODING
Processing is an open-source graphical library builts for the generative arts, games, and visual design. it uses the Java language. This week we experimented with codes and processing to create AR games with AR markers and patterns. I have started from the basics as I am new to coding. I am learning to different colors and patterns and understanding the foundation of coding.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK-6MAKING OF BIOP-PLASTIC
RECIPE-5
6tsp-water
0.5tsp-coffee
3tsp-glycerin
5tsp-powder  ilk
1/2tsp-starch
It was too liquid in the first hour and started drying, but was in a liquid state.
1 note · View note
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK-6-MAKING OF BIO-PLASTIC
RECIPE-4
4tsp-water
4tsp-gelatin
2.5tsp-starch
0.5tsp-glycerin
In the first stage I could see it becoming gummy, then hardening, it was a rubberish type of feel I could get.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK-6-MAKING OF BIO-PLASTIC
RECIPE
2tsp-starch
2tsp-glycerin
3tsp-water
food color
In the first stage, it was too gummy, after an hour it started hardening. I couldn't see the shrinking of bio-plastic in this recipe. the final result is that it too gummi.
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK-6-MAKING OF BIOPLASTIC
RECIPE-2
5tsp-water
2tsp-vinegar
0.5 tsp -glycerine
1/2tspstarch
food color
In the first stage, the texture was kind of sticky, then started hardening, at the final I could see the bioplastic shrinking and it was too hard
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
WEEK-6- MAKING OF BIO-PLASTIC
RECIPE -1
1tsp-vinegar
1tsp-glycerin
3tsp-water
1 tsp -starch
At first, the texture was smooth and had a bad odor, after 1 hr it started hardening and at last the texture becoming hard and I could also find a reduction in its size
0 notes
ayishahiba-blog · 6 years ago
Photo
Tumblr media
CNC and Laser Cutting 
After configuring the surface on rhino and grasshopper , we sent the file to the laser cutting machine were after a few hours  it was printed. We then numbered each pices . After labelling and putting the pieces in order , we then went onto assembling the surface - group by group. The CNC is the surface after it was programmed using a highly contrasted black and white image it was then baked . 
0 notes