Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
7 votes
5 answers
3k 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 ...
Meenie Leis's user avatar
7 votes
3 answers
11k views

How to allow cross-domain requests on ESP8266WebServer

I am using a Raspberry Pi running Chrome (handling the user interface) and connecting via ajax to an Arduino D1 compatible using the IP address as follows: $.ajax({ type: "GET", ...
Chiwda's user avatar
  • 252
6 votes
1 answer
3k views

How to install Arduino IDE on Raspberry Pi

How do you install the Arduino IDE on the Raspberry Pi running an ARM version of Ubuntu or Raspbian? There doesn't seem to be any official ARM release. Both distros have an "arduino" package in their ...
Cerin's user avatar
  • 1,628
5 votes
3 answers
375 views

Arduino Core for the Raspberry Pi Pico

I recently bought a Raspberry Pi Pico to play with, and am attempting to upload my first program to it the Arduino way, as my own operating system rather than a c++ program over an existing operating ...
nerdguy's user avatar
  • 63
5 votes
2 answers
2k 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.
Sean Bradley's user avatar
3 votes
2 answers
31k 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 ...
Anton van der Wel's user avatar
3 votes
2 answers
8k 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 ...
pvoj's user avatar
  • 193
3 votes
2 answers
802 views

ADC with better performance

I need to sample voltage at a very high rate (say for like 10000 Hz) and with a very good precision(at least 10-12 bit ADC will do). So I am in need of an Analog-to-Digital Converter(ADC) which has a ...
tahsin314's user avatar
  • 131
3 votes
2 answers
451 views

Design Dilema -- What hardware?

I'm trying to build a smart thermostat for a particular application. I have the following design criteria and goals for the system: Must be able to set up and monitor the device from either a mobile ...
zipzit's user avatar
  • 135
3 votes
1 answer
4k 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 ...
user35288's user avatar
3 votes
1 answer
2k 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 ...
Kyle Auterson's user avatar
3 votes
2 answers
2k views

Bidirectional communication between Arduino and Raspberry Pi over USB possible?

Is it possible to have bidirectional communication betweeen an Arduino Uno Rev 3 and a Raspberry Pi Modell B+ running Rasbian? They're connected ofer USB, and it would be good if I could use Python on ...
Yannik Pieper's user avatar
3 votes
0 answers
488 views

nRF24L01+ problem with receiving response

I'm sending currently data from a Raspberry to an Arduino, but I have a problem with receiving response from the Arduino back to the Raspberry: Sent the message: ['H', 'i', '.', '.', 'A', 'r', 'd', '...
NezumiRyu's user avatar
3 votes
0 answers
390 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
AidenRay's user avatar
3 votes
0 answers
147 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 ...
THN's user avatar
  • 31
2 votes
3 answers
1k views

Why connect arduino with Rasberry pi?

I have a question about connecting a Arduino with Raspberry Pi. What is the benefit of connecting the two?
Mikael Andersen's user avatar
2 votes
1 answer
852 views

Convert float to byte, from Arduino to Raspberry Pi i2c

I'm trying to send the temperature value from the DHT sensor to a raspberry pi through I2C. Which is the best way to do it?. The temp value is a float, and I think I have to convert it to byte and ...
Guille's user avatar
  • 123
2 votes
2 answers
2k views

Greyed out port for Raspberry pico in Arduino IDE - Ubuntu 20.04

I'm trying to figure out how to program my new Raspberry Pico with Arduino, but don't see a port to select so I can't upload the blink sketch. Here's what I've done: The Pico is working, I can ...
kxtronic's user avatar
  • 394
2 votes
3 answers
7k views

Receiving two-byte int values over serial

I am using Python smbus write_word_data method to send int values from a Raspberry Pi to an Arduino using I²C. This seems to be the correct method. When I send values from 0-255, I see the following ...
Bachalo's user avatar
  • 251
2 votes
1 answer
5k 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 ...
varul jain's user avatar
2 votes
1 answer
6k views

A1 was not declared in the scope

I'm trying to put all my settings in a config.h file and then #include it in the Arduino sketch. Here's what my config.h looks like: RobotConfig.h #ifdef BOT //hardware pins int motor1Pin = ...
Cipher's user avatar
  • 123
2 votes
3 answers
948 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 ...
Luz A's user avatar
  • 69
2 votes
3 answers
806 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?
pvoj's user avatar
  • 193
2 votes
1 answer
260 views

I2C communication between arduino and raspberry pi breaks under stress for unclear reasons. Why?

I am having a behavior I cannot explain while using arduino mega as a I2C slave for a raspberry pi master. I am showing here an idealised program that shows the issue. I experience pretty much the ...
Stefano Borini's user avatar
2 votes
1 answer
145 views

So many missed bytes with serial comm

I have a setup with serial comm from Raspberry Pi to Arduino. It's communicating at baud 9600 on both devices, and from Raspberry Pi 3b+ GPIO-14,UART0,TX0 to Arduino Nano RX0. There's a level shifter ...
errolflynn's user avatar
2 votes
1 answer
293 views

What is the best way to init wifi communication between two devices (get IP address)?

what is the best way to init wifi communication between two devices without knowing IP of second device, let's say Raspberry Pi and ESP8266? I want to build simple home automation system for my ...
Petr Marek's user avatar
2 votes
2 answers
344 views

How can we know the status of the DC Motor whether it is ON or OFF

A DC motor is operated using an L298n driver and Arduino UNO. How can I get to know whether the Motor is ON or OFF? Using a code in Arduino.
Amit Nikhade's user avatar
2 votes
1 answer
309 views

Reset a UART connection on a Due

I have a system that involves an Arduino Due connected to a Raspi 4 through UART in which the Due sends a heartbeat signal over UART for the pi to receive and send back as confirmation. One of the ...
Andrew Euredjian's user avatar
2 votes
1 answer
41 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 ...
Jesus Miguel Herrera's user avatar
2 votes
1 answer
1k 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 ...
apollowebdesigns's user avatar
2 votes
2 answers
8k 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 ---------- ...
shivam's user avatar
  • 121
2 votes
0 answers
2k 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,...
Sharath Mohan's user avatar
2 votes
1 answer
312 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 ...
Chad G's user avatar
  • 630
2 votes
0 answers
572 views

Connect Arduino + WiFi Shield to Raspberry Pi

I want to send collected data (temperature sensor) from my Arduino via the WiFi shield to my Raspberry Pi. Can I do that with the WiFi library that exists in Arduino IDE ?
Teo Protoulis's user avatar
2 votes
0 answers
61 views

Serial Write fails to send when Motors moving

I have an unusual bug with the code I have written for my rover V2 robot. I have a raspberry pi running some computer vision code written in opencv tracking an object doing the heavy processing. ...
ohkneel's user avatar
  • 21
2 votes
0 answers
429 views

Receiving multiple bytes from an RPi using the i2c protocol

Trying to send bytes from an RPi as a master to an Arduino as a slave. The send uses the write_byte(addr, value) function and seems to be working perfectly. The Arduino however has issues with ...
Ali Harvie's user avatar
1 vote
2 answers
2k 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....
Milliways's user avatar
  • 1,645
1 vote
1 answer
77 views

Why do I have to burn the code to make it run? [closed]

Why do I have to burn the code twice to actually burn it on to the Arduino board? I have to execute this command twice - only then is the chip getting programmed. I'm using this command to burn the ...
user137442's user avatar
1 vote
3 answers
4k 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. ...
Jaiaid Mobin's user avatar
1 vote
3 answers
3k 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 ...
Radmation's user avatar
  • 113
1 vote
1 answer
20 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 ...
R.Imran's user avatar
  • 13
1 vote
1 answer
548 views

Error while uploading the sketch to Arduino UNO using CLI

I have connected my Arduino UNO through USB to Raspberry pi 3B. I am using CLI for editing, compiling and uploading sketches > arduino-cli upload --fqbn arduino:avr:uno cli-test. However, after ...
DaSnipeKid's user avatar
1 vote
1 answer
227 views

Serial hangs on Arduino-Uno

I'm having issues with Arduino and RPI3 serial communication, it'll become unresponsive after a little time. Tried increasing BAUD rate and same issue, also happens on Windows as well so RPI is not at ...
Philip Rollins's user avatar
1 vote
2 answers
96 views

Problem with first two samples of serial data received by RPi

I'm trying to receive a string from an Arduino to a Raspberry Pi via a Bluetooth socket connection (RFCOMM). I'm using an HC-06 Bluetooth module, an Arduino UNO R3, and an RPi 4 Model B. For the ...
phosphorescent's user avatar
1 vote
1 answer
2k views

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using 'localhost:1.0' as the value of the DISPLAY variable

I have tried everything on this url https://stackoverflow.com/questions/10165761/java-cant-connect-to-x11-window-server-using-localhost10-0-as-the-value-of-t session output: root@whale:/home/kermit# ...
brad's user avatar
  • 201
1 vote
1 answer
1k views

Reset I2C connection with arduino as slave

I am currently using I2C serial communications with arduino as slave and raspberry pi as the master. I am sending sensor data from arduino to raspberry pi. I need to reset the I2C connection once the ...
Prashant's user avatar
1 vote
1 answer
110 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 ...
Jesus Miguel Herrera's user avatar
1 vote
1 answer
2k 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 ...
Colorado_Technical_Savage's user avatar
1 vote
2 answers
1k 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++...
Dmitry Fedorkov's user avatar
1 vote
1 answer
239 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 ...
Adewunmi's user avatar