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 ...
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 ...
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"...
Somewhat of an opinionated question but I'll give some feedback. It depends on various things:
How much UX and UI you want to give to your client
How easily can you program it
Which is a cheaper solution
How fast do you want the program to run
What is more durable and how long do you want to use the device
To prevent this answer from being lengthy, I'll ...
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 ...
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, ...
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
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 ...
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.
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 ...
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 ...
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.
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.
Writes the string representation of the integer x_value, which is a sequence of ASCII characters.
ByteReceived = (Serial.read());
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 ...
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 ...
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.
Visit https://www.arduino.cc/en/Main/Software in your browser, and click the Linux ARM link under ‘Download the IDE’.
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
You will find ...
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.
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, draw a
blurry line. If a specific board has most of the attributes of SBCs it's
probably safe to call it an SBC. Same for MCU boards.
Processing power may be one ...
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.
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 ...
Assuming you don't have access to a debugger, the most common way is to add debug logging. The ususal algorithm to solve those problems is more or less like this:
} while( ! i_know_why_it_crashes() );
If you cannot add any debug logging because of a flawed system ...
There are many different ways of communicating.
In addition to serial you can use a protocol like SPI or I²C. If the Arduino are in close proximity I²C enables many devices to communicate on a common bus.
The RaspberryPi is a fairly complete linux computer. As such it can be a USB Host to many USB Devices. If you need more serial ports simply buy FTDI equipped USB to serial cables, plug them into a USB hub and plug that into the RaspberryPi.
"It always works if once after the code was uploaded to the arduino...."
Whenever you you reset the arduino the link between the arduino and the rasperry pi is broken momentarily thus causing the code on the raspberry pi to hang/ffreeze and not responding/ showing any valid results.
Try giving a keyboard interrupt by ( Ctrl + Z ) and restart the python ...