/arduPi

Librairies and sample codes for Raspberry Pi to Arduino Connection Bridge

Primary LanguageC++GNU General Public License v3.0GPL-3.0

arduPi

This projet merge all the known projects from Cooking Hacks for the "Raspberry Pi to Arduino Shields Connection Bridge".

Raspberry Pi to Arduino Shields Connection Bridge

The included release of the different packages are:

  • arduPi v2.4 (release for Raspberry Pi 2 and 3)
  • arduPi-api V1.8
  • 4G library and examples V1.3
  • CANbus library and examples V0.2
  • LoRa library and exemples V1.4
  • LoRaWAN library and examples V1.3
  • Sigfox library and examples V1.2
  • XBee examples V0.1

Note

To activate the shiled's socket, you need to activate GPIO 4 in OUT mode with the following commands:

sudo apt-get install wiringpi
gpio mode 4 OUT
gpio write 4 1
gpio readall

Then you can verify than GPIO 4 in configured as 1 and OUT. If you use the provided samples in the examples folder, you won't need to do this. It's done in the initialization process of the socket (socket.ON).

Usage

To compile and test the samples, you have to go to examples folder and in any subfolder, you just have:

$ ./cook.sh sample.cpp
$ sudo ./sample.cpp_exe