Most Popular
1500 questions
6
votes
1 answer
What is the difference between Arduino board and Genuino Board?
I've got an Arduino UNO REV3 SMD EDITION.
In the Arduino Editor, I've selected Arduino/Genuino Uno.
In a tutorial, I saw Hardware required : Arduino or Genuino Board
What is the difference between Arduino board and Genuino Board?
Sébastien Temprado
- 183
- 2
- 2
- 9
6
votes
1 answer
Is it possible to print a custom object by passing it to Serial.print()?
I googled about it, but can't find the answer. As I would guess I would have to inherit from the Print class and somehow pass to its print methods the part of my object I would like to be printed. But I am not sure how to go about it or if it is…
Mykolas
- 165
- 4
6
votes
2 answers
Detect if Serial1 and Serial2 are defined, at compile time
I have my library that uses Serial, Serial1 and Serial2 to establish various logging scenarios. Library user would define the config at class constructor, using simple byte constants like 0, 1 and 2.
Problem is, Serial1 and Serial2 are not available…
Passiday
- 163
- 4
6
votes
1 answer
Arduino Digital Input Causing Output Problems
I am working on a simple project using an Arduino Mega 2560 that involves reading a 12-bit binary encoder signal and which is used to cycle a digital pin high and low (depending on the angular location of the encoder).
My problem is that when the…
Jason Abbas
- 63
- 3
6
votes
4 answers
Stopping / starting DC motor with Limit Switches and on/off button
I have an Arduino UNO with 3 switches attached (2 limit switches, 1 activation switch). I'm trying to make the activation switch turn the motor forwards once hit, then wait for any of the limit switches to be hit and stop the motor. The next step is…
ldprice
- 131
- 1
- 1
- 10
6
votes
4 answers
How do I transfer more than 1 byte at once via SPI bus?
I have an AD5685R DAC that I am trying to communicate with over SPI. Per the datasheet,
...These [24] bits are transferred to the input register on the 24 falling edges of SCLK and are updated on the rising edge of /SYNC
where /SYNC is used as…
Dang Khoa
- 173
- 1
- 1
- 6
6
votes
2 answers
'Serial1' was not declared in this scope
Trying to do serial communication between 2 Arduino Unos.
Code:
#include
int ledPin = 13;
int board; // 1 = Uno. 2 = Mega.
int on_off; // 1 = On. 0 = Off.
int buzzerPin = 9;
int Ack_tx = 2; //Acknowledgement tx.
int rec;
void…
Aki
- 61
- 1
- 1
- 2
6
votes
2 answers
Properly using separate tabs with Arduino IDE
I'm trying to split up a large project of mine into separate tabs in the Arduino IDE and I'm having more than a few troubles with it. My main trouble is finding a way to have routines in extra tabs access the Serial object; because it's really hard…
Bo Thompson
- 261
- 1
- 2
- 12
6
votes
1 answer
References (e.g, libraries and tutorials) for connecting the 24-bit ADS1256 ADC to arduino
The ADS1256 chip is a high precision 24bit, 8 channel, analog digital converter based on SPI communication that is suitable for biomedical applications and perfect for sensing ECG and EEG signals. I want to hook it up to an arduino, e.g., an arduino…
mrsteve
- 181
- 1
- 5
6
votes
1 answer
Why was the Atmega16U2 used on the Arduino UNO as a USB to Serial converter?
This is the first time that I realized that extra SMD IC near the USB port of the Arduino UNO is actually a fully fledged microcontroller, I thought that it was just a USB to Serial converter. Further research into this chip left me with more…
skillz21
- 171
- 1
- 1
- 9
6
votes
4 answers
How can Arduino's 8 bit Microcontrollers handle C++
I have just started getting into Arduino and c++ programming!
For all the talk on the internet about c++ being incompatible with 8-bit and even 16-bit microcontrollers, how is it that Arduino Microcontrollers can safely handle c++ code, in terms of…
Curious
- 61
- 1
- 3
6
votes
3 answers
How to get the firmware (hex) file from a .ino file containing the code
I currently have a .ino firmware file that I use in the Arduino IDE to program an ATmega328 micro-controller. I would like to get the file that the Arduino IDE uses to program the micro-controller.
Probably the IDE uses a hexadecimal (hex) file or…
Eduardo Cardoso
- 183
- 1
- 1
- 6
6
votes
4 answers
Can you fry an arduino with nothing plugged in to it?
I only get to work on my arduino every few weeks, so sometimes and get interrupted a lot by small children, so if I completely forget what is on the firmware, then I unplug the pins (because I haven't got anything soldered on there) should I be 100%…
Peter Turner
- 311
- 1
- 2
- 7
6
votes
1 answer
How to optimise TX power for ESP8266?
I have multiple ESP8266 units programmed using Arduino SDK and I would like each one of them to adjust the transmission power to lower the power requirements.
Arduino allows setting the TX power of the ESP8266 using the function…
FarO
- 339
- 1
- 4
- 15
6
votes
1 answer
How important is the INT pin of the MPU6050 (GY-521)?
I want to wire multiple MPU6050 (at least 16 of them) to an arduino UNO for development (then nano for production). So I first started wiring one MPU6050 to an arduino like shown on the diyhacking website or in the picture below:
as you can see in…
Paiku Han
- 179
- 1
- 1
- 4