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.
419
questions
0
votes
0
answers
375
views
Issue with I2C communication with raspberry pi and arduino
I am new to I2C communication and python coding so please bear with me if my question is naive or my code looks very bad. I am able to achieve I2C communication between raspberry pi and arduino and ...
0
votes
1
answer
714
views
Receiving data with an unwanted character
I'm sending data to my Raspberry Pi 3 from an Arduino Mega via serial communication, but sometimes the Arduino sends a strange character, in most of the time it sends a mirrored question mark. Why ...
0
votes
0
answers
189
views
Node-red on Pi: Unable to send/receive to Arduino Leonardo via USB serial
I'm connecting a Arduino Leonardo to Pi4 (P3b+ has the same issue). I wish to send and receive data from it in node-red (using serial nodes from the standard palette).
I can see that Arduino is ...
0
votes
1
answer
1k
views
Problem with i2c communication between arduino and raspberrypi
I have connected Rpi with Arduino using i2c communication. Pin Configuration: Rpi ---- Arduino Mega SDA SDA SCL SCL GND GND
I also have an encoder attached to Rpi. Encoder `------ Rpi 5V 5V Gnd Gnd ...
1
vote
1
answer
490
views
Addressing PCA9865 Servo Driver
Although not directly related to the Raspberry Pi, the piece of hardware I'm attempting to understand can be utilized by the Pi and it's a relatively basic concept that I'm looking for more ...
1
vote
0
answers
796
views
Can I connect CJMCU-4541 MICS-4514 Carbon Monoxide Nitrogen Oxygen Sensor with Raspberry Pi zero
This sensor CJMCU MICS-4514 Carbon Monoxide Nitrogen Oxygen Sensor is arduino compatible can it be used with raspberry pi
0
votes
0
answers
295
views
Arduino Mega to Raspberry pi 3 Uart communication stops after a short while
I have been trying to setup a data stream from Arduino to rpi using an USB to Uart converter. I am using 4 startbytes and then reading all 36 bytes of data at once. Baudrate, parity and stopbits are ...
-1
votes
1
answer
2k
views
Error occurred: Please Check "Store archive output"
I am trying to download and install the Arduino IDE on the Raspberry Pi 3 Model B Vol 2. I have followed the tutorials and attempted to download the Arduino 32 arm bit tar file on the pi. I am ...
0
votes
0
answers
336
views
reading EMG on Rpi3 using Teensy 3.2 on usb serial
We are using MyoWare EMG sensor and reading the RAW EMG pin as well as filtered SIG pin on the board. What it basically does is sends an analog value as a fraction of the input Voltage, which in this ...
1
vote
1
answer
178
views
Peculiar features of I2C communication between RPi and Arduino
I am currently trying to establish two-way communications between an Arduino Leonardo and a Pi model B using the I2C bus, as slave and master respectively. Spookily, the Pi can successfully send ...
3
votes
2
answers
847
views
Can I drive a custom LED matrix from my Pi
I have an idea for a project, but I am unsure of the best route to take.
I am going to create a custom 11x10 LED matrix (addressable LEDs like WS2812) with the intention of lighting up certain LEDs ...
2
votes
1
answer
181
views
I2C Communication between Arduino and RPi failing when Arduino is sending data
I'm trying to read some data from the Arduino slave and when I receive the data it shows some numbers but not the correct ones.
I'm using node and i2c-bus module, also tried with wiringPi but got the ...
-2
votes
1
answer
382
views
How can I reproduce arduino's shiftOut( ) fonction on a raspberry pi 3+ in C langage?
Can someone help me to reproduce arduino's shiftOut( ) fonction on a raspberry pi 3+ in C langage?
Preferably using bcm2835 library.
-1
votes
1
answer
3k
views
Serial Communication of <raspberry pi zero w> with <arduino nano>
Background
I'm trying to control some motors by raspberry pi zero w.
I did, but the PWM produced by Software was unstable. So I decided to use arduino uno with zero.
(Zero is required because I ...
4
votes
2
answers
8k
views
How to send and read a string from Raspberry pi to Arduino via serial interface?
I was trying to send and receive data between Raspberry pi and Arduino UNO.
I'm able to send and receive a string from Arduino to Pi using Serial.println.
I spent hours searching a better tutorial or ...
3
votes
1
answer
291
views
How to get Data from Rasperry to Arduino?
Id like to get a simple integer from my pi over to my Arduino (live, so while both are running and with Minimum latency), but I cant use any Pins because im already using all of them because I use a ...
1
vote
2
answers
220
views
Raspberry Pi and Arduino Due Spi
Is there any way to establish SPI communnication between Raspberry Pi 3B + and Arduino Due. Both only support master mode.
I tried to google but mostly answers from 2013 come up. Has there any recent ...
1
vote
0
answers
64
views
Raspberry Pi3 not receiving HTTP request from Arduino
I have been running an application on an older original Raspberry Pi. The Raspberry Pi was running Incredible PBX and I have some tables set up in the MySQL database to store data received from an ...
1
vote
1
answer
324
views
Incorrect i2c read bytes
NOTE: Please read the bottom. There's a plot twist.
I'm reading three bytes and my NodeJS code reads 3, 192, 144 in decimal while my logic analyzer reads 0x03, 0xC0, 0x10 which translates to 3, 192, ...
2
votes
1
answer
175
views
Arduino slave initiating an I2C transmission to Raspberry Pi master
Is there any way for an Arduino slave to send a byte array to the raspberry pi master without the master having called on it?
-2
votes
2
answers
272
views
ARDUINO Code in Raspberry Pi 3
I'm new with this kind of projects and I'm trying to do my graduation project using Raspberry Pi 3 and vibration sensors. The sensor is Piezo LDT0-028K and I'm using ADS1115 to convert analog to ...
1
vote
1
answer
3k
views
Rpi Python Serial Test Program
In Terminal its working but not working using python code.
My Code:
import serial
from time import sleep
ser = serial.Serial ("/dev/ttyS0")
while True:
received_data = ser.read() ...
0
votes
0
answers
85
views
How to read voltage data from arduino nano (slave) using i2c communication
python code:
import smbus
import time
bus = smbus.SMBus(1)
SLAVE_ADDRESS = 0x10
def requestreading():
# try:
#
# b1 = data[0]
# b2 = data[1]
# b3 = data[2]
# ...
3
votes
2
answers
7k
views
Rpi to Arduino Serial UART Communication Tutorial
I'm trying to connect my Arduino to my Raspberry Pi using the GPIO pins. I understand that the Pi uses a 3.3V signal while the Arduino uses a 5V signal so I bought a bi-directional logic level ...
-1
votes
2
answers
862
views
Unable to install Arduino 1.8.9 on raspberry Pi 3B+
Im trying to install the arduino IDE on my raspi.
I am using the .tar from the website to get the last version (Linux Arm 64b)
I tried from interface and from the terminal, in the opt or in the usr ...
1
vote
1
answer
71
views
Serial comms to Arduino unexpcted behaviour
R Pi 3 B+, Arduino Mega 2650
I am trying to send motor control instructions via user input from the Pi to the Mega.
Pi side code...
import serial
port = "/dev/ttyACM0"
rate = 9600
s1 = serial....
0
votes
1
answer
810
views
Mapping Arduino pins to Raspberry Pi pins
I am following instructions on wiring an LED screen to an Arduino. I have a Raspberry Pi 3 Model B, so I am having to "interpret" the instructions. I'm stuck on a step where the instructions say to ...
0
votes
2
answers
286
views
Is it possible to compile and Arduino Sketch into a C++ file to run on Raspberry Pi?
Since Arduino uses C++ for its programming with libraries that are specific to Arduino, is it possible to compile your sketch and have it run as a C++ program on a Raspberry Pi? I saw there was ...
1
vote
1
answer
52
views
Breadboard / Jumper Cables Instead of Arduino Uno Shield
I have the following hardware that mounts on top of Arduino Uno:
https://www.cooking-hacks.com/documentation/tutorials/control-hvac-infrared-devices-from-the-internet-with-ir-remote/
I need to ...
0
votes
0
answers
72
views
Send IP packets between two Arduino or two Raspberry boards
I have two Arduino boards and I want to do a small project with them.
I want them the do the following:
Firstly, I want to send an IP packet through the network from the first Arduino to the other. ...
1
vote
1
answer
328
views
I2C Level Shifter 3.3V Raspi 5V Arduino Mega
I am connecting RasPi (Master) via I2C with Arduino Mega (Slave).
Do I need a level shifter for this or is it non compulsory?
As of now my code runs for some time before I get a Remote I/O Error ...
0
votes
1
answer
324
views
How to control Arduino Uno using Raspberry Pi after image processing is done?
I am working on a project which is basically a robot car to collect garbage after the image in front of it is determined as Garbage (image processing using Raspberry Pi). I want my car movements to be ...
-1
votes
1
answer
381
views
Serial read from arduino not working properly
I am trying to read analog read from ardunio connected to my raspberry pi. Following are my raspberry pi and arduino codes.
Raspbery pi:
import time
import serial
ser = serial.Serial('/dev/ttyACM0'...
1
vote
1
answer
152
views
Raspberry pi + L298 H bridge motor speed reduced when battery circuit shows 50%
I made a raspberry pi car. The pi is powered by two 18650 (Breewell New Multipurpose Flat Top 18650 Battery 2000 mAh 3.7 Volt Lithium Genuine Rechargeable Battery -Pack of 2 https://www.amazon.in/dp/...
2
votes
3
answers
3k
views
RPi to Arduino I2C block_data read fails with "Errno 121, Remote I/O error" (Python3)
Folks, I cringe to bring this up as it has been discussed frequently, but I am at a loss.
Background: I have a Raspberry project with about 3000 lines of Python3 code and want to add a wireless ...
0
votes
2
answers
2k
views
Protect raspberry i2c pins with general ground connection with Arduino
I have connection like on the screen I have 12 arduinos. Each of them has one general 12V power supply. The problem is when i connect one of the Arduino supply (while all scheme works) Raspberry pi ...
1
vote
1
answer
204
views
Weird output on python IDE terminal
I am trying to get my Pi 3 communicated with arduino but am getting output which i can't understand.
My arduino code:
char dataString[50] = {0};
int a =0;
void setup() {
Serial.begin(9600); ...
2
votes
1
answer
1k
views
Convert C code to python for 16 bit CRC check
I have some C code running on my Arduino that does a CRC calculation. I can't get it to work on Python with my RPi. I suspect it's because the Arduino is using a 16 bit unsigned integer and RPi is ...
-1
votes
1
answer
231
views
RPI as server for home automation
I would like to ask for an advice in choosing controller/platform for my project. Basically what I want to do is RPI local server with web server, where I can display data from arduino sensors and ...
0
votes
1
answer
227
views
NRF24l01+ Arduino to Raspberry - Receving working randomly [closed]
I am using a Raspberry Pi 3B+ (RF24 lib) and Arduino Mega (RF24 lib)
I have cleaned the pins and soldered a 10 uF capacitor between vcc & gnd
The distance between the two modules has no effect.
...
2
votes
0
answers
123
views
Trying to use pigpio wavechains to drive very specific acceleration and deceleration
I'm working on a kinetic sculpture that involves a large pendulum swinging perpetually left to right.
I'm using a raspberry pi 3 B+ / arduino uno with a DM860AC to control a nema 34 stepper.
I was ...
0
votes
2
answers
585
views
Arduino sensors without board directly on Raspberry Pi
I'm a beginner, just so you know.
Okay, I've a Arduino IR Infrared sensor right next to me, some jumper cables and a Raspberry Pi.
My question is: Do i need an Arduino board to hook the sensor up to ...
0
votes
1
answer
1k
views
How to use an ultrasonic sensor with nanpy on Raspberry Pi?
I have been trying to run the following code on a Raspberry Pi, to use the ultrasonic sensor HC-SR04 with an Arduino that is a slave to a Raspberry Pi:
from nanpy import ArduinoApi
from nanpy import ...
1
vote
0
answers
2k
views
How many arduinos can I control with one raspberry pi 3 B+
I have been reading about using a Raspberry Pi to control an Arduino. My goal is to control several Arduinos using a single Raspberry Pi, in order to automate several tasks, it is important to note ...
0
votes
0
answers
169
views
Raspberry Pi and Arduino echo over USB
I am trying to create an "echo server" with Arduino UNO, so that user could send some message to it through Raspberry Pi and receive the same response. On Pi I am using Python and PySerial library to ...
0
votes
3
answers
2k
views
Incorrect Encoder tick counts using Raspberry Pi
Hi I have a DC motor with encoder which has a PPR count of 990 (No load RPM = 107). However, I tried to read the number of ticks (on a Raspberry Pi 3B) by rotating the wheel 1 turn and I get a PPR ...
0
votes
0
answers
638
views
sample rate of ADC with raspberry pi and arduino
I connected the ADC PCF8591 to the raspberry pi3 and the number of samples per second is about 80.
When I connect this ADC to Arduino, the number of sampls per second with baud rate 9600, about 270 ...
0
votes
0
answers
896
views
Wireless Gyro/Accelerometer Sensors for Raspberry Pi
Is there a way to have a wireless gyro/accelerometer sensor connected to Raspberry Pi?
Have worked with single MPU-6050 in the past. Was wondering if there was a way to have a wireless sensor instead....
0
votes
1
answer
2k
views
Rubbish Values (b'\x00\x00\x00 ... ') - UART of Arduino to RPi 3B
I am getting b'\x00\x00\x00 ... ' together with the data I want. For example, my Arduino is writing 'hello raspberry' to RPi. At the RPi, it receives 'b'\x00\x00\x00 ... hello raspberry\r\n '. Why?
...
0
votes
1
answer
424
views
Serial connection with raspberry pi to arduino, works only once and needs a hard reset every time
so I am working on a project where I have to connect an arduino to the raspberry pi through serial and then transfer the input from the raspi to another I2C device. So, just to test things out and ...