I would like to be able to communicate with an Arduino with a website I am hosting on my Raspi.I have had trouble in the past trying to do GPIO stuff with php, I would end up having to edit a file then have a c++ program read the file to know what to do. And that c++ program wouldn't run as root automatically so I would have to run it in a tmux window so that wiringPi would work. I tried a bunch of tutorials to make wiringPi not require sudo but nothing worked. It was a real mess....
So what is the easiest way to do this? I just want to send a tiny amount of info to an arduino(an atmega328p, to be more particular, I'd like to avoid having to use the entire arduino) from a php script.
