Raspberry pi and Arduino communication
Posted: Fri Nov 18, 2016 5:47 am
Hello,
(I am new to forum and i hope to be in the right section)
I wanna make a two wheeled self balancing robot with object tracking following using arduino for the balancing part and raspberry pi for the object tracking.
I want from the arduino to maintain balance when the robot lean (using the motors to move forward or backward to stay in 90 degrees) and at the same time the raspbery pi to move the robot back,forth,left,or right wherever the object is. (every microcontroller will have its own code)
Can I achieve that using the arduino as slave of the raspberry pi with serial or i2c communication? And if yes will the motors be controlled by arduino and raspberry pi simultaneously so it can be balanced and move wherever the object is at the same time?
Please tell me if that way is right. If anyone has an other way to suggest would be helpfull.(sorry for bad english) Thank u!!!
(I am new to forum and i hope to be in the right section)
I wanna make a two wheeled self balancing robot with object tracking following using arduino for the balancing part and raspberry pi for the object tracking.
I want from the arduino to maintain balance when the robot lean (using the motors to move forward or backward to stay in 90 degrees) and at the same time the raspbery pi to move the robot back,forth,left,or right wherever the object is. (every microcontroller will have its own code)
Can I achieve that using the arduino as slave of the raspberry pi with serial or i2c communication? And if yes will the motors be controlled by arduino and raspberry pi simultaneously so it can be balanced and move wherever the object is at the same time?
Please tell me if that way is right. If anyone has an other way to suggest would be helpfull.(sorry for bad english) Thank u!!!