Hello.
I need help with some code...
I have 20 LEDs, witch I want to control via any wifi sheild (at a reasonable price) and an Arduino uno.
The Arduino has to be a Client, and the computer a Server.
This is because the Arduino will be connected to a WiFi connection that doesn't have a Port Forwarding function, while the PC will be connected to a diffrent WiFi that has that function.
I need 10 of theese LEDs to be controlled via a momentary button (holding "W" on the keyboard will light up the green LED, holding "S" will light up the blue one, when buttons released LEDs will shut down, etc.), 5 of theese to be toggleable (pressing number "1" once on the keyboard turns the LED on, pressing the same one turns it off, same with the rest four of them), and another 5 when toggled, they blink, when toggled again they stop.
I need this to have as least latency/delay as possible
What server should i use, what WiFi sheild, and most importantly, can someone provide the code?
I never had an arduino, and i am afraid to waste money if this is not possible.
Help would be very much appreciated .
(the LEDs are conected to the GND and the individual pins on the arduino)