10

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 here using an Atmega328P (the processor that is in the Arduino Uno). The estimated average power consumption is 42 µA which has allowed it to run from 3 x AA ...


8

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 other hand, is a real computer with a real OS, has a lot more computing power and memory, has Internet connectivity, can easily run “standard” web servers like ...


7

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 sound etc. A Raspberry Pi can be used to add some features to your project aswell. If you make an Arduino controlled robotic arm, you could add an "user interface"...


6

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 changed since then - bug fixes, optimisations, new API components. And not least the implementation of the Board Manager for installing support for more boards, ...


6

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 any basic microcontroller) is the operating system. The Pi runs many Linux distributions (Debian being the official one), enabling the user to execute complex ...


6

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 makes no sense to use pipes, as both avr-objcopy and avrdude read their data from files, not from stdin. Furthermore, running these in parallel means that ...


5

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 "Access-Control-Allow-Origin: *"


5

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 serial port, which is why you can't see one. Arduino sketches are compiled with a serial port automatically, so once a serial port exists, it can be used for ...


5

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 pointed out by chrisl in a comment, you should not delay within the onRequest handler. I would go further and say that you should not even call dht1....


4

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, which is 2 decimal digits: Serial.print( value, 2); Why do you want to shorten the bytes over the Serial ? You can just as well send two decimal digits and ...


4

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 for adding just a little bit of smarts to a project. Not every project needs an ARM chip, dual cores, or a Linux distro running. In fact, in low power ...


3

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 of fault and accidental crossed circuits than the R pi. Thus is especially true of the ruggedized or industrial arduino versions.


3

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.


3

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 regulator you do need a reservoir capacitor on the power input to your board. 10uF should be adequate. No, you don't need the DTR capacitor if DTR is not connected to ...


3

RobotConfig.h needs to include Arduino.h in order to have those constants.


3

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 f_rounded = ((int) (28.6 * 10.0 + 0.5) / 10.0) = ((int) 286.5) / 10.0 = 286 / 10.0 = 28.6 In Python it is equal (except the cast operator is ...


3

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 a proper heatsink, it will probably start dropping out voltage before reaching 1A, due to its internal thermal shutdown protection.


3

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 build that matches the architecture of your pc. There are a million and one ways of communicating wirelessly between an Arduino and a pi.


3

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 character (byte) and prints to the value (again as a sequence of characters). 45 51 48 45 53 52 45 49 52 45 52 55 55.... 45 is ASCII character value for the ...


3

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 breakout board, many of which are much smaller than a rasberry pi and will have a much better battery life. And very often the abacus-level perf and half a ...


3

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/build So to get started : unzip the binary and update the serial2mqtt.json config. Should be piece of cake. Let me know otherwise via github.


3

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 directory, then open a Terminal and run the install.sh script to install. sudo mv arduino-1.8.3 /opt sudo /opt/arduino-1.8.3/install.sh You will find ...


3

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 only one program. This is not an official definition but it is one way to differentiate. It can be difficult to draw a line where it is one but not the other. ...


3

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 you since that is identical to using the USB - you just use /dev/ttyS0 (or /dev/ttyAMA0 on older Raspberries) instead of /dev/ttyUSB0 or /dev/ttyACM0. Just ...


3

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: pico.name=Raspberry Pi Pico Unfortunately, I don't have any way to give it a proper test as I don't have one of these. But I did go so far as to install the ...


2

Have you looked at the Adafruit Huzzah boards? It's small, inexpensive ($10), comes with wireless capability and a 10-bit ADC for a temperature sensor. If you'll have access to the Internet, then you could use NTP to get time.


2

Has anybody used an Arduino board to host an interactive web page, including user input via Submit / Form ? I have a Tiny Web Server for the Arduino. It is designed to be light-weight on RAM. It supports GET/POST/Cookies for interacting with web forms. Example code and more information on the linked page above. (Can I declare a local network static IP ...


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