Combination of arduino code and raspberry pi code

Hello! Does anyone know how to combine programs from Arduino and Raspberry?

Thank you!

There are topics here, telling how to merge different codes. Please use the Search Forum function, up and to the right in this window.

1 Like

This makes no sense! Explain better what you want to do.

Sure!

Just use a text editor to take the relevant parts of each and combine them into one block of code that makes sense, obeys all the rules and does what you want.

Are they both written in the C/C++ language then you can combine simple trivial stuff. But for more complex code it is. It going to happen because of the different processors send signals to the outside world in totally different and incompatible ways.

If one is in Python and the other in C/C++ then forget it. One is an interpreted language and the other is compiled.

I might venture to say that you don't know what you want to do.

we have an Arduino code where voice control system and motor driver movement are placed. on the other hand, we also have a code in python where our lidar technology works.

Yes.

You want to run the Python code on a MCU? You can find MCU's that use a version of Python or you could port the code over from Python to C++. If you can program in C++ and Python porting is fairly straight forward.

use words like "microcontroller with python" to search on and you may find the thing.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.