I want to control a Raspberry pi to control an arduino which is controlled by a webpage hosted by apache. I do not know how I would attempt this and if it is even possible. Can anyone please guide me in the right direction to do this. I want to press a button and it tells the pi to send an I2C signal to the Arduino to start the motor while the button is pressed.
Control rapsberry using PHP.
Use python to execute scripts over i2c
conenct i2c to arduino.
make all arduinos on i2c bus as slave mode to receive a fixed range of bytes.
use these byte data to interpret and pefrom action in arduino using C