Raspberry Pi and Arduino platforms

Hey guys!!! Can I use raspberry pi AND arduino AS ONE PLATFORM with arduino IDE???
For example , if I have one led connected to raspberry pi and one motor connected to arduino platform,can I control them without problems ???
Can I connect raspberry pi and arduino via USB and then all is ok??

Thank you ! :slight_smile:

No, you can't. Why do you think this would work?

you can make them communicate with each other over serial, I2C or SPI. if you have some information to share between them, you can coordinate their efforts. search for "raspberry pi connect to Arduino"

This simple Python - Arduino demo may help get you started

...R

if I have a temperature sensor connected to arduino platform and I want to receive data from arduino platform to raspberry pi (in raspberry pi I use arduino IDE) ,how can I receive the data?Which is the code to RECEIVE data? (I do not want to use python)
Ι 'm looking for code but nothing...

Thank you!!!

arduiNICK:
(I do not want to use python)

Curious. Python is the most common language on the RPi.

In any language you could write a program equivalent to my Python program.

...R

You cannot use the Arduino IDE to program the RaspberryPi, if that is what you are asking.

There actually is at least one hardware package to add support to the Arduino IDE for programming the Raspberry Pi:

I haven't ever tried it.

Arduino Create also can be used to program Raspberry Pi: