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!
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.