This page (revision-5) was last changed on 2020-04-30 09:28 by Murray Altheim

This page was created on 2020-04-30 05:30 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
5 2020-04-30 09:28 3 KB Murray Altheim to previous
4 2020-04-30 08:47 3 KB Murray Altheim to previous | to last
3 2020-04-30 05:59 3 KB Murray Altheim to previous | to last
2 2020-04-30 05:55 3 KB Murray Altheim to previous | to last
1 2020-04-30 05:30 2 KB Murray Altheim to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 2 changed 2 lines
[Firmata]) between a [Raspberry Pi] and an [Arduino] microcontroller using a
__serial connection__. To see how to intercommunicate over I2C, see [Raspberry Pi to Arduino over I2C|RaspberryPiToArduinoOverI2C].
[Firmata]) between a [Raspberry Pi] and an [Arduino] microcontroller.
At line 20 changed 8 lines
In a nutshell, this is not too difficult:
# [install the Arduino IDE|https://www.arduino.cc/en/main/software], and set your IDE to the type of Arduino you have from the {{Tools:Board}} menu
# using the {{Tools:Manage Libraries...}} command, install "FirmataExpress" and Erick Simoes' "Ultrasonic" libraries
# open up the {{File:Examples:FirmataExpress:FirmataExpress}} sketch, and use {{Sketch:Upload}} to upload the
FirmataExpress sketch to your Arduino
Then your Raspberry Pi can communicate with it using Python scripts, an example of which is shown below.
In a nutshell, once you've [installed the Arduino IDE|https://www.arduino.cc/en/main/software], using the {{Tools:Manage Libraries...}}
command you install "FirmataExpress" and Erick Simoes' "Ultrasonic" library. Then
open up the {{File:Examples:FirmataExpress:FirmataExpress}} sketch, set your IDE to the
type of Arduino you have with {{Tools:Board}}, then use {{Sketch:Upload}} to upload the
FirmataExpress sketch. Then your Raspberry Pi can communicate with it using Python
sketches, an example of which is shown below.
At line 107 removed one line
* [Arduino Uno/Nano/Mega as I2C Slave for an Raspberry Pi|https://forum.arduino.cc/index.php?topic=378528.0] (Arduino forum)