10 votes

When Raspberry Pi is preferred over Arduino

The claim that the Pi is more "powerful" is a bit misleading. What does "powerful" really mean? And is it relevant to making a weather station? I made a temperature and humidity sensor as described ...
  • 35.3k
8 votes

Why connect arduino with Rasberry pi?

Interfacing hardware is easier with the Arduino: more available I/O pins capable of sourcing and sinking more current, 5 V I/O, analog inputs, very predictable timings, etc. The Raspberry, on the ...
  • 37.2k
7 votes

Why connect arduino with Rasberry pi?

Why add an Raspberry Pi to an Arduino? There are some things that simply are beyond the possibilities of Arduino. The first thing that would cross my mind is video processing, HDMI output, decent ...
  • 2,686
7 votes
Accepted

How to allow cross-domain requests on ESP8266WebServer

Add the CORS header to every response, not only for 'preflight' OPTIONS request. The OPTIONS support is optional, but the response returning the 'shared resource' must contain the CORS header "...
  • 16.4k
6 votes
Accepted

Differences between Arduino IDE versions

Debian is always somewhat behind the latest software No, when it comes to the Arduino IDE Debian is frozen on an ancient version. 1.0.5 is considered to be too old to use. Many many things have ...
  • 103k
6 votes

When Raspberry Pi is preferred over Arduino

As opposed to the Arduino boards, the Raspberry Pi is a single-board computer with a quad-core CPU, a GPU, on-board RAM, and many peripherals. The main difference between the Pi and the Arduino (or ...
  • 161
6 votes

Why do I have to burn the code to make it run?

On a Unix shell, separating commands with the pipe character (|) means “run these commands in parallel, feeding the standard output of each one to the standard input of next one”. In this context, it ...
  • 37.2k
5 votes

Greyed out port for Raspberry pico in Arduino IDE - Ubuntu 20.04

I've come across this and this is how I worked around it (on Windows, but I suspect the problem and solution is the same). A brand new Pico or one not programmed by the Arduino IDE does not have a ...
  • 701
5 votes
Accepted

Convert float to byte, from Arduino to Raspberry Pi i2c

First of all, if you want the Arduino to send data as a slave, it should do so onRequest(), not onReceive(). Thus: void setup() { Wire.begin(0x08); Wire.onRequest(handleRequest); } Next, as ...
  • 37.2k
4 votes

Rounding up and Down

You can round in C by multiplying for the significance, adding +0.5, round down (equals as casting to an integer) and divide. float f_rounded = ((int) (f * 10.0 + 0.5) / 10.0); 28.6 will be: float ...
4 votes
Accepted

Rounding up and Down

As far as I know, the Serial.print (or println) does rounding up and down. All you have to do is take a float variable and do Serial.print( value, 1); Without extra parameter, the default is choosen, ...
  • 3,107
4 votes
Accepted

Why would anyone use Arduino in 2017?

This is the ATtiny. It costs < $1 and is completely capable of most tasks that a hobbyist requires of a chip. Truthfully, it’s more than capable of many tasks a pro requires as well. It’s perfect ...
4 votes

MQTT over serial

As the author of the serial2mqtt gateway. Maybe it's time to have a new look. I've included the binaries for different platforms in the build : https://github.com/vortex314/serial2mqtt/tree/master/...
  • 41
4 votes

How to allow cross-domain requests on ESP8266WebServer

just add this line before every response: server.sendHeader("Access-Control-Allow-Origin", "*");
4 votes

How to allow cross-domain requests on ESP8266WebServer

server.enableCORS(true); The server will add the response Access-Control-Allow-Origin=* header
3 votes

Why connect arduino with Rasberry pi?

I prefer to use arduino type boards as data acquisition units then transfer the data to an actual computer (or raspberry pi) in most of my projects. Arduinos are, in my experience, much more tolerant ...
  • 131
3 votes

ADC with better performance

ADS7835 from Texas Instrument. can be interfaced with Arduino Mega or Raspberry Pi It is interfaced through SPI, 12 bit data, and up to 500kHz throughput rate.
  • 1,258
3 votes

Capacitor Questions

Every active chip should have adequate decoupling. That is the point of C3, to provide decoupling for the MCU. It is required. While you don't need capacitors on the output of a non-existent ...
  • 103k
3 votes
Accepted

A1 was not declared in the scope

RobotConfig.h needs to include Arduino.h in order to have those constants.
  • 2,616
3 votes

Power a Raspberry Pi 3 from an Arduino Uno

You can't. The on-board regulator of the Uno, the NCP1117, is only able to supply up to 1A before starting to dropout voltage (hence your undervoltage warning). Even worse, because the NCP1117 lacks ...
  • 2,102
3 votes
Accepted

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

The ARM build of the IDE is for running the IDE on ARM systems. If you want to run the IDE on the pi then you need the arm build. However if you want to run the IDE on your PC then you need the IDE ...
  • 103k
3 votes
Accepted

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

ser.write(str(x_value)); Writes the string representation of the integer x_value, which is a sequence of ASCII characters. ByteReceived = (Serial.read()); Serial.print(ByteReceived); Reads a ...
  • 7,861
3 votes

Why would anyone use Arduino in 2017?

An arduino board is really a breakout for a micro processor. Microprocessors you can get separately. A rPi is really a full system without that modularity. There are also other size factors for that ...
3 votes
Accepted

Install Arduino IDE in Raspberry Pi 3 model B

Visit https://www.arduino.cc/en/Main/Software in your browser, and click the Linux ARM link under ‘Download the IDE’. cd Downloads/ tar -xf arduino-1.8.3-linuxarm.tar.xz Extract the file to your /...
3 votes

Is arduino a single board computer?

The Arduino isn't a computer. It is a programmable microprocessor / microcontroller. Generally a computer can run multiple applications where most programmed devices like the Arduino are running ...
  • 985
3 votes

Connecting an Arduino Nano to a Raspberry Pi Zero

You can connect via: UART I2C SPI All are available on the Pi's GPIO header and on the Arduino. You will of course need logic level translation for a 5V Arduino. Using UART is probably simplest for ...
  • 103k
3 votes
Accepted

Arduino Core for the Raspberry Pi Pico

Official support. Apparently there's official support for it, now anyway. I was digging around in the Arduino-mbed core, trying to help someone else, specifically in the boards.txt and spied the line: ...
  • 4,118

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