Most Popular
1500 questions
6
votes
5 answers
Can I have two separated serial monitor for the same arduino board connected to PC?
I'd like to split serial communication into the two channels: 1) debug info, 2) application data.
There's only one Serial object to use.
However, maybe, there is an alternative way to print data separately, is there?
P.S. I use Nano and UNO.
zhekaus
- 459
- 2
- 6
- 16
6
votes
1 answer
Keyboard.h not found
I keep getting this error message:
"'Keyboard' not found. Does your sketch include the line '#include '?"
... when I have already included Keyboard.h.
#include
void setup() {
pinMode(3,INPUT_PULLUP);
…
chin hui
- 63
- 1
- 1
- 3
6
votes
1 answer
ESP8266 - does it really have terrible wifi range by default?
ESP8266 - does it really have terrible WiFi range by default??
First time to try this module out and we're disappointed with the range.. as per our testing we can only get max 5m WiFi range line of sight (LOS) to our regular WiFi router (TPlink…
BrownChiLD
- 161
- 1
- 1
- 3
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
- 3
- 13
6
votes
2 answers
Is the arduino hackable when using communication shields?
Let's say I have an arduino Uno connected to a W5100 ethernet shield. The arduino communicates with the ethernet shield using the tx0 and rx0 pins. When I upload a new script to the arduino using USB, it uses the same tx0 and rx0. So that made me…
Orry
- 163
- 4
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