I'm a student and i have a project to do for my baccalaureate.
My issue is to detect a person in a room with an ultrasonic sensor and return a value if there is someone to the RaspberryPi 2, to detect with an infrared sensor the position of a shutter, if there is in high, middle or low position and return a value to the microcontroller, and the mount or get down the shutter according to the value of another sensor, but this sensor is not my part.
My problem is with WiringPi, the Raspberry can't compile my program.
This is my program :
The variable IN1 and IN2 are to run the motor in one direction or the other. The variable infrared is for the infrared sensor and is the GPIO 11 of the Raspberry. lux is a variable whose is not in my issue.
To run my ultrasonic sensor need a pulse of 10uS by my microcontroller. Before the sensor if there is an object, send the GPIO 13 at 1.
The ultrasonic sensor and the infrared sensor are in bang-bang control.
This is the screenshot of my problem :
Can you help me please ?
Thanks for reading.