Completed

Fix build Arduino Sketch for 2 Ranging Module + LAN

Hi,

I habe 2 Ranging Modules (Ranging Module HC - SR04) connected to the arduino UNO REV3.

I have a script checking the distance to an object:

long laenge;

long cm;

void setup ()

{

[url removed, login to view](9600);

}

void loop ()

{

pinMode(8,OUTPUT);

pinMode(4, OUTPUT);

pinMode(9,INPUT);

digitalWrite(8,LOW);

delayMicroseconds(2);

digitalWrite(8,HIGH);

delayMicroseconds(5);

digitalWrite(8,HIGH);

laenge = pulseIn(9,HIGH);

cm = (laenge*34)/2000;

if (cm < 10) {

[url removed, login to view]("Goal!");

digitalWrite(4, HIGH);

delay(2000);

digitalWrite(4, LOW);

[url removed, login to view]("Ready for next...");

}

delay(100);

}

As soon the distance is less than 10 cm it prints a signal to serial port and LED (Pin4) is HIGH.

Now I want to build a sketch sending a get request to a webserver a soon there is a GOAL (means less than 10cm on Range Module A (Home) or B (Visitor)) using the LAN Module:

[url removed, login to view]

I think the script also needs some functions to hold / ensure the connection. Can you help me building the script?

Fähigkeiten: Arduino

Mehr darüber get arduino, sketch, sketch to, hc-sr04, build a action, Arduino, arduino sketch, arduino 4*4, arduino com, com arduino, arduino arduino, http arduino, delay fix, arduino help, arduino http request, input arduino server, sketch arduino, serial arduino, arduino http, arduino module

Über den Arbeitgeber:
( 28 Bewertungen ) Berlin, Germany

Projekt-ID: #5385195

Vergeben an:

amankaushal90

Hi , I am an expert with Arduino. I have already done this and your work will be completed on time with quality guaranteed. Would like to discuss more with you. Please feel free to contact me by sending a private messa Mehr

$40 USD in 1 Tag
(0 Bewertungen)
0.0