Connecting Arduino Ethernet Shield and reading data issue
in
Integration and Hardware
•
5 months ago
Hi to all, i am new to this forum and the whole thing with processing.
I have a specific question to ask:
How can i connect my arduino with ethernet shield, getting temperature values from a sensor so they can be seen to a processing script?
In Arduino script, one gets the value, connects from the ethernet shield to a server and does what one likes.
In my case i want Arduino to just run the script of reading an analog input value from the sensor.
Is it possible?
I have made the serial connection work and read the values alright through the usb, but with ethernet shield? How can i get the value that arduino reads WITHOUT USB/Serial connection?
ps. i am using WAMP server etc, Windows 7
ps2. the code i want on arduino can be that simple and i just want temp to be available for use on a processing script without usb connection, only ethernet:
I have a specific question to ask:
How can i connect my arduino with ethernet shield, getting temperature values from a sensor so they can be seen to a processing script?
In Arduino script, one gets the value, connects from the ethernet shield to a server and does what one likes.
In my case i want Arduino to just run the script of reading an analog input value from the sensor.
Is it possible?
I have made the serial connection work and read the values alright through the usb, but with ethernet shield? How can i get the value that arduino reads WITHOUT USB/Serial connection?
ps. i am using WAMP server etc, Windows 7
ps2. the code i want on arduino can be that simple and i just want temp to be available for use on a processing script without usb connection, only ethernet:
- int inPin = 2;
- float temp;
- void setup() {
- Serial.begin(9600);
- }
- void loop() {
- temp = ( analogRead(0) * 500.00) / 1024.00;
- Serial.println(temp);
- delay(1000);
- }
1