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.
421
questions
0
votes
0
answers
7
views
Ubuntu 22.04 on Raspberry Pi 4B can't connect to teensy 4.1 via USB
I have been trying to connect my Teensy 4.1 to a RaspberryPi 4B running Ubuntu 22.04 via USB, but no USB device is identified.
Programming and serial communication works fine with THAT Teensy and THAT ...
0
votes
0
answers
19
views
I want to use NRF24L01 transceiver with raspberry pi but some GPIO pins are already occupied by 3.5 inch display how do i connect transceiver
26 GPIO pins are already used by 3.5 inch display some of these occupied pins are needed to connect transceiver. I am using NRF24L01 for wireless communication between raspberryPi and arduino
can i ...
2
votes
1
answer
33
views
What to set PICOHTTPS_CA_ROOT_CERT in picohttps example in RPi Pico C - SDK
I'm trying to make a request to an ip using RPi pico w, using the picohttps example provided in here.
Now for that we have 3 needed parameters in picohttps.h file - SSID, SSID_Password, ...
0
votes
0
answers
38
views
Timeout Issues in PySerial. Arduino randomly starts timing out
from get_connected_arduinos import get_arduinos
serial_devices = []
def initialize(serial_device):
print("initializing", serial_device)
try:
serial_device["serial"...
0
votes
1
answer
31
views
Will a DS18B20 Adapter Module for Arduino work on Raspberry Pi 4B?
I am new to electronics and the basics are rather beyond me. Excuse me if I ask a simple question.
I understand that usually, Arduino adapters are not compatible with Raspberry Pi, but this looks like ...
0
votes
0
answers
16
views
Connecting two or more arduino boards to a single Pi board
I was wondering what are the pin configurations/connections and scripting to connect more than 1 arduino to a single raspberry Pi board via serial connection.
1
vote
1
answer
100
views
Need Help with nRF905 Transceiver Module on Raspberry Pi Zero
I recently bought a nRF905 Transceiver Module from Jaycar and am wondering how to use it. It is meant for an Arduino and I have found some libraries for it (nRF905 Library For Arduino - GitHub)
I need ...
-1
votes
1
answer
29
views
Is it ok to usb micro male - micro male for USB device?
I am hooking up an arduino micro to my Pi Zero W.
For space, I used a short micro male-male USB cable:
https://www.amazon.ca/CableCreation-Micro-Kindle-Android-Tablet/dp/B01M5GZ3N0
When I use this on ...
0
votes
0
answers
24
views
COM disconnects and program fails when including code trying to initialize SD card (RP2040 Pi Pico W running Arduino)
I'm having an issue where anytime I run a program such as the SD card read write example (Below) the COM port disconnects. The only changes I have made to the example code is I am using SPI1 instead ...
-1
votes
1
answer
51
views
Connect Raspberry Pi 4 GPIO output pins to Arduino Uno
I want my Raspberry Pi4 to give 4 unique outputs, not necessarily at the same time, which will be four different inputs to the Arduino Uno.
I want to know how to proceed as I think by connecting them ...
1
vote
0
answers
82
views
Transmitting Serial data via Wi-Fi from Raspberry Pi to Wi-Fi Module
I previously built two separate projects for sending/receiving data between an Arduino and a Raspberry Pi 3. One transmitted via Bluetooth (HC-05 Module on the Arduino-side to the built-in BT module ...
2
votes
1
answer
481
views
Pico Arduino DS18B20 OneWire
I am failing to read a DS18B20 with a RaspberryPi Pico programmed with Arduino.
I found several examples using MicroPython, however I want to do it with Arduino using the 'Raspberry Pi Pico/RP2040' ...
1
vote
1
answer
77
views
Pin state doesn't change, but wait_for_edge triggers
I've been trying to figure out why the GPIO value will not change. I double check, triple check my connections.
I used GPIO.wait_for_edge(pin, GPIO.RISING) and it executed and when I ran print(GPIO....
0
votes
1
answer
787
views
Connecting MCP2515 with raspi
I am trying to connect mcp2515 can bus module with raspi 4b.
On using pi@piv2:~ $ sudo ip link set can0 up type can bitrate 125000 the terminal freezes so i downgraded my terminal to 5.4.61-v7l ,t ...
1
vote
3
answers
235
views
How to connect Arduino to Raspberry through USB-TTL (called like this in electronics shops)?
I want to connect an Arduino to Raspberry Pi through a USB-TTL converter like this one:
My doubt would be about logic voltage. I know that Arduino works with 5V logic, while Raspberry Pi does with 3....
1
vote
0
answers
225
views
Cannot locate the raspeberry pi pico on my computer (`UF2_Board ` instead of `/dev/cu.usbserial-0001`)
I want to connect to upload code on my raspberry-pi-pico but my computer does not recognize it. When using the arduino cli it seems to be recognized under the UF2_Board instead of the classical /dev/...
1
vote
2
answers
172
views
Problems with I2C communication
Hi I am attempting to test I2C comms between an pi model 4B and teensy 4.1 (running code uploaded from the arduino IDE via usb). While I can read from the slave with a python script if the arduino ...
0
votes
1
answer
62
views
Backpowering from Arduino on USB
I have connected an Arduino MEGA2560 with the Raspberry Pi B+ V1.2 via USB
The idea is to use the Raspberry Pi as gateway to remote flash the Arduino.
So I switch on the Arduino and the Arduino ...
2
votes
0
answers
385
views
LoRa Communication: Sending and Receiving Data with Raspberry Pi Receiver from Arduino Transceiver (RYLR896)
I'm using two RYLR896 Modules to setup a LoRa network. I'm using an Arduino Nano as my Transceiver and a Raspberry Pi 3B+ as my Receiver. While this verbage is currently accurate, this is intended to ...
0
votes
0
answers
100
views
How to mimic RC signals using raspberry pi?
I am working on an automated Quadcopter and I am trying to build a flight controller using Arduino board and raspberry pi.
I don't want to use a transmitter and receiver in this project instead wants ...
0
votes
2
answers
201
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 ...
-1
votes
1
answer
534
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
113
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 ...
1
vote
1
answer
377
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
141
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
228
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 ...
0
votes
1
answer
326
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
288
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
752
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 ...
1
vote
3
answers
3k
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 ...
1
vote
4
answers
712
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
438
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 ...
0
votes
1
answer
1k
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 ...
-1
votes
1
answer
118
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 ...
0
votes
1
answer
210
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
258
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 ...
-1
votes
1
answer
410
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....
1
vote
1
answer
73
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
vote
1
answer
464
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 ...
0
votes
0
answers
1k
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
87
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
26
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 ...
0
votes
2
answers
104
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
132
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
33
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 ...
0
votes
0
answers
155
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
595
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 ...
0
votes
1
answer
41
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
votes
1
answer
115
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 ...
1
vote
1
answer
88
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 ...