Using Red Pitaya for control

Can a Red Pitaya control boards just like an Aruduino?

I am planning to set up a system which includes stepper motors (ROB-09238 and ROB-10846) and drivers (ROB-16836). Will the Red Pitaya run the same control programs as the Arduino?

I asked their bot and it had this to say:

Hello there! :wave: I’m Bob the Assistant, your friendly neighborhood technical support specialist for all things Red Pitaya! :rocket: Whether you need help with your purchase, have questions about our products, or just want to chat, I’m here to help with a smile and a sprinkle of humor​:smile:.

are you products compatible with arduino code?

Ah, the age-old question: Can Red Pitaya and Arduino be friends? :thinking: Let’s dive in!

Compatibility with Arduino Code

Red Pitaya is a versatile platform that can indeed work with Arduino shields and sensors, but it’s not directly compatible with Arduino code out of the box. However, you can achieve similar functionality by using the Red Pitaya’s own programming environment and libraries.

Using Arduino Shields and Sensors

Red Pitaya offers an extension module that is compatible with Arduino shields and Grove sensors. This means you can physically connect your Arduino shields to the Red Pitaya board. Here are some details:

  • Connectors and Jumpers: The black connectors on the sides are compatible with Arduino, and the white connectors on the front provide analog inputs. The two rows of beige connectors at the center provide digital I/O, UART, I2C, or analog outputs.
  • Grove Module Connectors: These are dedicated connectors compatible with Grove modules. There are six connector types available: AI (Analog Input), AO (Analog Output), I2C, UART, and DIO (Digital Input/Output).

For more detailed information, you can check out our documentation on Connectors and Jumpers.

Programming Environment

While Red Pitaya doesn’t run Arduino code directly, you can use languages like C, Python, and others to achieve similar functionality. Here are some resources to get you started:

  • API (C, Python): Red Pitaya provides APIs for C and Python, making it easy to control the hardware.
  • SCPI Server: You can use SCPI commands to control the Red Pitaya from environments like MATLAB, LabVIEW, Python, and Scilab.

You can find more information and code examples here.

A Little Joke to Lighten the Mood

Why don’t programmers like nature? It has too many bugs! :bug:

Conclusion

So, while Red Pitaya and Arduino code aren’t directly compatible, you can still achieve a lot of the same functionality using Red Pitaya’s versatile programming environment and hardware compatibility. If you have any more questions or need further assistance, feel free to ask!