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
1
vote
1answer
312 views

pyserial: Force Arduino to /dev/ACM0? [duplicate]

(Using Raspberry Pi 3B, Raspbian Jessie) I have a Python script that uses an Arduino with Pyserial. I want to start this script on boot, but my problem is that sometimes the Arduino binds to /dev/...
1
vote
0answers
128 views

USB Transmitter for RasPi, or GPIO solution Thru SPI

OK, so i am attempting to send and receive data from an arduino Uno to my ras pi via the NRF24 chips. i have been successfully able to communicate between the two HOWEVER, the pins i need for my 5" ...
2
votes
0answers
337 views

Sending Message to Arduino From Raspberry Pi with NRF240l1

I'm trying to send string from Raspberry Pi from Arduino. I can pong out and pong back. But can't send string. I changed main code. I can't send. Here is my Raspberry Code.. #include <cstdlib> #...
4
votes
1answer
4k views

How to use Arduino devices with Raspberry Pi?

I bought "RFID RC522" & "GY-NEO6MV2", and I need a useful guide for both of them in order to use them with Raspberry Pi 3 Model B. I also want to know if there is a guide or a course for using ...
3
votes
1answer
2k views

Raspberry Pi 2 Model B NRF24L01 Pin Connections

I'm trying to connect Arduino Nano and Raspberry Pi 2 Model B. But there is a problem that I really couldn't handle for more than 10 hours. When i try to ping out from Raspberry Pi, it says "Check ...
3
votes
4answers
7k views

Can't receive data from Arduino to Raspberry via nrf24l01+

Please help me to solve the problem. I do not get data at Raspberry. I have: 1. Arduino Nano + DHT11 + NRF24l01+ 2. Raspberry Pi 3 + NRF24l01+ Raspberry RF24 library https://github.com/...
1
vote
2answers
933 views

I2C cannot get data

A colleague of mine gave me a device that is able to send data via i2c. He has already been able to recieve this data on the Arduino via the following library/Function https://www.arduino.cc/en/...
0
votes
1answer
587 views

RF communication between Pi and Arduino

I'm interested in making a home automation system with my raspberry pi 2 as the master device running the openhab server and an arduino as the slave device that switches the relays and reads the ...
6
votes
1answer
15k views

How to communicate between Pi 3 and an Arduino using UART from GPIO?

I need to transfer data between Arduino and Pi. I have an Pi 3, and I used a simple circuit with a voltage divider to deal with 3.3v vs 5v logic levels. But I got nothing. Then, I used only Pi3 with ...
0
votes
3answers
4k views

Controlling an Arduino UNO from Raspberry Pi 3 (Controlling not programming)

I am working on an autonomous robot, which uses a python script running on my RPi 3 to detect traffic lights. I want that as soon as the RPi detects that the traffic light has gone off, it would ...
0
votes
1answer
819 views

Python script will not write to file when run on boot

I am using a script that takes the arduino serial and writes it to an out.dat file. The scripts works fine when run after boot, however when I added the script to /etc/rc.local it runs the script, but ...
6
votes
4answers
535 views

Connect raspberry pi to 20 arduinos

I am building a bunch of slave devices (Arduinos) that operate autonomously, but will report data back to a single raspberry pi and update their clocks from the pi's time. I've only worked with one ...
2
votes
3answers
6k views

How to read a long int via i2c?

I tried to connect an Arduino Uno with my Raspberry using the i2c bus, with code and wiring suggested here. This example is sending only one byte from RPi to Arduino and back, and everything works ...
0
votes
1answer
281 views

Raspberry Pi and Arduino Notification System

I am trying to make a notification system using an ultrasonic sensor with an Arduino to detect when there is something in the way of a door, once the obstruction is detected, I have a timer start, ...
6
votes
3answers
14k views

SPI: Raspberry PI master and Arduino slave

I'm trying to have a Raspberry PI act as a SPI master and send data to an Arduino Nano (one of the cheap clones). I partly succeeded, but I don't get a continuous communication, and some bytes get ...
5
votes
2answers
11k views

How to read data from arduino with raspberry pi via I2C

I have connected Raspberry pi 2 model B with arduino uno via Bi-Directional Level shifter. Raspberry pi GND ---------- GND Arduino 3.3v ---------- 5v ...
0
votes
1answer
145 views

Make sure serial data sent

I am trying to sent data to an Arduino Nano via serial using python, but it doesn't work yet. Is there a way to ensure that what I am trying to send was sent? (This is in order to understand where ...
4
votes
1answer
2k views

How can I use SPI to communicate with 3 or more Arduinos?

I have 3 arduino's each with 6 LDR (light sensors) for a total of 18 analog inputs giving 0 to 1023 of data. What I'd like to do is to get all 18 sensor data from each arduino within 1 second. I ...
2
votes
1answer
407 views

Which Pi can emulate a custom USB Client?

Ok here is my problem: I'm making a product where I need to plug as a receipt printer and then I need to compute some data, read an NFC tag and send the data to a web server each time a receipt is ...
0
votes
2answers
312 views

Raspberry Pi- Arduino Serially driven servo problem

I have been lately working on a ball tracker robot using image processing and I have interfaced Arduino and Raspi via USB. While the servo.write() function works perfectly when i program the Arduino ...
2
votes
2answers
1k views

Serial write 1,000,000 baud slow

I'm communicating serially with an Arduino Mega2560 from Raspberry Pi v1 model B. The Mega is connected to the Pi's USB slot. I'm using the rxtx library on the Pi to send data at 1,000,000 baud. ...
3
votes
1answer
1k views

Detecting Pi has been unplugged instead of shutdown

I've been extending a weather station / webcam we have here at our model flying field. It has now an Arduino gathering the weather data and starting the Pi in a specific time interval (5 or 10 minutes)...
3
votes
1answer
106 views

Using Unpowered USB

Does the Raspberry Pi's USB need the 5V/GND wires in order to work with peripherals that are already connected to the same 5V/GND rails as the Pi? I have an application where a RPi is connected to an ...
0
votes
1answer
3k views

Can I use the Arduino IDE to compile an Arduino sketch to run on the Pi?

Given the popularity of the Arduino IDE and the wealth of existing Arduino sketches, can I use the Arduino IDE to write or compile sketches that will run on the Raspberry Pi?
0
votes
1answer
4k views

Reading Arduino weather sensors via RS485

I'm student from Czech and currently I'm working on a meteostation project. I've got an arduino set up, with plenty of weather sensors, as well as WH1080 sensors connected. But right now, I'm only ...
1
vote
1answer
757 views

Meccano + Raspberry Pi + Arduino

I've just started to work with Adruino and Raspberry Pi. One of the problems I've been wondering about is robot's body. What can I use to build my robot? I'm reading a book, an old one, about ...
0
votes
1answer
648 views

Wireless vibration sensor

I have a raspberry pi and I want to connect a vibration sensor. The connection to the sensor should be wireless. I want to have approximately a range from 30m up to 100m. What would be a low price ...
1
vote
2answers
839 views

Raspberry Pi 2 Arduino Mega USB Communication

we are trying to control our rover via wifi. the idea is motor drivers are connected to arduino mega and the mega is connected to raspberry pi 2 (raspbian os) via USB. raspberry pi is receiving ...
3
votes
2answers
5k views

I2C using wiringPi or IOCTL in C, more than 2 bytes

I'm willing to send 20 bytes at a time to Arduinos via I2C bus. I'm writing a C program (that will become a Daemon) that should achieve this, and thus I downloaded via Git the last wiringPi library, ...
1
vote
1answer
871 views

How to switch on LED by php interface with Raspberry | Arduino

In my project I've connected a Raspberry Pi 2 and Arduino by serial USB. I would switch on some leds, by a php interface. So, the PHP interface is ok, but when I chose the led to put on, nothing ...
4
votes
1answer
814 views

How to install Arduino IDE on Raspberry Pi

How do you install the Arduino IDE on the Raspberry Pi running an ARM version of Ubuntu or Raspbian? There doesn't seem to be any official ARM release. Both distros have an "arduino" package in their ...
0
votes
1answer
114 views

Puzzling problem with Arduino on USB at boot

I have an Arduino Uno (R3) monitoring a magnetometer connected via USB to a PI (B) running latest Raspian. My Pi Python program scans the USB every second reading an integer value via ser = serial....
0
votes
1answer
302 views

Sensors With Raspberry pi Model 2

Can i connect any Sensor with raspberry pi? For example, I have a water flow sensor like this one, and an ultrasonic sensor like this one. Is it possible to connect it to a Raspberry Pi? Or I'll need ...
3
votes
2answers
5k views

How to serially communicate between raspberryPi and arduino using usb to serial converter?

How do i serially communicate between them, just using the usb ports on the raspi and the rx, tx pins on the arduino? Are there any better ways to communicate between raspi and arduino?
2
votes
0answers
265 views

i2c random write failures errno 5

I have a panel of 6 Rainbowduinos. Each Rainbowduino has an 8x8 tricolor LED panel with a ATMega chip that you can program just like a regular Arduino. I have a master Arduino that drives it as a ...
7
votes
3answers
26k views

Use Arduino code on raspberry pi?

I am not that familiar with the Arduino boards. For christmas, I got a sensor kit from my aunt. The source code is all for the arduino and I don't have an arduino. Is there a way I could re-compile ...
1
vote
2answers
613 views

How can I drive a RGB led strip on SPI with chip select and another SPI item?

I am driving a RGB led strip (ldp6806) with SPI. Since the led strip does not have a chip select input, I would like to know how I can drive this strip with another SPI item connected to the Pi (like ...
4
votes
1answer
3k views

How to connect Raspberry Pi and Arduino with SPI?

I'd like to connect my Raspberry Pi and my Arduino Uno with SPI. I saw a solution here, but sy wrote at the end that this is wrong, because Raspberry Pi transmitting/recieving 3,3V on the pins and ...
4
votes
1answer
2k views

Serial connection Arduino - Pi

I am having an Arduino Nano sending "48" or "49" via a serial connection to a Pi. I'd like to use this input, but for some reason the connection always cuts out after a few seconds with the following ...
-2
votes
1answer
70 views

Timer to Reset System

Is there a way to make it so my RPi arcade machine will reset after 5 minutes when I press a button (Restart). Can this be done with an arduino?
1
vote
0answers
31 views

USB power doe Arduino

How good is the power regulation on a RPi 2 ? I have a small robot controlled by an RPi2 and some Arduinos, and have two choices to power it (the Pi, that is). I can make a dedicated 5V regulated ...
3
votes
3answers
9k views

Are the SPI pins 5V tolerant?

I am looking at programming a ATMEGA328/Arduino Uno over the SPi pins and Adafruit has a tutorial on how to do it - > https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins?...
1
vote
3answers
9k views

Serial Communication C/C++

I was wondering if its possible to communicate between Arduino ann RPi using Serial Communication in C/C++, it's possible with python but didn't find a suitable library for C/C++ ?
0
votes
2answers
327 views

Which RF transceiver to use for a network using Rpi or Arduino?

I am looking for advice on how to create a RF network to send and receive data both at the same time. The master Arduino or Rpi Zero receives temperature readings from the slave nodes which passes it ...
1
vote
0answers
238 views

i2c wait until Arduino is ready

I have an application connecting an Arduino and a Raspberry Pi via i2c. The Arduino is running a timer interrupt and the communication needs to occur after the timer interrupt has happened. The ...
1
vote
0answers
95 views

UARTX Rpi Arduino Communication

I have tried establishing UART connection between my rpi and arduino mega, I tried to follow this tutorial {http://blog.oscarliang.net/raspberry-pi-and-arduino-connected-serial-gpio/}, where I use a ...
1
vote
1answer
53 views

Raspberry Wifi Dongle + Arduino fails when I connect one servo

I have got a RaspberryPi powered by a 5V 2A power supply. The Raspberry Pi has got a wifi dongle that works perfectly. Also I have got an Arduino connected to the Pi by USB (Raspberry USB port to ...
1
vote
1answer
1k views

Rpi Slave and Arduino Master [duplicate]

I am beginner of Raspberry Pi. Is it possible for me to use my Raspberry Pi as slave for Arduino Mega to be a master using I2C protocol? I aim image processing by Raspberry Pi to send the steering ...
1
vote
1answer
7k views

NRF24L01 multiple transmitters, one receiver

Helo! I want to build a system, where multiple transmitters (in my case - Arduino Pro Mini) send data to one RPi 2 over NRF24L01. I'm using C++ library for NRF24 from here. On basis of examples/extra/...
0
votes
0answers
2k views

Can I use I2C to connect multiple Arduinos with Wireless Connection

I am very new to stackoverflow and new to using raspberry pi and am in the process of learning how to use it properly. I am currently working with a partner on a project that requires a wireless ...

1
4
5
6 7 8