Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
36 views

Send ECG signal with NRF24L01 from Arduino to Raspberry Pi 3

I'm using nRF24L01 to send ECG samples from an Arduino to Raspberry Pi, the type of sample is double after denoising, and I stock them in a byte[8] to send 8 by 8 sample. When I print the sample ...
0
votes
1answer
27 views

Run website / Javascript game from a Arduino UNO device?

I apologise if this is a dumb question, but I'm trying to find information on whether or not this is possible. I'd like to build a arcade machine to play my custom Javascript 2D game. The game ...
0
votes
2answers
354 views

Powering Arduino Mega 2560 from a Raspberry Pi Usb

I have a Raspberry Pi B+ running 7x24. I have to connect an Arduino Mega 2560 to its USB. The Arduino has only one nRF24L01-PA-LNA powered from its 3V3. Can I power the Arduino from the Pi's USB?
0
votes
0answers
40 views

Unintelligible data transmission from Arduino Mega 2560 to RPi using nRF24L01+

I have a Raspberry Pi 3 and an Arduino Mega 2560 both attached to their own nRF24L01 chip. This is my first time using the nRF24L01 chip, so I copied and modified some demonstration code that I saw ...
-1
votes
1answer
69 views

NPN sensor to Arduino

I have a beam sensor providing NPN and also PNP output. It as 4 wires and works on 24V. I hooked the brown(+) and blue(-) to a small 24V power supply and the sensor is working!!! Yeah! Now I would ...
0
votes
1answer
32 views

Method to iterate over the bits in a byte sent over serial [closed]

In my current project which integrates Arduino/avr IC with Raspberry-Pi, and each communicating via serial, I'm looking to send a byte of data to the Arduino from the RPi, which then would be iterated ...
0
votes
0answers
146 views

nRF24L01 communication with Arduino as transmitter and Raspberry Pi as receiver

here are the codes and i don't know why it does not communicate. The arduino should send some example data and the raspberry pi should simply receive the data. Transmitter code (Arduino) #include "...
0
votes
3answers
856 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 ...
0
votes
0answers
21 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
1answer
460 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 ...
0
votes
1answer
48 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
0answers
80 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,...
1
vote
3answers
2k views

Send information (such as a string) over digital pins

I wan't to send information from my arduino digital pins to another arduino's digital pins like a string, or a char. Can I do this without something like Software Serial? The reason I am asking is ...
1
vote
3answers
260 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
75 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
166 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....
0
votes
1answer
446 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
255 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
1k 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
171 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
53 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
28 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
931 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
81 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
88 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
83 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 ...
1
vote
1answer
109 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 ...
1
vote
1answer
101 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 ...
0
votes
0answers
177 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 ...
3
votes
1answer
248 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 ...
-1
votes
1answer
248 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) ...
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 ...
1
vote
2answers
243 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 = ...
7
votes
5answers
1k 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 ...
-3
votes
2answers
198 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 ...
0
votes
0answers
60 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
306 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
208 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
1k 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
509 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
430 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
vote
1answer
395 views

Arduino Pi-3 Ubuntu MATE not compiling

When I try to upload a script to my Genuino Uno from the Linux ARM distro on genuino.cc/downloads it spits out this during compiling. avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission ...
1
vote
2answers
392 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....
0
votes
3answers
2k views

How to send sensor data from Arduino through NRF24L01 to Raspberry Pi

I am able to send text from the Arduino wirelessly to RPi. I am now trying to send the sensor data I'm measuring to the Pi. This is what I have below: int moisture = A0; int temp = 3; //Skipping ...
2
votes
2answers
6k views

How to read data from Arduino with Raspberry Pi via I2C?

I have connected a Raspberry Pi 2 model B to an Arduino Uno via Bi-Directional Level shifter, from this BLOG: Raspberry pi GND ---------- GND Arduino 3.3v ---------- ...
1
vote
1answer
921 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 ...
4
votes
2answers
1k views

Which tft works on both Arduino Uno and Raspberry pi

Ideally I'd like a 2.8 inch and it to be touch screen. But most of all I'd rather it work on both boards without much hassle.
2
votes
3answers
575 views

Serial communication on Arduino Uno

I have a Raspberry Pi 3 connected to the serial of my Arduino Uno (pins 0 and 1), but I also have another device connected to two other serial pins on the Arduino (pins 10 and 11, using the ...
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 ...