Fix build Arduino Sketch for 2 Ranging Module + LAN
Budget $30-250 USD
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?
Vergeben an:
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