Controlling a PC usingControlling a PC using
ArduinoArduino
Michael BomanMichael Boman
The componentsThe components
Arduino Development BoardArduino Development Board
Arduino Ethernet ShieldArduino Ethernet Shield
Arduino Relay ShieldArduino Relay Shield
Code: REST serverCode: REST server
Arduino DevelopmentArduino Development
BoardBoard
Arduino Ethernet ShieldArduino Ethernet Shield
Arduino Relay ShieldArduino Relay Shield
How does a relay work?How does a relay work?
CodeCode
FunctionsFunctions
void setup()void setup()
void send404(EthernetClient client)void send404(EthernetClient client)
void sendStatus(EthernetClient client, char *variable, charvoid sendStatus(EthernetClient client, char *variable, char
*value)*value)
char** parse(char* str)char** parse(char* str)
void reboot(int relay)void reboot(int relay)
void handleCommand(EthernetClient client, char* cmd,void handleCommand(EthernetClient client, char* cmd,
char* param)char* param)
int countSegments(char* str)int countSegments(char* str)
void loop()void loop()
Testing CodeTesting Code
Uploading CodeUploading Code
Monitoring ExecutionMonitoring Execution
FutureFuture
RS232 Interface / Telnet ServerRS232 Interface / Telnet Server
FutureFuture
Temperature monitoringTemperature monitoring
Combined Relay/TempCombined Relay/Temp
Questions and AnswersQuestions and Answers
michael@michaelboman.orgmichael@michaelboman.org
@mboman@mboman

44CON 2013 - Controlling a PC using Arduino