Most Popular

1500 questions
6
votes
4 answers

send mixed data over serial

I want to launch a communication between two Arduinos, in which case the first Arduino (S) sends data to the second one (R). The type of the data is mixed, consisting of integers, longs, floats and maybe some text. For example: {125, 1250, 12500,…
user3060854
  • 590
  • 4
  • 9
  • 19
6
votes
4 answers

Why/when to use IoT publish/subscribe protocols rather then RESTful HTTP?

I am sending data (GPS coordinates) from Arduino once a minute with HTTP POST request to REST API (in OpenShift PaaS). Data is then stored to MySQL db. Would so called "IoT" publish/subscribe protocols (XMPP, MQTT) be better? Why? When exactly do…
6
votes
6 answers

How to connect Wi-Fi shield ESP-12E-ESP8266-UART-WIFI-Wireless-Shield with Arduino

I have bought this shield from ebay and now I don't know how to use it, ESP 12E ESP8266 UART WIFI Wireless Shield for Arduino UNO R3 Bouclier Sans filfr: There are no instructions in the box or anywhere on internet for this board. The only…
Teenenggr
  • 71
  • 1
  • 1
  • 6
6
votes
4 answers

Infrared TV Remote to Arduino

On the hardware side of things, what is involved in making the Arduino receive signals from a TV Remote? What kind of infrared receiver is needed? Do TV remotes use some kind of channels, encoding, or encryption requiring special receivers or else…
HK1
  • 397
  • 1
  • 4
  • 10
6
votes
2 answers

Avoid the 10 attempts of Avrdude when programmer is not responding

Sometime I update my sketch in the Arduino environment, and when I click on the transfer arrow but forget to plug my arduino (I'm using the UART in my project so every time I need to plug/unplug some wires) it's a drama, avrdude throw this for at…
aqwa
  • 63
  • 4
6
votes
1 answer

How do I read from /dev/ttyACM0 in Linux without a terminal emulator?

I just bought an Arduino Due and I'm having trouble reading from a simple serial IO program. I have a SparkFun RedBoard which is like an Uno. With that, I just ran a "stty" command to configure the baud rate and other terminal settings, and then I…
Metamorphic
  • 477
  • 2
  • 7
  • 9
6
votes
1 answer

Syncing/taking external clock for SPI on Arduino Due

I have an Arduino Due with a SAM3X8E chip and am trying to read SPI data from an external source that is communicating in SPI. I was able to get data by identifying specific bytes that are identifiers but realized that the clock for my board is not…
wallenut
  • 63
  • 4
6
votes
2 answers

Controlling mains (230 V) supply up to 5/10 amps using Arduino

I am looking for a simple, low cost solution to control on/off of mains supply to certain equipment. The control will be done using one of the output pin of Arduino Uno. The input trigger and how to control it is application dependent. e.g.…
Rajendra
  • 301
  • 3
  • 4
6
votes
4 answers

Confusion with ATmega328P and 3.3V/8MHz

Firstly, I have tried to set the bootloader to be 8MHz internal oscillator. I have tried the board setup from here - https://github.com/oshlab/Breadboard-Arduino. And also the breadboard-1-6-x.zip setup from here -…
Paul Grime
  • 211
  • 3
  • 10
6
votes
3 answers

Arduino Hardware serial library with rts/cts flow control support

Does there exist (any user developed etc.) version of the Hardware UART serial library that has support for RTS/CTS based flow control? More interested in the Tx side (Arduino sends data, while the peripheral can back-pressure). The library should…
O.K.
  • 209
  • 1
  • 2
  • 8
6
votes
1 answer

Streaming audio from PC to Arduino over WiFi

Say I wanted to, purely hypothetically, set up a pirate radio station by connecting an Arduino to a WiFi network away from home, streaming music to the Arduino, decoding it, and broadcasting it with an FM transmitter. Given an Arduino (Genuino)…
Joris
  • 163
  • 1
  • 1
  • 6
6
votes
2 answers

User callback functions

I want to write a class that allows the user to attach his own function to a member function that listens for messages coming from a wireless module, so that the user's function can be called depending on the message. I am thinking about using…
Vasil Kalchev
  • 293
  • 1
  • 2
  • 12
6
votes
3 answers

How can I reduce the size of my sketch?

Looks like I'm overshooting the storage of my Adafruit Trinket: Sketch uses 5,600 bytes (105%) of program storage space. Maximum is 5,310 bytes. Global variables use 109 bytes of dynamic memory. Any tips for reducing the footprint of my…
Shpigford
  • 484
  • 2
  • 8
  • 23
6
votes
1 answer

Why does pulse sensor shows gaps when I move it?

I modified the serial code in this way and I don't think the gap is produced by my edit even because it made it even before: ////////// ///////// All Serial Handling Code, ///////// It's Changeable with the 'serialVisual' variable ///////// Set…
Gabriele Giordano
  • 161
  • 1
  • 1
  • 9
6
votes
4 answers

Breadboard for kids

I am interested in teaching young kids how to build arduino projects. I was thinking that using a breadboard may be difficult for them, as the holes are all very close together. It is easy to put the pins in the wrong hole. Are there any breadboards…
Alex K
  • 219
  • 2
  • 8