Skip to main content
19 votes

What does "dtoverlay=dwc2" REALLY do?

The answer to your question title has been hard to word better than gregeric explained: dwc_otg is the driver that has been heavily patched to squeeze most performance & function in host mode on ...
jdonald's user avatar
  • 2,922
11 votes

Raspbian Stretch: Getting Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'

I actually fixed this error going step by step, apt seems to have a bug in the way it handles ca-certificates-java and openjdk-8-jre-headless on raspbian. So I did : sudo apt-get remove openjdk-8-...
Johnride's user avatar
  • 211
10 votes

Python serial permission issue

@LiWi's answer will work temporarily, but the permission change will be lost once the device is removed or the server rebooted. A permanent solution is to add your user to the dialout group, which ...
Cerin's user avatar
  • 2,271
7 votes
Accepted

How to use Arduino devices with Raspberry Pi?

"Arduino devices" are really just general purpose devices that operate on 5V logic and can be connected to a bus style supported on an Arduino, such as UART, SPI, or I2C, none of which originated with ...
goldilocks's user avatar
  • 59.4k
7 votes

Level of Hackability of raspberry pi

To update Krzysztof's great answer, Broadcom finally publicly released some code, licensed as 3-Clause BSD, to aid the making of an open source GPU driver. The "rpi-open-firmware" effort to replace ...
nealmcb's user avatar
  • 171
7 votes

Failed to connect: org.bluez.Error.NotAvailable - Error

You do not need to connect with Bluetoothctl. With Bluetoothctl, use exactly most commands as you show; then after pair, leave this window but not close. Open new terminal and use rfcomm bind rfcomm0 ...
jpka's user avatar
  • 71
6 votes

How to get Data from Rasperry to Arduino?

You can connect the Arduino to the Raspberry Pi with an USB cable. That gives you a serial connection. On the Raspberry side, you can use a library like pyserial. On the Arduino side, you can read ...
bb1950328's user avatar
  • 171
4 votes

Meaning of cmd param in write_i2c_block_data

When you issue a block write/read from the Pi with: bus.write_i2c_block_data(i2c_address, register, list of bytes) Example: bus.write_i2c_block_data(80, 0, [49, 50, 51]) or bus.read_i2c_block_data(...
deltatango's user avatar
4 votes

Are the SPI pins 5V tolerant?

I have experimented with interfacing between the PI GPIO lines and 5V HC logic. I have tried it both with the PI as an input and as an output, and experimented quite carefully. Configured as outputs,...
Robotbugs's user avatar
  • 261
4 votes

communicate with arduino over serial

You need to do a few things before being able to use /dev/ttyAMA0 Add your user (that will use ttyAMA0) to the dialout group: sudo usermod -a -G dialout pi (pi is the user here) Disable linux ...
deacs's user avatar
  • 161
4 votes

Shutdown Pi via USB stick

I see two ways of doing this: 1. UUID Based You could write a very simple script, possibly in Python, to check for a specific UUID to be plugged into the Pi. The script would then shutdown the Pi. ...
Patrick Cook's user avatar
  • 6,365
4 votes
Accepted

Send data from Python to Arduino through serial port

I do this all the time. Two-way communications works just fine. Yes I keep my ports open continuously. UNLESS I am running the IDE. The IDE requires that I not have any other programs trying to ...
SDsolar's user avatar
  • 2,358
4 votes
Accepted

Digital data reading using GPIO

I am surprised your search did not find any solutions. How do you think computers communicate? The simplest solution is to use a serial link. For Arduino to Pi connect the Arduino's TX pin to the ...
joan's user avatar
  • 71.3k
4 votes

Connecting 2 Raspberry Pi together

There are a variety of options for connecting two Raspberry Pis together. The easiest, if both Raspberry Pis are already on the same wireless network, is not to bother with a cable and just ...
larsks's user avatar
  • 653
4 votes
Accepted

Using Arduino kits with Raspberry Pi 3

There are a few significant differences between a Pi and an Arduino hardware interface wise: The Arduino uses 5V logic whereas the Pi uses 3.3V logic. Some sensors can be used either way, powered by ...
goldilocks's user avatar
  • 59.4k
4 votes
Accepted

Connect to Raspberry Pi Over the Air Without Internet

Wow... Interesting project! You're lucky to be involved in something like this as it's the best learning experience. Anyway - to your question: The problem of communicating with oceanic sensors has ...
Seamus's user avatar
  • 22.4k
4 votes
Accepted

Arduino slave initiating an I2C transmission to Raspberry Pi master

This is not how I2C is specified and supposed to work: The aforementioned reference design is a bus with a clock (SCL) and data (SDA) lines with 7-bit addressing. The bus has two roles for nodes: ...
Ghanima's user avatar
  • 15.9k
4 votes
Accepted

How to send and read a string from Raspberry pi to Arduino via serial interface?

Finally I was able to find a solution. I used the example 2 from this post posted in Arduino forum https://forum.arduino.cc/index.php?topic=396450.0. I have edited python code also. Arduino code // ...
smc's user avatar
  • 297
4 votes
Accepted

Moved from main Stack Overflow: Udev Rules Not working with Rasberry Pi - Teensy connection

Traditional unix preassigned device numbers for every possible device at the time the kernel was compiled, and a script would then probe the system and create device files for devices that actually ...
user10489's user avatar
  • 993
4 votes
Accepted

Can a program be stored in flash memory on raspberry pi and run without a monitor and internet connection like on an Arduino?

The Pi just needs a boot medium and some storage. This is commonly an inserted SD card but for recent model Pis this could be a USB stick instead. An attached screen and keyboard (and internet) is a ...
joan's user avatar
  • 71.3k
3 votes

What should I use for wireless communication between an Arduino and a Raspberry Pi

The most common wireless communications for arduino/Pi/sensors are: Wifi RF (something like a 433Mhz Tx/Rx module) Bluetooth Those are simply the communication channel and any/all will work - the ...
KennetRunner's user avatar
  • 1,050
3 votes
Accepted

Arduino UNO and Raspberry Pi

The answer lies within the pros and cons of the devices and weather they meet the goals of your project. Raspberry Pi pros More powerful/faster - good if you have a project that requires intense ...
Michael Daffin's user avatar
3 votes

Simple data transmission from multiple Arduinos (client) to Raspberry pi (server) wirelessly

You've chosen a difficult route. If there's anything whatsoever you can do to get some cables into the freezer you should do so. You can now do things with Bluetooth Low Energy (BLE) on a Pi without ...
goobering's user avatar
  • 10.7k
3 votes

What can an RPi-Arduino combo do that an RPi cannot by itself?

The Arduino has a couple of advantages over the Pi: analog input and output pins. The pi does not have any analog pins, so things like driving a servo or reading an analog sensor may require ...
Steve Robillard's user avatar
3 votes

Arduberry integration between the Arduino part and the Rpi3 file system?

The Arduberry communicates with the RPi over a simple serial line (as would any arduino), there is no direct access to the RPi filesystem. However, you can write a sketch for the Arduberry to ...
jogco's user avatar
  • 497
3 votes
Accepted

Arduberry integration between the Arduino part and the Rpi3 file system?

I was a little confused about that board until I found this answer here, which says it does indeed have an Atmega 328 microcontroller on it, and this this photograph, showing the bottom of the board: ...
goldilocks's user avatar
  • 59.4k
3 votes

Servos on Arduino run fine connected to Mac, poorly connected to Raspberry Pi 3

Your GeekDuino is based on ATMega328 which AFAIK doesn't provide any UART flow control. So, if you send too many bytes at once, you will lose some of the bytes and thus risk to get erratic behavior ...
Dmitry Grigoryev's user avatar
3 votes
Accepted

PiCameraMMALError: Failed to enable connection: Out of resources (other than memory)

As @Dave Jones commented, problem is in function foto_segs(): import serial import os from picamera import PiCamera from time import sleep # Initialize camera global amd only once camera = PiCamera(...
spellanser's user avatar
3 votes
Accepted

Programming ATmega328P over Pi UART

This can be done with another Arduino; See https://www.arduino.cc/en/Tutorial/ArduinoISP This uses the SPI interface, and you should be able to write a program to do similar on the Pi. The Gertboard ...
Milliways's user avatar
  • 60.7k
3 votes
Accepted

Trouble installing the CH340 driver on Raspbian Wheezy

"Of course, for this to be able to work on the Raspberry Pi, I'd need to install the required driver for it" have you tried it? My Pi has drivers for CH340, as do most Linux distributions, although I ...
Milliways's user avatar
  • 60.7k

Only top scored, non community-wiki answers of a minimum length are eligible