15
votes
Access serial monitor on linux cli? Using arduino-cli?
Programs such as screen, minicom or (my favorite)
picocom are useful if you want bidirectional communication
between the Arduino and the host computer. If you only want to read
what the Arduino sends, ...
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 ...
10
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
"...
9
votes
Access serial monitor on linux cli? Using arduino-cli?
I use minicom.
$ sudo apt-get install minicom
... blah blah blah ...
$ minicom -D /dev/ttyACM0 -b 115200
Minicom can take a bit of getting used to. Use CTRL-A to initiate a command sequence. CTRL-A X ...
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 ...
6
votes
Accepted
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 ...
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 ...
5
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/...
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 ...
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
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
4
votes
Accepted
Sending data struct with 2 int fields from Arduino to Raspberry via NRF24L01
Your problem is that you are communicating between an 8-bit and a 32-bit architecture.
On an 8-bit architecture int is 16 bits. On a 32-bit it's 32 bits. Why the difference? Because "it is". ...
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 ...
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 /opt ...
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
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 ...
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 ...
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:
...
3
votes
Accepted
Arduino pulls i2c bus down
For I2C to work there needs to be pull-ups on SDA and SCL somewhere (not one for each device). Typically 4.7k resistors or thereabouts would be used.
Also you need a bi-directional voltage level ...
2
votes
Arduino & RPi communication via GPIO
What you are asking really makes no sense at all.
You are starting from the mid-point of your project and wondering how to communicate using bare GPIOs without really knowing what it is you want to ...
2
votes
Accepted
Arduino UNO vs NANO or MICRO with RPi3
The Nano uses the same chip (ATMEGA 328P) that is on the Uno. So putting the same code on the Nano should work the same as the Uno.
The Micro uses a different chip. Whether or not the code from ...
2
votes
When Raspberry Pi is preferred over Arduino
In "pure hardware" based systems, real time systems, you can always prefer Arduino over Pi with OS. Power consumption, price are other plus points for UNO. Pi is always the better one in complex ...
2
votes
Accepted
How to work with analog readings using RPi and Firmata?
It does not appear that Firmata has proceeded with the ability to change the analog reference source. You referenced one of the issues opened for it, but I don't see anywhere where it committed to the ...
2
votes
Accepted
How do I make Arduino IDE use a specific version of GCC in Debian?
As Majenko pointed out, I should have used a tarball from the official site instead of the repositories. Which makes me wonder why that package wasn't deprecated or something...
2
votes
Arduino - Raspberry Pi serial communication
You CAN NOT reliably power any model Pi from the Arduino 5V output.
You can interconnect the Arduino serial to the Pi using a voltage divider or (preferably) a level converter, as suggested in the ...
2
votes
Accepted
Is arduino a single board computer?
It may be impossible to draw a sharp line that separates single board
computers from microcontroller boards. There are, however, several
attributes that can help differentiate them and, in a sense, ...
2
votes
Method to iterate over the bits in a byte sent over serial
In all the examples below, value is the value of the byte
LSB -> MSB - so 00001111 would turn ON the first 4 devices and turn OFF the last 4
for(int i = 0, mask = 1; i < 8; i++, mask = mask <&...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
raspberrypi × 152arduino-uno × 70
serial × 27
i2c × 18
arduino-mega × 12
python × 12
arduino-ide × 10
arduino-nano × 9
nrf24l01+ × 9
sensors × 8
power × 8
usb × 8
esp8266 × 7
programming × 7
wifi × 6
bluetooth × 6
communication × 6
spi × 4
pins × 4
uart × 4
atmega328 × 3
softwareserial × 3
iot × 3
mqtt × 3
motor × 2