Step 3Processing
Processing first calls the web scraping PHP script which then updates the hex color text file. Processing grabs the text file and spits the color value to the serial port where the Arduino is listening. This is repeated every 15 minutes.
First, after plugging in your Arduino, find out which port your system assigned to it. In Windows, this is found in Control Panel/ System/ Hardware/ Device Manager/ Ports. Mine was COM13. Change the portstr command on line 7 of the Processing script to match that port.
Next, Set the urlstr variable in the 9th line to the URL of the text file output by the PHP script. Then set the urlstr2 variable in the following line to the URL of your PHP script.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|














































