Questions tagged [arduino]

For questions pertaining to the Arduino microcontroller and it's integration with Raspberry Pi projects. Questions about Arduino only are off-topic and can be asked at Arduino Stack Exchange.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Raspberry Pi and bscXfer/bsc_xfer not reliably passing data between Arduino Master

Data passed between a Raspberry Pi, configured as an I2C slave device, is not reliably transmitting between an Arduino I2C bus master device. Data is consistently getting lost, and slave responses are ...
0 votes
1 answer
31 views

Using Run Pin for Startup on pi zero w and v2

I'm planning on running a pi zero 2 connected to an arduino over uart for a personal project, but I'm using a pcb and I want to power it on and off without using any cables. My current plan is to ...
0 votes
0 answers
33 views

RPi Pico + Arduino IDE: Compiler generates FPU instructions for a device without an FPU

I've bought a SSD1306-compatible display for my Raspberry Pi Pico. However, it uses some kind of non-standard encoding and the typical Adafruit libraries don't work. The seller says I should use the ...
  • 101
0 votes
1 answer
71 views

How to decode struct data sent from an Arduino via NRF24L01?

So basically I'm sending this struct data from my Arduino to my RPi, both fitted with an NRF24L01 module. Library on the Arduino is tmrh20, and on the RPi, BLavery. struct values{ char ...
0 votes
0 answers
52 views

I2C sending data from arduino to python gives gibberish data

It's my first time working with SMBUS and I've read the docs of arduino and the Wire object. It states that I can send a string. To quote the docs: string: a string to send as a series of bytes. https:...
1 vote
0 answers
67 views

Arduino-Pico RF433 Rf-Tx cheap modules

I currently use Arduino IDE to program Raspberry Pico, using this as reference. Arduino-pico Github My intention, is to use RadioHead library which is not available in MicroPython, to send and receive ...
  • 121
0 votes
1 answer
57 views

How to connect Raspberry PI 3 B to two Bluetooth modules or more using Linux Commands

I'm working on a project; that needs to send data from the two Arduinos using two Bluetooth Module (One using HC-06 and the other using HC-05) to Raspberry PI 3 B; so that the RPi 3 need to connect to ...
0 votes
2 answers
70 views

Can a program be stored in flash memory on raspberry pi and run without a monitor and internet connection like on an Arduino?

Sorry if this is a stupid question, but I'm new to Pi and Arduino, and couldn't really find an answer through Googling. I'm designing a project that needs some sort of "brain" which will use ...
1 vote
1 answer
276 views

rPi Pico IRQ with callback freezes Pico

I am trying to configure rp2040 function gpio_set_irq_enabled_with_callback on Pico using Arduino IDE with installed Arduino mbed OS because i need some libraries. When called interrupt happens but ...
  • 21
0 votes
0 answers
21 views

two camaras streaming app

I'm actually new to raspberry pi tech. so i need to know about some things because I'm gonna build a project for my final year. so my problem is... - i need to connect two cameras and both must ...
0 votes
3 answers
251 views

Python script stops mysteriously after a few hours

The Problem I have a raspberry pi 3b+ running a python 3.7 script that is controlling an arduino. The arduino is reading values in from a few different sensors, and sending the data back to the python ...
0 votes
4 answers
217 views

Rpi3B+ ssh session drops randomly

I have a Raspberry Pi 3 Model B Plus Rev 1.3 in my Ethernet network that runs headless with octoprint and an arduino pro mini connected to it via i2c. Wifi is disabled. The Rpi is powered from an ...
-1 votes
1 answer
134 views

Rx, Tx/UART not being detected by Pi? What is wrong?

I'm working on Serial communication between the Raspberry Pi and the Arduino, with the Raspberry Pi serving as master. I connected, using a logic level shifter, Arduino's Rx (Software Serial was used ...
  • 89
0 votes
1 answer
205 views

Minicom not working

I am trying to connect my Pi 4 running Rasbian 2020 to an Arduino, after making all the connections I try to communicate with the Arduino by using Minicom. However, Minicom doe not respond to anything ...
0 votes
0 answers
135 views

Pi Pico nrf24l01 on arduino ide

I have made an Rx and Tx with nrf24l01, when I have both serial monitors open (Rx& Tx) the communication is fine I can see package receiving, but when I close e.g. the serial monitor of Tx. I don'...
0 votes
0 answers
45 views

PiCan 2 Data Logging on higher frequency problem

I have a project that logs data from a vechicle's OBD 2 port (using PiCan2 on top of RPi3B) and combines that data with data from sensors connected to an external Arduino. The Arduino communicates ...
-1 votes
1 answer
107 views

Using I2C with MMC34160PJ magnetometer

I'm trying to read data from the MMC34160PJ magnetometer using the Raspberry Pi 4. However, I'm pretty stuck as to how I can do it as there's seemingly no example code or library for it. I have been ...
0 votes
1 answer
103 views

SPI Communication between Raspberry Pi and Arduino questions

Basically the title, but I have been looking into SPI as I am working on a project that basically requires a Serial connection between a Raspberry Pi (as a master) and an Arduino (slave); I intended ...
  • 89
-1 votes
1 answer
111 views

How to upload hex file to arduino via raspberry pi?

I want to upload hex file from raspberry pi to arduino connected via USB. I am using avrdude but I fail. pi@raspberrypi:~/test $ ls beeop led_test.ino.hex As it can be seen I have this led_test.ino....
0 votes
1 answer
32 views

Obtaining a constant audio signal independent to volume

Sorry if this is a silly question but Is there a way to have an independent gain audio signal from a Raspberry Pi that does not vary with the software volume control? I am trying to get a constant ...
  • 1
1 vote
1 answer
104 views

Moved from main Stack Overflow: Udev Rules Not working with Rasberry Pi - Teensy connection

I am pretty deep into this now and operating at about 50% understanding. We have a Raspi 3B+ running Ubuntu 20.04 for Raspi. We have a Teensy 3.7. They are connected together with a USB cable. I know ...
  • 125
0 votes
0 answers
409 views

Slow write speeds to Rasberry Pi Pico flash using LittleFileSystem/LittleFS

I have a Sparkfun Things Plus RP2040 with 16MB of onboard flash. I am trying to write a program which uses the flash as a buffer (let's say to store 5MB of data) before writing to an SD card. The idea ...
0 votes
0 answers
52 views

Raspberry Pi 4 Model B Project: IoT Parking Apps with Car Plate Recognition for Smart City using Node Red

recently I found a project that involves using Raspberry Pi and Arduino Mega Board to create a Car Plate Recognition system but I am stuck with connecting the pins as I am not a professional in using ...
0 votes
0 answers
21 views

Slow serial encoding between Pi4 and Arduino for object tracking

I have been working on a project that involved in Object tracking. I have been using the OpenCV and mobilenetSSD_v2 as my model with a google coral, the video itself has a bit of delay but it's still ...
  • 1
0 votes
2 answers
45 views

USB to TTL "for arduino" compatible with Pi?

Not real familiar with these devices yet; is there any difference between this, where it says "for arduino" and perhaps one for a raspberry pi? I have a Pi and just want to confirm whether I ...
0 votes
2 answers
74 views

Can I connect a Raspberry Pi 4B to an Arduino Power Supply Module? And if so, how?

simulate this circuit – Schematic created using CircuitLab I am trying to use an Arduino Power Supply Module to provide enough power to allow at least 5V and 10 mA through to an external supply. ...
0 votes
1 answer
28 views

Signaling a Pi from an Arduino

I am building a project that uses an Arduino for controlling addressable LEDs and a Pi for sending data over usb. What I am trying to figure out is whether there is a way to have the Arduino signal ...
  • 3
0 votes
0 answers
85 views

How to send a string from RaspberryPi to Arduino via serial interface?

I want my HomeAssistant being able to send out RF433. HomeAssistant is hosted on RaspberryPi while the RF433-module is on ArduinoNano. I am referencing this article with some modification. How to send ...
1 vote
2 answers
274 views

Can't upload sketches to Arduino Uno with Raspberry Pi 4

Using my raspberry pi 4 with Arduino IDE to upload sketches to my Arduino Uno. Raspberry Pi 4 is encased in an Argon Neo (in case that's important). At first I tried to get the board info and received ...
  • 13
0 votes
1 answer
35 views

Check on Rasperry Pi what is connected to Arduino Uno

i have a question regarding Rasperry Pi and Arduino. I have them connected via USB and on the Arduino is a NFC Reader connected(via Pins). Can I look on the Rasperry Pi with a command or something ...
  • 1
-1 votes
1 answer
67 views

I2C conflict between Raspberry Pi and Black Pill (STM32F411CEU6)

I'm doing the following experience: I have a pressure sensor and I'm doing some readings using a Raspberry Pi 4 and a Black Pill (STM32F411CEU6), using an I2C connection. The sensor has pull-up ...
  • 233
0 votes
1 answer
50 views

How to use 433 RF codes to start actions on Rpi

My setup is: Arduino with 433 cheap transmitter module, photodiode and a laser and 433 receiver connected to Rpi, button. I've used rpi-rf lib to receive codes. I'm trying to make stopwatch that when ...
1 vote
1 answer
668 views

Serial port fails after some time

I use a RPi 3b to request and receive float values over serial from an Arduino Nano (fake). For that I use python and pyserial. Arduino Loop: if (Serial.available() > 0) { String req = Serial....
0 votes
2 answers
396 views

433MHz RF communication between Arduino + Raspberry Pi

I bought a 433MHz receiver and transmitter to send data from a Raspberry Pi 3 to an Arduino Uno. I searched the internet for tutorials, Arduino StackExchange and Raspberry Pi StackExchange but I did ...
1 vote
2 answers
635 views

over-current condition on usb port when connecting arduino nano

Hi I am trying to power an arduino nano via usb port. I am using a 5V 3A power supply. I have 2 different usb cables. One lights up the arduino, but it is not recognized in /dev/ttyACM0 The other one ...
0 votes
1 answer
69 views

Wireless transmission multiple arduinos to raspberry

I am fairly new to this, having worked only a bit with arduinos. I would like to know if it would be possible to connect multiple arduinos to a raspberry, just to transmit a signal. Description: A ...
  • 1
0 votes
0 answers
64 views

LED strip works through Arduino PWM, but not Raspberry Pi PWM

I've been stuck on this for a while. I'm following a simple tutorial for RPi-controlled LEDs. From this, my LEDs do random stuff and don't light up correctly. I've been trying strandtest from this ...
0 votes
1 answer
155 views

How to send data from RPI to Arduino via I2C

Im working on a project to build an autonomous lego car. Im running into some problems here, and i could use some help. Right now, im struggling to send and receive data from RPI (4) to Arduino (Nano)....
  • 1
1 vote
0 answers
130 views

How to read AC current sensor (10,12 channel's)

I have a python program which needs to read the power, voltage and current. (Raspberry , I2C & CT Sensor) Please explain whether Arduino is required if we are using Raspberry. Is it possible to ...
  • 11
0 votes
1 answer
64 views

Raspberry vs arduino i2c communication

i used to use arduino as a i2c communication device but i'm changing to raspberry and i have a question about how to send and receive data from raspberry to my device the device in question is a ...
0 votes
2 answers
100 views

Need to send and recieve data to an arduino via 5-10m CAT6 away from each othere

Hello I would like to know if there is already a protocol that both the raspberry pi zero and the arduino (nano) have in common that i can use to communicate 5-10 meters away no added hardware? With ...
  • 656
0 votes
0 answers
81 views

CAN communication between arduino and raspberry pi

I am trying to communicate between Raspberry Pi and Arduino. In arduino I am using this program to transmit #include <SPI.h> #include <mcp_can.h> const int spiCSPin = 10; MCP_CAN CAN(...
0 votes
0 answers
51 views

Pi Zero W resets Arduino Due during power up

I have a setup where my Pi Zero W (Pi0W) is connected to an Arduino Due via OTG cable adaptor. My Pi0W seems to reset the Due again when it's about to finish starting up (around 30-40sec mark). The ...
2 votes
1 answer
537 views

RFM69HCW with Raspberry as gateway for wsn

Good day, I am making a wireless sensor network prototype using communication technology, the RFM69HCW module [3]. I use an Arduino nano for the processing unit for the sensor nodes, and for ...
  • 21
0 votes
1 answer
199 views

How to connect raspberry pi zero v1.3 with arduino over bluetooth (HC-06)

I have raspberry pi zero v1.3 which have no build in bluetooth, i want to use hc-06 bluetooth module with raspberry pi and arduino for serial communication, just for receiving data from arduino to ...
  • 1
0 votes
1 answer
443 views

Read serial data from multiple arduino

Please help me find problem in this code: import serial ser=serial.Serial("/dev/ttyACM0",9600) ser.baudrate=9600 ser1=serial.Serial("/dev/ttyUSB0",9600) ser1.baudrate=9600 ser2=...
-1 votes
2 answers
163 views

Connection between nodemcu and raspberry in different networks

You can send measured data from a sensor connected to the NodeMCU to the Raspberry, only I don't want a physical connection, I want to connect via another wifi. Example, Raspberry is at my house and ...
  • 1
2 votes
1 answer
701 views

Is it possible to connect a Raspberry Pi with multiple inertial sensors simultaneously via Bluetooth?

I'm working on a project in which I have to connect 3 (or more) inertial sensors to a virtual reality headset (OculusQuest) via Bluetooth, but the problem is that it only accepts one connection, so I ...
  • 37
1 vote
1 answer
1k views

Serial comm to Arduino - ImportError: cannot import name Serial from serial

Trying to send a message from my Pi to the Arduino via serial communication and I'm receiving this error despite having installed pyserial ImportError: cannot import name 'Serial' from 'serial' (/home/...
1 vote
1 answer
474 views

Connecting an Arduino Nano to a Raspberry Pi using Serial Cable on an a Pi 3B+ or Zero W

I wanted to connect an Arduino Nano to either my Pi 3B+ or my Zero W, preferably my Zero. When I connected my Nano to my Pi Zero and ran a simple script with the Python 3 serial library, it didn't ...
  • 954

1
2 3 4 5
9