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
1 answer
61 views

How to architect streaming data from multiple plant monitors to single Arduino?

Premise: I'm trying to determine a good way to architect getting data from 4 plant monitors to a single Arduino. For context, that Arduino will have a Wifi connection that will transmit the data from ...
Avogadro's user avatar
  • 103
1 vote
1 answer
310 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
145 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
1 answer
76 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
2 votes
1 answer
109 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
1 vote
2 answers
79 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
55 views

How to properly send bytes between RPI and Arduino over I2C while using ISR without IOerrors?

I have a I2C connection between an RPI 3B+ and Arduino Nano. I want to send a key and a corresponding value byte, and the arduino does something with that inside a timed ISR. Which works. But I get ...
aWiseMan's user avatar
2 votes
1 answer
627 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
0 votes
1 answer
49 views

Where are the programatic definitions for different processors stored?

I need to modify an existing library that relies on being able to detrmine what board / processor the code is being run on. To do this, it uses definitions such as this for an Arduino Mega: // Arduino ...
Ben Bird's user avatar
  • 101
0 votes
2 answers
169 views

Arduino Uno - Raspberry PI - Float Sensors - Water pumps

I am experimenting with Aquaponics and since I am a software developer I found it "smart" to use arduino/raspberry in order to control the water flow and not simply use a water pump with ...
Investigator's user avatar
2 votes
1 answer
1k 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
  • 384
1 vote
1 answer
136 views

Error in I2C Communication Between Arduino and Raspberry Pi

The code below sends data to Raspberry Pi every 20 millisecond. The code works fine but sometimes python throws an error. Why this is happening? Should I give more time between writeData? Error: > ...
Shyam3089's user avatar
  • 113
0 votes
1 answer
36 views

How to receive commands to a running arduino program from a raspberry pi?

I have looked all over for a solution to this. I'm a noob in the arduino space and am really just getting my feet wet. It's possible that I am interpreting what I am reading wrongly. If so I apologize....
Dan's user avatar
  • 103
1 vote
0 answers
146 views

Adding new programmer to Arduino IDE

I want to use the Arduino IDE using a raspberry pi with raspbian OS because it's the only way I can read a Digispark usb (I don't have 2.0 usb ports in my laptop so I can't read the usb with it). I ...
iam_agf's user avatar
  • 111
5 votes
3 answers
348 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
1 vote
0 answers
78 views

Is there a way to convert between arduino and raspberry pi pins

I have a robot that I have brought that is designed for raspberry pi (it comes with a raspberry pi HAT), and I am terrible at using my raspberry pi. So I was thinking what if there is some sort of way ...
DigitalRookie4's user avatar
1 vote
0 answers
56 views

Raspberry Pi with multiple arduinos using spi

I want to use Raspberry Pi as an aggregator & distributor of messages originating from or destined for a flight simulation program. I'd like to use arduinos connected via spi as specific hardware ...
Patrick Callahan's user avatar
1 vote
0 answers
52 views

Fresh install getting Assembler Error

I am using Raspberry Pi 4 to connect via usb to program ardino Nano, I intend to communicate with the nano via i2c, but this is irrelivant. With a fresh install of Arduino for ARM 32 bit I get this ...
Arcanist's user avatar
1 vote
1 answer
304 views

How to wire and control a 16mm button with 2 legs using arduino?

I can't find any tutorials online explaining how to wire and control a 16mm push button like the one in the picture: Do you have any suggestions as to how use it with an arduino or a raspberry pi?
S.E.K.'s user avatar
  • 53
1 vote
1 answer
1k 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
3 votes
0 answers
419 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
2 votes
1 answer
241 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
196 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
1 vote
0 answers
70 views

Arduino Create and Raspi I2C

I'm trying to communicate via I2C on the Raspi, programming it with the Arduino Create Web Editor. I have enabled I2C on the pi, made sure /dev/i2c-1 exists. The pi can see the device (just a simple ...
Kcoolz's user avatar
  • 11
1 vote
1 answer
681 views

Raspberry Pi 3B+ BLE communication to Arduino Nano 33 IOT

I have an Arduino Nano 33 IOT and it uses BLE. I want it to talk to my Pi 3B+ and send all of its sensor data. I cannot figure out a way to do it using Python for the Pi and ArduinoBLE library for my ...
DragonflyRobotics's user avatar
1 vote
0 answers
35 views

How can I use Arduino Analog Uno pins as Digital pins? [duplicate]

How can I use Arduino Uno Analog Pins as Digital pins, So that I can Attach more components like sensors to the Arduino? My 13 pins are preoccupied and I want more.
Amit Nikhade's user avatar
0 votes
1 answer
27 views

Whatever components we connect to the Arduino, their grounds and 5v pin connection must be the same?

I am trying to connect different types of sensors & motors to the Arduino should I make their grounds and 5v pins on the same connection.
Amit Nikhade's user avatar
1 vote
1 answer
745 views

How can I use separate power source for the Arduino and the motors

How can use a separate power source for powering Arduino, and another battery for powering the motors? How can I make connections through the motor driver module L298N? I know how normally we use one ...
Amit Nikhade's user avatar
1 vote
2 answers
273 views

Building RS485 serial to USB adapter with digispark

Is it possible to build an serial-adapter with digispark board? Like: Embedded System with 2-wire RS-485 Port connect to my digispark board. Digispark Board is connected via USB to my Computer (...
mncache's user avatar
  • 11
2 votes
1 answer
246 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
0 votes
1 answer
717 views

Sending data struct with 2 int fields from Arduino to Raspberry via NRF24L01

I'm trying to do wireless thermometer on max31865 arduino and nrf24l01 but I'm having problem sending whole data struct I can send int or char arrays but when I try to send whole struct I got output ...
StrudzonyWedrowiec's user avatar
1 vote
1 answer
2k views

error at compiling : 'class TwoWire' has no member named 'setClock'

I am a newbie C programmer and I just started with Arduino web editor (Win10-Firefox)to code for a Raspberry Pi (3B) board. RPi is on line via ethernet connection. I tried to compile an example from ...
Ivan Herbots's user avatar
0 votes
1 answer
158 views

How to program ATmega4809 from Raspbeery GPIO

From this tutorial I'm able to nicely program an ATmega328 using SPI raspberry GPIO pins. However, when I try the same steps with ATmega4809, avrdude seems not having instructions and outputs the ...
Miguel's user avatar
  • 209
0 votes
1 answer
296 views

How to supply more than 500mA while powered by USB

I'm about to build myself a new BrewPi and I have some Arduino power/USB questions. Something smiliar to a combination of these projects: https://imgur.com/a/Nval6 https://www.homebrewtalk.com/...
DanielC's user avatar
0 votes
1 answer
63 views

Is it possible to preform VIO from two cameras/IMUs on a dual-core ESP32?

Like the title says, I want to take in the synchronised data from two NXP breakout boards and two Ueye 1220LE cameras, and use VIO to fuse their data and get positions for both setups. A lot of people ...
TryingMyBest's user avatar
1 vote
0 answers
60 views

Slave unreliably sends bit 7

I'm trying to send a byte from an Arduino Nano I2C slave to a Raspberry Pi 3B Master by directly connecting the two I2C pins of each device with no external pull-ups or level converters. It mostly ...
user1318499's user avatar
0 votes
2 answers
141 views

Long term stability of bluetooth connections

I have two Arduino Megas with HC-05 on Serial1 connected to a Raspberry Pi 3b+ via bluetooth, using the HC-05 and the RPi's built-in bluetooth, and python's pySerialTransfer library to make the ...
David W's user avatar
  • 39
0 votes
1 answer
38 views

Is it possible to use Pi's output signal as Arduino's input signal?

I have a relay attached to an Arduino Uno which I want to control using my raspberry pi 3b. And yes I know it can be done by attaching the relay directly to Pi but I cannot do so. Don't ask me why. ...
Hammad Ilyas's user avatar
0 votes
1 answer
409 views

Arduino communication to Raspberry Pi using HC-05

I'm using two HC-05 modules on two Arduino UNO boards. One of my modules connected successfully to a raspberry pi port. However the other doesn't want to connect, but sometimes it does and then ...
adidas23soccer's user avatar
0 votes
1 answer
2k views

Send/receive data from/to Raspberry Pi to/from Arduino with HM-10 (Bluetooth LE module)

My goal is to send a string from an Arduino via an HM-10 bluetooth module to a Rasperry Pi. I do this today by connecting the HM-10 on the Arduino to another HM-10 module (master/slave) and then from ...
miccet's user avatar
  • 119
1 vote
1 answer
34 views

What is the name of a peripheral which reads servo output data physically?

I know the title is phrased terribly, but I'm not sure how to phrase it since I'm not sure of the name. I have a servo, that I cannot connect to, except for the output spine/shaft (physically). I ...
trueCamelType's user avatar
1 vote
0 answers
199 views

Project concerning wireless communication between raspberry pi (transmitter) and arduino uno(receiver) using nrf24l01. Receiver not working

We are trying to send a message using NRF24L01, raspberry pi as transmitter and arduino uno as receiver. Our concern is, the receiver arduino might not be working because we are not getting the proper ...
Rangit Ray's user avatar
0 votes
1 answer
528 views

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port

How to create a USB CDC device. (I'm using stm32f103c8 black pill board) and I want to read the data through USB in my raspberry pi as a serial port. I am using a black pill to read RFID-rf522 to ...
mr_aarvee's user avatar
1 vote
0 answers
419 views

Image from Arduino with camera ov7670 to Raspberry pi

i am stuck at sending picture to Raspberry pi from Arduino , how can i do this ? One way that i am using now is saving the picture on SD card module on the arduino , how to transfer that image to ...
Ivanh23's user avatar
  • 29
-1 votes
2 answers
2k views

Connecting an Arduino Nano to a Raspberry Pi Zero

I'm working with an Arduino Nano Every, and I'm trying to connect it to the Raspberry Pi Zero for data collection from I2C sensors and writing/program code from the Pi to the Arduino. Typically, I ...
BestQualityVacuum's user avatar
0 votes
1 answer
280 views

How to transmit data from Arduino to Raspberry Pi?

I am planning to build a network with five Arduino Mega devices, each of which will collect data using multiple sensors. Each Arduino will periodically transmit the sensor data to a gateway Raspberry ...
Adnan Ali's user avatar
  • 119
0 votes
2 answers
107 views

config file for Arduino Uno installed on Raspberry PI

The Arduino code shown runs successfully. My problem is configuring the Arduino IDE so it fits within the Raspberry Pi window. The second image, the built-in serial port /dev/ttyAMA0, is produced. It ...
Paul's user avatar
  • 1
-1 votes
1 answer
25 views

Two adruino are connected to the raspberry via usb, but one is reconnected during processing code is running

I try to solve this a month..but still problem... I want to make below led-matrix spectrum. Thumbnail image https://youtu.be/X35HbE7k3DA ※Environment Device UML One Raspberry pi 3 : 2019-09-26-...
LJB's user avatar
  • 1
-3 votes
1 answer
96 views

Can I power Raspberry Pi 3 via 3V3 and GND pin? [closed]

Can I power my Pi 3 using the 3v3 pin (pin 1) and GND pin (pin 6)? Also, if I want to protect the board from power surges can I just put a fuse between my power supply and the 3v3 pin? Thanks in ...
user463102's user avatar
2 votes
1 answer
227 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