Most Popular
1500 questions
6
votes
2 answers
How do I split a number into individual digits?
How would I split part1 into 2-3 digits and put them into num1, num2, and num3?
int FMSTATION = 10250;
int update_display() {
int fm_station = FMSTATION ;
int part1;
int part2;
part1 = (FMSTATION / 100);
part2 = (FMSTATION % 100);
…
Austinthemighty
- 63
- 1
- 1
- 3
6
votes
1 answer
Arduino as a custom I2C slave device
I'm trying to interface with a master I2C device that doesn't exactly follow the normal I2C protocol.
The only difference really is in the read request. A "normal" I2C read operation looks like this ([M]aster, [S]lave):
S | SLA+R | ACK | Data | Ack…
user2827019
- 71
- 3
6
votes
1 answer
Shift Register w/ Internal Pullups?
Is there a chip that is just a parallel in / serial out shift register but with integrated internal pullups?
I could use a full-blown I/O expander but I really just need more momentary button inputs. I don't need outputs and I would rather not…
squarewav
- 191
- 5
6
votes
2 answers
What is the proper way to implement PID?
I'm having some trouble conceptualizing how to go about implementing PID into my drone. There are a few ways I'm thinking about implementing the pipeline:
Having one PID Object for each of the six motors.
Having one PID Object for each axis.
How I…
tuskiomi
- 205
- 1
- 11
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
- 600
- 4
- 9
- 20
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…
Gregor Stopar
- 61
- 1
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