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
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
800 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
528 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
275 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
144 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
401 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
303 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
101 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
739 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
643 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
833 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
868 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
809 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
301 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
602 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
64 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
8k 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
320 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
234 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
994 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 ...
2
votes
1answer
448 views

Getting a Raspberry Pi and an Arduino Uno to Work Together

I am trying to figure out different ways to get my Arduino Uno R3 and Raspberry Pi 2 B to work together. I am looking for suggestions/projects that I can do that include both the Arduino and Pi ...
1
vote
2answers
3k views

Connecting Raspberry Pi to Arduino via USB port. Run python scripts with PySerial

I connect my Rasberry Pi to Arduino Nano (Uno) and all works when I send every command through python shell: pi@raspberrypi ~ $ python2 Python 2.7.3 (default, Mar 18 2014, 05:13:23) [GCC 4.6.3] on ...
1
vote
1answer
784 views

Raspberry Pi GPIO pin layout + Cooking Hacks Shield

I am studying the schematic diagram of the Raspberry Pi to Arduino shield from cooking hacks and I noticed that there is an inconsistency in the labeling of the pins. So, this gives me two questions. ...
3
votes
2answers
1k views

OpenHAB to I2C instead of Internet/Ethernet

I want to use OpenHAB to make home automations using a Pi to run it and send and receive data from an Arduino, which will be controlling lights, reading sensors, etc. But to avoid the cost of an ...
0
votes
1answer
2k views

Vehicle detection (OpenCV). Arduino or Rasp Pi? [closed]

I am new to open cv, and I'm starting to do a project. I want to use open cv for vehicle detection. I prefer using C++ language. Should I go with Raspberry pi or Arduino ? And why(what are the ...
0
votes
0answers
361 views

What's the best way to control a Matrix of 10 x 20 LED with Raspberry Pi?

I developed a Tetris-Clone in Java. I want to run it on the Raspberry Pi and display it on a 10 x 20 Home-made-LED-Matrix. My question is: What is the best way to achieve that. Here are the solutions ...
1
vote
1answer
1k views

Raspberry Pi 2 (programmer) can not detect my Arduino via USB, even with alamode installed

I am working on a project where I am using a Raspberry Pi to program an Arduino Nano 328. I have used the following commands (more or less) to create a useful environment on the Pi: Install commands:...
0
votes
1answer
131 views

Can this motor shield be used with a raspberry pi and not an arduino?

Is it possible to wire this motor shield designed for the Arduino up and get it to work for a Raspberry Pi 2? http://linksprite.com/wiki/index.php5?title=Motor_Shield
3
votes
1answer
3k views

Cannot send data from RaspberryPi to Arduino using UART

I want to send data from RaspberryPi to Arduino UNO using UART. I tried sending my data 10 times to Arduino but it received it once. It reads as follows. Connected to PC pi: ÿpi: ÿpi: ÿ 1) I ...

1 3 4 5 6 7