Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [raspberrypi]

For questions about integrating the Arduino microcontroller with the single-board computer Raspberry Pi. Questions just about Raspberry Pi are off-topic but can be asked on Raspberry Pi Stack Exchange.

7
votes
5answers
1k views

When Raspberry Pi is preferred over Arduino

We are doing some projects in class. One of my friends is doing a weather and humidity station using raspberry Pi with a couple of sensors and LCD. I have a little experience in Arduino. So I asked ...
6
votes
1answer
3k 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 ...
4
votes
2answers
433 views

Design Dilema — What hardware?

I'm trying to build a smart thermostat for a particular application. I have the following design criteria and goals for the system: Must be able to set up and monitor the device from either a mobile ...
4
votes
2answers
1k views

Which tft works on both Arduino Uno and Raspberry pi

Ideally I'd like a 2.8 inch and it to be touch screen. But most of all I'd rather it work on both boards without much hassle.
3
votes
2answers
198 views

ADC with better performance

I need to sample voltage at a very high rate (say for like 10000 Hz) and with a very good precision(at least 10-12 bit ADC will do). So I am in need of an Analog-to-Digital Converter(ADC) which has a ...
3
votes
1answer
245 views

Arduino --> RPI I2C issue

ok, I feel like this should be simple, but I am at a loss Simple code mock up to send 4 bytes(mimicking a float) over I2C from Arduino to rpi. I am trying to create a state machine so that I can ...
2
votes
3answers
635 views

Why connect arduino with Rasberry pi?

I have a question about connecting a Arduino with Raspberry Pi. What is the benefit of connecting the two?
2
votes
2answers
9k views

Rounding up and Down

My arduino is meisuring the tempature and gives values like: 28.58 Degrees Celcius. I would like to round this up to one decimal. I could make the variable one shorter by cutting the "8" off which ...
2
votes
3answers
6k views

Receiving two-byte int values over serial

I am using Python smbus write_word_data method to send int values from a Raspberry Pi to an Arduino using I²C. This seems to be the correct method. When I send values from 0-255, I see the following ...
2
votes
1answer
3k views

A1 was not declared in the scope

I'm trying to put all my settings in a config.h file and then #include it in the Arduino sketch. Here's what my config.h looks like: RobotConfig.h #ifdef BOT //hardware pins int motor1Pin = ...
2
votes
3answers
573 views

Serial communication on Arduino Uno

I have a Raspberry Pi 3 connected to the serial of my Arduino Uno (pins 0 and 1), but I also have another device connected to two other serial pins on the Arduino (pins 10 and 11, using the ...
2
votes
1answer
1k views

Install Arduino IDE in Raspberry Pi 3 model B

I am trying to install Arduino IDE in my Raspberry Pi model 3 but it is unable to locate file path. I use the following steps sudo apt-get update && sudo apt-get install arduino and in ...
2
votes
1answer
252 views

How to connect an Elegoo Nano to a Raspberry Pi and program it?

I own an several Elegoo Nanos and a Raspberry Pi. I would like to connect an Elegoo Nano to the Pi and upload nanpy onto the board and control it's GPIO pins. I have plugged the nano into the Pi and ...
2
votes
2answers
1k views

Bidirectional communication between Arduino and Raspberry Pi over USB possible?

Is it possible to have bidirectional communication betweeen an Arduino Uno Rev 3 and a Raspberry Pi Modell B+ running Rasbian? They're connected ofer USB, and it would be good if I could use Python on ...
2
votes
2answers
6k views

How to read data from Arduino with Raspberry Pi via I2C?

I have connected a Raspberry Pi 2 model B to an Arduino Uno via Bi-Directional Level shifter, from this BLOG: Raspberry pi GND ---------- GND Arduino 3.3v ---------- ...
2
votes
0answers
228 views

Software flashing attiny167 from RPi with avrdude

I am trying to flash a program onto an attiny167 (already bootloaded with the micronucleus bootloader) with a Raspberry Pi via avrdude and USB. Background I have 50 Raspberry Pi 3B's connected to an ...
2
votes
0answers
985 views

How can I connect an arduino to a raspberry pi via an HC 05 bluetooth module and transmit data?

I am currently undertaking a project where I am attempting to build a bluetooth thermometer using an arduino. I have the temperature sensor working and returning temperature readings via a usb ...
1
vote
3answers
249 views

Is arduino a single board computer? [closed]

First excuse me if tags are not reflecting the content, While watching a video about single board computer (SBC) I got confused that it doesn't mention arduino as SBC. I always considered it as SBC. ...
1
vote
2answers
390 views

Differences between Arduino IDE versions

I run Arduino IDE on both my Mac and under Raspbian on a Raspberry Pi, both running the latest version of OS. The Raspberry Pi has Arduino 2:1.0.5+dfsg2-4.1 and I am running the latest 1.8.4 on macOS....
1
vote
3answers
2k views

Send information (such as a string) over digital pins

I wan't to send information from my arduino digital pins to another arduino's digital pins like a string, or a char. Can I do this without something like Software Serial? The reason I am asking is ...
1
vote
1answer
18 views

Do we need ARM build for arduino while interfacing R-pi and arduino

I wonder whats ARM build for Linux? Do we really need ARM build when we work with arduino? I need to integrate arduino and raspberry pi over wi-fi, I don't know whether I need ARM in this case. Also ...
1
vote
1answer
1k views

Arduino USB and 9V

I'm working on a project for interfacing the Arduino with the Raspberry Pi. I need to be able to exchange serial data between the two using the USB port. My question is, can I do that while having ...
1
vote
3answers
871 views

Communication between Raspberry PI (Windows IOT) and Arduino with ESP8266

I'm currently working on a Home Automation project where I have a Raspberry Pi on Windows IoT which communicates with multiple arduinos running on FreeRTOS (I need multi-tasking). At the moment the ...
1
vote
1answer
109 views

Why do you need to shift bits when reading from an analog sensor? [closed]

I was playing around with some analog grove sensors and looking at examples (https://github.com/DexterInd/GrovePi/blob/master/Software/Go/grovepi/grovepi.go - this specific example is in go and for ...
1
vote
2answers
2k views

Arduino I2C communication between Raspberry Pi

We are trying to communicate between multiple Arduino's (in this example a Nano and a Mega) and a Raspberry Pi. The Raspberry pi is defined as master and the Arduino's as slaves. We would also like ...
1
vote
2answers
1k views

Arduino & RPi communication via GPIO [closed]

so I'm working on communication between arduino and RPi via GPIO pin. It's basically connecting them by using a cable jumper. So I have a 2 channel relay shield attached to my arduino, and I've been ...
1
vote
1answer
100 views

How to work with analog readings using RPi and Firmata?

For context: I'm working on a whose goal is to sense the environment. This process is done using an Arduino Uno and an RPi. The easiest way that I found to perform communication between both boards is ...
1
vote
1answer
912 views

Using Raspberry Pi to Receive Float from Arduino using NRF24L01

Good day. I've been learning on how to transfer data from Arduino to Raspberry Pi wirelessly using NRF24L01 based on the following reference: Raspberry Pi 3 Tutorial 14 – Wireless Pi to Arduino ...
1
vote
1answer
105 views

Android, Raspberry, Atmega, SQL communication

Hej there, I have a small project at home and I'm curious if people have some advice/idea for me. Because I'm not sure if the communication between the different devices is the way to go. This is my ...
1
vote
1answer
101 views

Confused between which arduino to use for project? [closed]

I am planning to build a smarthome working model with arduino. I will also need to connet to wifi(not ethernet). So I was wondering which setup would be the best:- Arduino Uno + ESP8266 Arduino Yun ...
1
vote
2answers
242 views

serial data gets spoiled

I use this small program on my Raspberry Pi to recieve a string sent by my arduino. import time import serial ser = serial.Serial('/dev/ttyACM0', 9600) def check_for_command(): bytestoread = ...
1
vote
1answer
719 views

Will M2.5 screws fit the holes in the Arduino Uno?

I'm developing a sump pump monitor/alarm setup that will include an Arduino Uno as well as a Raspberry Pi. Both boards will be mounted to a piece of wood. The Arduino is designed to take M3 screws, ...
1
vote
2answers
713 views

Arduino and Raspberry Pi - initiate I2C communication as slave

I would like to interconnect Raspberry Pi and Arduino over I2C. RPi will act as MASTER while Arduino is SLAVE. I understand that I2C is designed that only master can send messages to slaves and then ...
1
vote
1answer
394 views

Arduino Pi-3 Ubuntu MATE not compiling

When I try to upload a script to my Genuino Uno from the Linux ARM distro on genuino.cc/downloads it spits out this during compiling. avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission ...
1
vote
1answer
84 views

Raspberry Pi Arduino Installer broken

I am tring to use ShorTie8's new arduino ARM installer on my RPI B+ by copying this into my terminal: cd sudo apt-get update -y && sudo apt-get dist-upgrade -y wget https://raw....
1
vote
0answers
79 views

Arduino Modbus slave error

I am trying to use Arduino as Modbus- RTU slave and Raspberry Pi as a Modbus master I have interfaced Max485 (RS485 to TTL converter) with Arduino and Rs485 to USB converter in Raspberry Pi, Initially,...
1
vote
1answer
924 views

MQTT over serial

I'm planning to build a 32 relay IOT node next to my Raspberry Pi. The relays will be controlled by an Arduino Mega 2560. The Pi will run Home Assistant and Mosquitto so I would prefer to communicate ...
1
vote
0answers
153 views

How to cross compile Arduino code?

How do you cross compile Arduino code using Arduino-Makefile? I have an Arduino attached to a Raspberry Pi. Compiling the Arduino C code on an x86 machine in about 2 seconds, but doing the same ...
1
vote
0answers
457 views

Connect Arduino + WiFi Shield to Raspberry Pi

I want to send collected data (temperature sensor) from my Arduino via the WiFi shield to my Raspberry Pi. Can I do that with the WiFi library that exists in Arduino IDE ?
1
vote
0answers
48 views

Serial Write fails to send when Motors moving

I have an unusual bug with the code I have written for my rover V2 robot. I have a raspberry pi running some computer vision code written in opencv tracking an object doing the heavy processing. ...
0
votes
3answers
75 views

Deploying an Arduino Uno R3 standalone [closed]

I have an Uno R3 with a sensor board and a temperature sensor. I'm running a simple temperature check and would like to store that data outside the Ardunio for keeping records, graphs, etc. I powered ...
0
votes
3answers
842 views

Power a Raspberry Pi 3 from an Arduino Uno

I would like to power my Raspberry Pi 3B using an Arduino Uno. I have been able to do this by connecting the 5v on the Arduino to the 5 V on the Pi and connecting the GND to GND, and the Pi ...
0
votes
3answers
53 views

Diagnosing crashed Arduino Uno

I have an Arduino Uno connected to a motor controller over I2C. The Arduino accepts commands from a Raspberry Pi via the USB serial line. I'm trying to diagnose a problem where the Arduino will ...
0
votes
1answer
83 views

Arduino - Raspberry Pi serial communication

I need to connect a Raspberry Pi and an Arduino Uno through serial communication and decided to follow this guide, which mentions the use of a voltage divider. I understand the connection to the ...
0
votes
1answer
305 views

Getting wrong values from serial.read() connected to a Raspberry Pi

I set up a serial connection and sending integers from a Raspberry Pi to an Arduino. This is the Python code in my Raspberry Pi: import serial ser = serial.Serial('/dev/ttyACM2', 9600) ser.write(str(...
0
votes
1answer
56 views

Capacitor Questions

I've designed a board (HAT) that uses the ATmega328P microcontroller, and I think I might have made some mistakes in the board design. The design is most like the Arduino Pro mini, but with a 5A dual ...
0
votes
2answers
575 views

Arduino Leonardo as USB Keyboard with WiFi module

I have two PCs: the first is connected to the Arduino via WiFi, this will instruct the Arduino what keys to send, and the second PC is connected to the Arduino via USB that will act as a USB Keyboard ...
0
votes
1answer
471 views

Trying to map a room with Arduino controlled bot [closed]

What you see above is a map of my room. The boxes in black are obstacles and the box in red is my bot. Now I want my bot to go around the room, avoiding all obstacles, but at the same time, covering ...
0
votes
3answers
2k views

How to send sensor data from Arduino through NRF24L01 to Raspberry Pi

I am able to send text from the Arduino wirelessly to RPi. I am now trying to send the sensor data I'm measuring to the Pi. This is what I have below: int moisture = A0; int temp = 3; //Skipping ...
0
votes
1answer
228 views

Serial communication between arduino and raspberry pi works once, then stops working

I'm using a Arduino Uno Rev 3 connected over usb to a Raspberry Pi Modell B+ running Rasbian. Here ist the arduino code: int input = 0; String command = ""; // beinhaltet den aktuellen befehl int ...