Is it possible to merge normal Arduino code and MegaPi code?
My classmates made a project where we primarily use Arduino code but we’re going to use the clamp from the ultimate 2.0 but we already have a code for the wheels and ultrasonic sensor using ArduinoUNO. Now the goal is that we have to connect the coding from the ultrasonic sensor to the clamp so it can pick up something and drop it after it turns around.
So like
Ultrasonic sensor senses an obstacle (typically trash)
DC motors stop and clamp arm goes down to pick up trash
Clamp picks up trash, turns around, and places trash in basket
Clamp goes back to initial position and repeats cycle
Was also meaning to ask, is it possible to make conditions for a DC motor since we’re gonna be using the turntable that was meant for the 3D motion capture bot.
I know this sounds confusing and I honestly am confused too because my classmates insist on doing this rather than go purely on MegaPi because we already blew so much money on Arduino products when they planned without me.