Preview

Bvbvbvbvbvbv

Good Essays
Open Document
Open Document
280 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Bvbvbvbvbvbv
This is the code for the sending Arduino:

int Finger1 = 0; int Finger2 = 1; int Finger3 = 2; int Finger4 = 3; int Finger5 = 4;

void setup() { Serial.begin(9600); }

void loop() { byte servoValue1; byte servoValue2; byte servoValue3; byte servoValue4; byte servoValue5;

int FingerV1 = analogRead(Finger1); int FingerV2 = analogRead(Finger2); int FingerV3 = analogRead(Finger3); int FingerV4 = analogRead(Finger4); int FingerV5 = analogRead(Finger5);

if (FingerV1 < 200) FingerV1 = 200; else if (FingerV1 > 460) FingerV1 = 460; if (FingerV2 < 200) FingerV2 = 200; else if (FingerV2 > 460) FingerV2 = 460; if (FingerV3 < 200) FingerV3 = 200; else if (FingerV3 > 460) FingerV3 = 460; if (FingerV4 < 200) FingerV4 = 200; else if (FingerV4 > 460) FingerV4 = 460; if (FingerV5 < 200) FingerV5 = 200; else if (FingerV5 > 460) FingerV5 = 460;

byte servoVal1 = map(FingerV1,460, 200, 255, 0); byte servoVal2 = map(FingerV2,460, 200, 255, 0); byte servoVal3 = map(FingerV3,460, 200, 255, 0); byte servoVal4 = map(FingerV4,460, 200, 255, 0); byte servoVal5 = map(FingerV5,460, 200, 255, 0);

Serial.print(servoVal1); Serial.print(servoVal2); Serial.print(servoVal3); Serial.print(servoVal4); Serial.print(servoVal5);

delay(100); }

**Here is the receiving:**

#include

Servo myservo1; // create servo object to control a servo Servo myservo2; Servo myservo3; Servo myservo4; Servo myservo5;

void setup() { Serial.begin(9600);

myservo1.attach(2); // attaches the servo on pin 9 to the servo object myservo2.attach(3); myservo3.attach(4); myservo4.attach(5); myservo5.attach(6); }

void loop() { if(Serial.available() >=5) { byte servoAng1 = Serial.read(); byte

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Step 3: Complete the following pseudocode based on the algorithm and the variables you declared above.…

    • 777 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CEIS100 W5 ILab Report

    • 320 Words
    • 2 Pages

    Code—copy and paste (or type) your code below. You can also post a screenshot of the program working if you would like.…

    • 320 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Vbnvbhnbnbvnvb

    • 1442 Words
    • 6 Pages

    4. The unequal sharing of electrons within a water molecule makes the water molecule _____.…

    • 1442 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Rvrvev

    • 397 Words
    • 2 Pages

    8. Calcareous ooze is associated with ________ surface water conditions, and siliceous ooze is associated with ________ surface water conditions.…

    • 397 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    For the past 3 years, I have worked for a company called 2020 communications. This company has many different contracts with other companies like Verizon, T-Mobile, and other wireless providers. As a Territorial Manager I do not work for these global wireless companies, we manage the territories and make sure that the actual stores are selling the company’s products and services. 2020 Communications has a simple structure that consists of a single individual that runs the company. Under that individual there are 2 district managers and then there are territorial managers that work directly for the company. I am contracted to work for T-Mobile to manage 9 locations. In the company in which i work for they have a vertical organizational structure. The Thing that separates us from the cooperate locations is that we don’t have to worry about inventory and the stores themselves, we just focus on the sales in the stores and that’s all. We have one centralized headquarters in Dallas Texas, in which the CEO and the Human Resource team is located. As a company we don’t focus too much on the customer concerns and issues, that is the responsibility of the corporate stores. We tend to assist when we can to help the profit margin and the selling process of each location, but it is the job of the location and there management team to manage every other aspect of the company including inventory and the sales associates themselves.…

    • 1220 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Kjjkbjkbj

    • 517 Words
    • 3 Pages

    1. The narrator of “The Yellow Wallpaper” undergoes a profound change from the beginning of the story to the end. How is her change revealed in relation to her response to the wallpaper? How does she fell about the change? How do your feeling differ from the narrator’s?…

    • 517 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Beep, Vroom Vroom

    • 435 Words
    • 2 Pages

    As a potential teacher you should have the mindset and the ability to see outside of the box and incorporate such things in the classroom that you may not expect. Literacy and math together is a great way to teach students two crucial subjects in one lesson. A common way to do so is to integrate literature by using a trade book at the introduction or conclusion of a mathematical lesson.…

    • 435 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Dcvdvvc

    • 339 Words
    • 2 Pages

    DNA is the master copy of an organism’s gene. There is also the RNA which copies sections of the DNA molecule and carries the copies outside of the nucleus. DNA and RNA are different in ways. One way is that DNA is double stranded and RNA is single stranded. Another way is that DNA contains thymine and RNA contains nitrogenous base uracil.…

    • 339 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Jaavv

    • 612 Words
    • 3 Pages

    Skeeter specifically identifies with Boo Radley. "I've become one of those people who prowl around at night in their cars. God, I am the town's Boo Radley, just like in To Kill a Mockingbird" (27.101).After being fired from her position as editor of the Jackson Junior League newsletter, she's driving around upset. She knows she was…

    • 612 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    cxvxcv

    • 551 Words
    • 3 Pages

    Vancouver City Savings Credit Union (VanCity) was founded in 1946 and ... in financial institution sector comprising commercial banks, trust companies, brokerage houses, insurance companies, credit union and other types of financial intermediaries. .... Operational effectiveness is also another competitive advantage.…

    • 551 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Sophomores, Good Day !

    • 514 Words
    • 3 Pages

    6. With the use of a switch and a sentinel data value, draw a flowchart to print out all numbers that is…

    • 514 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    bhjbjh

    • 339 Words
    • 2 Pages

    Realism and Naturalism 1855-1918 Characteristics of Realism • Expression of life as it is actually lived. • Factual description of ordinary characters and events rather than larger-than-life heroes in imagined settings. • Subject matter often consists of factories, slums, workers, bosses, criminals, and social outcasts. • Regionalism or local color. Focus on dialect, customs, and characters of a particular region.…

    • 339 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    abc abc abc

    • 816 Words
    • 3 Pages

    so apparently I have to submit a document to get free access to this site so here's a copy and paste wiki entry of wallnuts…

    • 816 Words
    • 3 Pages
    Good Essays
  • Good Essays

    vhbvh

    • 546 Words
    • 2 Pages

    Ukraine sent armored vehicles and artillery to retake Slovyansk, a stronghold for pro-separatist forces, defying President Vladimir Putin’s demand to pull back troops with Russia’s army massed across the border.…

    • 546 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    fvvfvfvfvfvdfvf

    • 964 Words
    • 6 Pages

    Malunggay Powder, A Solution for Nutritional Diffeciencies I. Background of the study Health awareness is the prime investment, ingenuity is the investor’s joining effort, and wellness is the net gain. Most people think that adapting a healthy and well conditioned life is expensive and difficult...…

    • 964 Words
    • 6 Pages
    Satisfactory Essays