I had previously shared a video which talked about a robot which included both, a Raspberry Pi and an Arduino and was used to track a green ball. The robot used computer vision algorithms available with Simulink to detect and track the green ball. I came across a similar robot created by a colleague which is controlled by an Android app!
The robot runs on a Raspberry Pi and an Arduino Mega 2560. The Arduino Mega is used to control the individual motors of the robot, whereas the Raspberry Pi is used to communicate with the Android phone over wi-fi. The robot has a 4 motors (one for each wheel) and one servo motor connected to a webcam. The servo motor can be oriented from 0 to 180 degrees. The Raspberry Pi transmits video data to the Android device, and receives control signals from the phone. These signals are then passed onto the Arduino Mega which then drives the 4 motors and the servo motor.
The algorithms to program the Raspberry Pi and Arduino Mega were developed in Simulink and then deployed onto the microcontrollers using the ‘Run on Target Hardware’ option in Simulink. The project requires the use of Raspberry Pi support from Simulink, and Arduino Support from Simulink
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.