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.
152 questions
1
vote
1
answer
96
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
0
votes
2
answers
153
views
Can the ATTiny88 be programmed via I2C from a Raspberry Pi?
This is similar to Is it possible to program an AVR chip (atmega328p) via i2c?, but not exactly, and that thread is a little shy on details.
I have an ATTiny88 attached via I2C to a Raspberry Pi, with ...
0
votes
1
answer
157
views
Arduino pulls i2c bus down
I am building an airplane. As a controller I am using a Raspberry pi 4. There are 3 sensors (MPU6050, QMC5883L, BME280) and arduino pro mini connected to the raspberry via i2c. When sending requests ...
0
votes
1
answer
142
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 ...
1
vote
1
answer
675
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 ...
1
vote
1
answer
381
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 ...
1
vote
1
answer
89
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 ...
2
votes
1
answer
229
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 ...
1
vote
2
answers
121
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 ...
1
vote
1
answer
87
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 ...
2
votes
1
answer
1k
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 ...
0
votes
1
answer
109
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 ...
0
votes
2
answers
340
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 ...
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 ...
1
vote
1
answer
188
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:
> ...
0
votes
1
answer
83
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....
1
vote
0
answers
316
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 ...
5
votes
3
answers
442
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 ...
1
vote
0
answers
156
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 ...
1
vote
0
answers
87
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 ...
1
vote
0
answers
74
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 ...
1
vote
1
answer
597
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?
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# ...
3
votes
0
answers
580
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', '...
2
votes
1
answer
339
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 ...
2
votes
2
answers
470
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.
1
vote
0
answers
82
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 ...
8
votes
4
answers
18k
views
Access serial monitor on linux cli? Using arduino-cli?
I have an Arduino Uno connected via USB to a Raspberry Pi. The Raspberry Pi is accessible via SSH only.
Just started a bit with arduino-cli. I upload a sketch which reads my analog pins. How can I ...
1
vote
1
answer
928
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 ...
1
vote
0
answers
39
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.
0
votes
1
answer
46
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.
1
vote
1
answer
1k
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 ...
1
vote
2
answers
406
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 (...
2
votes
1
answer
374
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 ...
0
votes
1
answer
975
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 ...
1
vote
1
answer
3k
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 ...
0
votes
1
answer
267
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 ...
0
votes
1
answer
435
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://i.sstatic.net/gZHZt.jpg
https://www.homebrewtalk....
0
votes
1
answer
102
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 ...
1
vote
0
answers
63
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 ...
0
votes
2
answers
287
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 ...
0
votes
1
answer
58
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. ...
1
vote
1
answer
532
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 ...
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 ...
1
vote
1
answer
54
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 ...
1
vote
0
answers
243
views
Project concerning wireless communication between Raspberry Pi and Arduino Uno using NRF24L01
We are trying to send a message using NRF24L01, with a Raspberry Pi as transmitter and an Arduino Uno as receiver.
Our concern is that the receiver Arduino might not be working because we are not ...
0
votes
1
answer
838
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 ...
1
vote
0
answers
535
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 ...
-1
votes
2
answers
3k
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 ...
0
votes
1
answer
415
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 ...