Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [raspberrypi]

For questions about integrating the Arduino microcontroller with the single-board computer Raspberry Pi. Questions just about Raspberry Pi are off-topic but can be asked on Raspberry Pi Stack Exchange.

0
votes
0answers
18 views

Programming Arduino to dynamically connect pairs of Gertboard I/O pins together

The "Gertboard" requires several link wires to be connected between Pi GPIO inputs and outputs before different python or 'c' programs are run on the Pi. What "Arduino" code could you suggest I might ...
0
votes
0answers
15 views

Sleepmode for arduino [closed]

i have a project to done which is An arduino should send sensor data via bluetooth to raspberry pi so my quetion is, is it anyway to make the arduino bluetooth into sleepmode? because i want save ...
0
votes
0answers
16 views

Communicate with 2 Raspbarry Pi [closed]

I would like to know if it is possible to make an arduino (uno or mega) send information to 2 Raspberry Pi. It would be ideal to make it via the serial or i2c. Thanks in advance.
1
vote
0answers
33 views

Arduino Modbus slave error

I am trying to use Arduino as Modbus- RTU slave and Raspberry Pi as a Modbus master I have interfaced Max485 (RS485 to TTL converter) with Arduino and Rs485 to USB converter in Raspberry Pi, Initially,...
0
votes
1answer
23 views

Getting at the PS_ON pin on a RAMPS1.4 mounted to a Mega

Got it! Check end of post for solution. I'm running a Mega 2560 with a RAMPS 1.4 Shield which is usually used for 3D printing applications. For my use case I only want to get at the stepper motor ...
1
vote
3answers
88 views

Is arduino a single board computer? [closed]

First excuse me if tags are not reflecting the content, While watching a video about single board computer (SBC) I got confused that it doesn't mention arduino as SBC. I always considered it as SBC. ...
0
votes
3answers
71 views

Deploying an Arduino Uno R3 standalone [closed]

I have an Uno R3 with a sensor board and a temperature sensor. I'm running a simple temperature check and would like to store that data outside the Ardunio for keeping records, graphs, etc. I powered ...
0
votes
1answer
208 views

Using Waveshare Raspberry Pi TFT LCD with Arduino Uno

I have a 3.5 inch Waveshare Raspberry Pi TFT LCD which uses the XPT2046 Touch Controller. I want to use this LCD screen with my Arduino Uno. I originally believed something like this was impossible, ...
2
votes
1answer
166 views

How to connect an Elegoo Nano to a Raspberry Pi and program it?

I own an several Elegoo Nanos and a Raspberry Pi. I would like to connect an Elegoo Nano to the Pi and upload nanpy onto the board and control it's GPIO pins. I have plugged the nano into the Pi and ...
2
votes
1answer
447 views

Install Arduino IDE in Raspberry Pi 3 model B

I am trying to install Arduino IDE in my Raspberry Pi model 3 but it is unable to locate file path. I use the following steps sudo apt-get update && sudo apt-get install arduino and in ...
0
votes
1answer
86 views

How do I make Arduino IDE use a specific version of GCC in Debian?

Using Raspbian Stretch. I installed gcc-4.9 with specified version. Then I installed arduino (2.1.0.5) which in turn pulled gcc 4.6. When I try to compile Marlin in it, it says Marlin requires C++...
0
votes
0answers
35 views

Autonomous GPS navigation problems

I am trying to achieve autonomous GPS navigation on my RC car. I am using a very high quality GNSS/INS sensor (Advanced Navigation Spatial), from which I am getting lat, long and heading values. The ...
0
votes
0answers
26 views

Arduino reading string sent from Rpi multiple times

1.Reading strings sent from Arduino on RPI Below you can see that I am communicating between a rpi and arduino serially. I am sending "start", then move_played to the rpi. The readline() reads until ...
1
vote
1answer
519 views

MQTT over serial

I'm planning to build a 32 relay IOT node next to my Raspberry Pi. The relays will be controlled by an Arduino Mega 2560. The Pi will run Home Assistant and Mosquitto so I would prefer to communicate ...
0
votes
0answers
68 views

Arduno as bridge between two i2c masters

so I am gonna just jump right into the topic. Recently, I have been trying to build a project where I need to connect an ev3 to a raspberry pi. I have decided doing it by i2c after reading (and ...
0
votes
1answer
74 views

Arduino or Raspberry? Self Balancing robot

Here's another one, as you probably have seen before. I'm finishing college, and I'd like, base of my subscription to be a self balancing robot that can send data to a screen. What kind of data? I am ...
0
votes
1answer
271 views

How to configure location of preferences

I had been using Arduino 1.0.5 on my Pi, and in September last year downloaded arduino-1.8.4-linux32.tar.xz (which I have since updated). I have been successfully using 1.8.5, but just noticed it ...
1
vote
1answer
91 views

Why do you need to shift bits when reading from an analog sensor? [closed]

I was playing around with some analog grove sensors and looking at examples (https://github.com/DexterInd/GrovePi/blob/master/Software/Go/grovepi/grovepi.go - this specific example is in go and for ...
0
votes
1answer
75 views

Arduino - Raspberry Pi serial communication

I need to connect a Raspberry Pi and an Arduino Uno through serial communication and decided to follow this guide, which mentions the use of a voltage divider. I understand the connection to the ...
0
votes
1answer
106 views

Unable to get Arduino Ethernet Shield IP address connected to Raspberry

My Arduino Uno with Ethernet Shield is connected to a Raspberry (rasp1) and the Ethernet Shield is connected to another Raspberry (rasp2) by Ethernet cable; rasp2 has a private IP address (192.168.10....
1
vote
1answer
79 views

How to work with analog readings using RPi and Firmata?

For context: I'm working on a whose goal is to sense the environment. This process is done using an Arduino Uno and an RPi. The easiest way that I found to perform communication between both boards is ...
3
votes
1answer
196 views

Arduino --> RPI I2C issue

ok, I feel like this should be simple, but I am at a loss Simple code mock up to send 4 bytes(mimicking a float) over I2C from Arduino to rpi. I am trying to create a state machine so that I can ...
0
votes
1answer
1k views

Receive data using ESP8266

I have connected ESP8266 to my Raspberry Pi's WiFi network and assigned a static IP. My Arduino code #include "SoftwareSerial.h" String ssid = "Rpi"; String password = "raspberry"; SoftwareSerial ...
-3
votes
2answers
178 views

Why would anyone use Arduino in 2017? [closed]

Sorry for clickbait question but it really bugs me why Arduino is still a thing in the age of ARM based boards like Pine64, Raspberry Pi, Bannana Pi, Whatever Pi etc. I'm more or less aware of ...
7
votes
5answers
897 views

When Raspberry Pi is preferred over Arduino

We are doing some projects in class. One of my friends is doing a weather and humidity station using raspberry Pi with a couple of sensors and LCD. I have a little experience in Arduino. So I asked ...
0
votes
0answers
57 views

Compiling SRAM intensive code from Raspberry Pi 3

I am using an Arduino Uno R3 to control my Christmas lights (a strand of 665 WS2812B LEDs). I am using the Pololu library that can be found here: https://github.com/pololu/pololu-led-strip-arduino ...
0
votes
1answer
254 views

Getting wrong values from serial.read() connected to a Raspberry Pi

I set up a serial connection and sending integers from a Raspberry Pi to an Arduino. This is the Python code in my Raspberry Pi: import serial ser = serial.Serial('/dev/ttyACM2', 9600) ser.write(str(...
0
votes
0answers
151 views

Arduino SPI and I2C Combo [duplicate]

We are trying to communicate between 2 Arduino's (1 Nano and 1 Mega) and a Raspberry Pi. This communication works till we add an SPI Connection to our RFID Scanner (RC522). We ran into the problem ...
1
vote
2answers
2k views

Arduino I2C communication between Raspberry Pi

We are trying to communicate between multiple Arduino's (in this example a Nano and a Mega) and a Raspberry Pi. The Raspberry pi is defined as master and the Arduino's as slaves. We would also like ...
1
vote
2answers
839 views

Arduino & RPi communication via GPIO [closed]

so I'm working on communication between arduino and RPi via GPIO pin. It's basically connecting them by using a cable jumper. So I have a 2 channel relay shield attached to my arduino, and I've been ...
0
votes
0answers
450 views

Sending and receiving data using 433 Mhz from Arduino to Arduino

Following this tutorial: https://tutorials-raspberrypi.com/let-raspberry-pis-communicate-with-each-other-per-433mhz-wireless-signals/ I was able to easily send code from one Raspberry Pi Zero to ...
0
votes
1answer
370 views

Arduino UNO vs NANO or MICRO with RPi3

I'm currently using an Arduino UNO with a raspberry pi 3b. I'm using the USB connector for both power and comms, i.e. the arduino is powered by the RPI via the USB cable, and also i use the same cable ...
-1
votes
1answer
207 views

Unable to open arduino on raspberry pi3

Exception in thread "main" java.lang.ExceptionInInitializerError at processing.app.Preferences.save(Preferences.java:735) at processing.app.Preferences.init(Preferences.java:249) ...
1
vote
2answers
314 views

Differences between Arduino IDE versions

I run Arduino IDE on both my Mac and under Raspbian on a Raspberry Pi, both running the latest version of OS. The Raspberry Pi has Arduino 2:1.0.5+dfsg2-4.1 and I am running the latest 1.8.4 on macOS....
1
vote
1answer
561 views

Using Raspberry Pi to Receive Float from Arduino using NRF24L01

Good day. I've been learning on how to transfer data from Arduino to Raspberry Pi wirelessly using NRF24L01 based on the following reference: Raspberry Pi 3 Tutorial 14 – Wireless Pi to Arduino ...
1
vote
1answer
18 views

Do we need ARM build for arduino while interfacing R-pi and arduino

I wonder whats ARM build for Linux? Do we really need ARM build when we work with arduino? I need to integrate arduino and raspberry pi over wi-fi, I don't know whether I need ARM in this case. Also ...
1
vote
1answer
97 views

Android, Raspberry, Atmega, SQL communication

Hej there, I have a small project at home and I'm curious if people have some advice/idea for me. Because I'm not sure if the communication between the different devices is the way to go. This is my ...
0
votes
0answers
179 views

Pipes adress differs from setup in communication via NRF24L01

I'm trying to set up a communication between an arduino and a raspberry pi via two nRF24L01. The receiver side on the raspberry works well (according to the debug outputs), but I get a strange ...
0
votes
0answers
153 views

Loop not looping with SPI communication

I have a Raspberry Pi 3 sending a string to an Arduino Uno Chinese clone with SPI, and the Arduino writes the received string in its console. The C software on the master RPi has a while (1) loop ...
1
vote
1answer
91 views

Confused between which arduino to use for project? [closed]

I am planning to build a smarthome working model with arduino. I will also need to connet to wifi(not ethernet). So I was wondering which setup would be the best:- Arduino Uno + ESP8266 Arduino Yun ...
0
votes
3answers
241 views

Arduino as Slave | SPI | Answers too late

I hope you can help me :) I am communicating between Raspberry Pi 3 and Arduino Uno with SPI. I am using the Arduino as slave and it works pretty fine. The only problem that i have, is the following: ...
1
vote
2answers
152 views

serial data gets spoiled

I use this small program on my Raspberry Pi to recieve a string sent by my arduino. import time import serial ser = serial.Serial('/dev/ttyACM0', 9600) def check_for_command(): bytestoread = ...
1
vote
1answer
1k views

Arduino USB and 9V

I'm working on a project for interfacing the Arduino with the Raspberry Pi. I need to be able to exchange serial data between the two using the USB port. My question is, can I do that while having ...
0
votes
0answers
137 views

Noisy sensors when water pump in on

I am using an Arduino Mega and a Raspberry Pi 3 for my weather station project. Two sensors are connected to the Mega: a rain gauge and an anemometer. I am using a YF-S201 Hall Effect Water Flow ...
0
votes
3answers
548 views

Power a Raspberry Pi 3 from an Arduino Uno

I would like to power my Raspberry Pi 3B using an Arduino Uno. I have been able to do this by connecting the 5v on the Arduino to the 5 V on the Pi and connecting the GND to GND, and the Pi ...
1
vote
0answers
124 views

How to cross compile Arduino code?

How do you cross compile Arduino code using Arduino-Makefile? I have an Arduino attached to a Raspberry Pi. Compiling the Arduino C code on an x86 machine in about 2 seconds, but doing the same ...
2
votes
2answers
7k views

Rounding up and Down

My arduino is meisuring the tempature and gives values like: 28.58 Degrees Celcius. I would like to round this up to one decimal. I could make the variable one shorter by cutting the "8" off which ...
0
votes
2answers
495 views

Arduino Leonardo as USB Keyboard with WiFi module

I have two PCs: the first is connected to the Arduino via WiFi, this will instruct the Arduino what keys to send, and the second PC is connected to the Arduino via USB that will act as a USB Keyboard ...
0
votes
1answer
132 views

Raspberry Pi Outputting Signal to arduino

I have been trying to get my raspberry pi to output a signal of High or Low, which is then picked up by digital pin 4 on my arduino. On the raspberry pi, I have connected the output to GPIO 24 and ...
0
votes
1answer
402 views

Trying to map a room with Arduino controlled bot [closed]

What you see above is a map of my room. The boxes in black are obstacles and the box in red is my bot. Now I want my bot to go around the room, avoiding all obstacles, but at the same time, covering ...