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.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

Are there any transmission guarantees with the HC-06's bluetooth protocol?

I'm wanting to send serial data from multiple Arduinos to a Raspberry Pi using the HC-06 module. The connection will be delivering sensor data from the Arduino to the Pi for a smart home setup and it'...
1
vote
2answers
1k 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
1answer
46 views

Error conecting raspberry with my arduino in a serial port [closed]

Hi i am trying to make a comunication between theses device but when i am trying to run in my raspberry i have the follow error: Traceback (most recent call last): File "serial.py", line 1, in ...
0
votes
1answer
41 views

How to start a dendrometry dimension build (Dimensions of Trees) for research?

I am looking to build a device that can measure the dendrometry fluctuations of trees (etc). I essentially want to build this https://publiclab.org/notes/kinasmith/09-09-2016/dendrometers to a t but I ...
0
votes
4answers
3k 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 ...
1
vote
1answer
18 views

How does use an arduino like a A/D converter for convert 3 analogue signal from 3 poteciometer to a raspberry?

I am developing a control system in my raspberry, but i have the problem that it doesn't have any analogue port, so if i use an arduino to convert de signal from analogue to digital and after send ...
0
votes
1answer
21 views

Arduino Mega not recognized on Raspberry Pi 3b+

I'm developing an interactive LED table for an university assignment that is being controlled by an Arduino Mega2560 which gets the information about which LEDs should be lit in which colour from a ...
0
votes
1answer
41 views

Detect radio frequency keyfob [closed]

Would it be possible to detect when somebody closes/opens/uses their keyfob (based on radio frequency) ? It is of course not the intention to hack the key. Just knowing when somebody has pushed a ...
0
votes
0answers
47 views

NaN for reading from AM2302 from Arduino Uno

I want to read sensor values from 4x AM2302 to an Arduino UNO, and then pass those values for data logging to Raspberry Pi via Serial communication over USB cable. The sensors are installed at 4x ...
0
votes
0answers
15 views

Arduino Sensor Values to Raspberry Pi using NRF24

Im trying to send temperature sensor data through NRF24L01 to Raspberry Pi and read it in Raspberry Pi using python. But the temperature sensor data comes to the Raspberry Pi as letters, which I found ...
2
votes
0answers
1k views

How can I connect an arduino to a raspberry pi via an HC 05 bluetooth module and transmit data?

I am currently undertaking a project where I am attempting to build a bluetooth thermometer using an arduino. I have the temperature sensor working and returning temperature readings via a usb ...
2
votes
0answers
117 views

How can I send a number from a master and make the slave read it?

I am building a fan controller using an Arduino and a Raspberry Pi (the Pi is the master and the Arduino is the slave). The Raspberry Pi generates random numbers and I want the slave (Arduino) to be ...
0
votes
2answers
59 views

How to get a list of IPs in a LAN using NodeMcu?

I'm going to create an IoT system. I use a Raspberry Pi as a MQTT broker and as a webserver. Every day, the Pi gets a new IP address, so I need to find its new IP address via ESP8266 to use this ...
0
votes
1answer
604 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
votes
1answer
72 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 ...
0
votes
1answer
61 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
32 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 ...
1
vote
2answers
391 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
51 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
147 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
40 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
262 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
1k 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 ...
1
vote
0answers
123 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
409 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
200 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
587 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
306 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
2k 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
233 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
66 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
32 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 ...
0
votes
0answers
87 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
97 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 ...
1
vote
1answer
91 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
118 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
124 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 ...
2
votes
1answer
264 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
277 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
2k 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
337 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 = ...
6
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
212 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
64 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
340 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
242 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
3k 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 ...