Dear All,
I am doing a project for a donation to a hospital for their queue management system. Hospital guys wanted me to create 3 digit LED segments Display which is controllable via PC. What they required from me was to make them 3 digit Segments controllable via PC through network. I have made a demo but its not controllable via PC, at the moment, my arduino can just display the required numbers on segments.
I want to give them a URL as follows:
"http://192.168.1.150/segment1,segment2,segment3"
They can replace segmentx in their software to display the required number.
I have written the following code:
#define LATCH 2
#define CLK 4
#define DATA 8
byte digitOne[10]= {192, 249, 164, 176, 153, 146, 130, 248, 128, 152};
byte digitTwo[10]= {192, 249, 164, 176, 153, 146, 130, 248, 128, 152};
byte digitThree[10]= {192, 249, 164, 176, 153, 146, 130, 248, 128, 152};
void setup(){
pinMode(LATCH, OUTPUT);
pinMode(CLK, OUTPUT);
pinMode(DATA, OUTPUT);
}
void loop(){
d1(6,0,0);
}
void d1(byte x,byte y, byte z){
digitalWrite(LATCH, LOW);
shiftOut(DATA, CLK, MSBFIRST, digitThree[x]); // digitThree
shiftOut(DATA, CLK, MSBFIRST, digitTwo[y]); // digitTwo
shiftOut(DATA, CLK, MSBFIRST, digitOne[z]); // digitOne
digitalWrite(LATCH, HIGH);
delay(500);
}
The hardware job is done but im stuck with this URL thing, dont know how to do that. Can anyone help?
Regards,
Safiullah