Questions tagged [terminal]

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software.

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software. A user typically types commands into the terminal to perform specific tasks.

23 questions
55
votes
12 answers

How do I print multiple variables in a string?

Say I have some variables that I want to print out to the terminal, what's the easiest way to print them in a string? Currently I do something like this: Serial.print("Var 1:");Serial.println(var1); Serial.print(" Var…
sachleen
  • 7,565
  • 5
  • 40
  • 57
10
votes
3 answers

Upload code on Arduino Leonardo using command line

I'm trying to upload a compiled .hex file on an Arduino Leonardo, using the terminal. Uploading a sample code using the Arduino IDE works well, and from the Arduino IDE I got the upload command avrdude -C/etc/avrdude.conf -patmega32u4 -cavr109 -v -v…
Alex
  • 315
  • 2
  • 3
  • 9
5
votes
3 answers

esp8266 garbage out only when using SoftwareSerial

I'm trying to operate the esp8266. When I connect RX+TX pins to pins 1+2 on the Arduino, everything works fine. but when I'm trying to use software serial all hell breaks loose and the recieved data is garbadeged (It seems like everything is ok but…
Mercury
  • 101
  • 1
  • 5
3
votes
1 answer

Emulating a generic Mifare USB peripheral device with RFID-RC522

Hardware Dev Board: Arduino Nano V3.0 Module: RFID-RC522 13.56 MHz Cable: USB A - USB Mini B Configuration Physical Code /* * -------------------------------------------------------------------------------------------------------------------- …
voices
  • 131
  • 1
  • 1
  • 4
2
votes
0 answers

Arduino Yun Serial Terminal Overflow Issues?

EDIT: after reading up on some stuff and with the help of the comments people left, I'm certain that it's an overflow issue, but I'm not sure how to solve that... So I just got an Arduino Yun today and have been figuring out how to use it. I seem…
cnsumner
  • 193
  • 1
  • 7
2
votes
1 answer

Serial.write() prints a variable twice

I have this code: #include #include #define GPS_RX_PIN 2 #define GPS_TX_PIN 3 TinyGPSPlus gps; SoftwareSerial ss(GPS_RX_PIN, GPS_TX_PIN); void setup() { Serial.begin(9600); ss.begin(4800); } char…
user1584421
  • 1,425
  • 3
  • 26
  • 36
2
votes
3 answers

Use terminal command to verify software

I've seen that it is possible to use terminal command to verify software instead of using the IDE. Something like arduino --verify lab.ino. Is there a way to do so on Mac OS? Thank you
DiCaprio
  • 131
  • 3
1
vote
2 answers

Communicating via Serial Monitor but not able to get comms via Terminal outside of Arduino IDE

I am using Arduino Nano 33 BLE. I am able to communicate via Serial Monitor within Arduino IDE, but not able to communicate via Terminal, outside of Arduino IDE. I am using Teraterm, do I need to do any additional setting? No error messages. It does…
Oscar
  • 21
  • 2
1
vote
0 answers

Resuming Serial Connection after sleep on Arduino M0

For debugging purposes I want my serial connection to resume after sleep. After running LowPower.sleep() from the library, I don't get any new serial messages in the serial monitor. Several factors seem to be at play (which I've…
rfii
  • 170
  • 6
1
vote
0 answers

Arduino wait for incomming data from blynk terminal

I need to add wait command in code where it waits the next input value from blynk terminal to arduino? How can I do that? please help, I will appreciate your help, Thank you. Here is my code BLYNK_WRITE(V0) { String i = param.asStr();…
Time Gold
  • 103
  • 1
  • 6
1
vote
0 answers

Read from Blynk terminal number to arduino

I have a problem in sending numbers from blynk terminal to arduino serial monitor. When I send any number from blynk terminal the arduino always getting 1. How can I get any number please help me. Thank you. Here's my code BLYNK_WRITE(V0){ int…
Time Gold
  • 103
  • 1
  • 6
1
vote
2 answers

Baudrate is set to 9600 automatically even if specifying a different value

You initialize the serial communication via USB with Serial.begin(baudrate); where baudrate is a long specifying the number of symbols you want to send over the connection per second. You can put pretty much any number in there, but not every…
LukasFun
  • 295
  • 1
  • 4
  • 17
1
vote
0 answers

Using CoolTerm to receive Serial Data into a saveable file

Have functional code that reads data from sensors. Found that I need to use a terminal program to grab the data from the serial output using CoolTerm by Roger Meier. Wasn't able to test it with my code yet because of this issue: (No Data Received…
ThermoRestart
  • 23
  • 1
  • 8
1
vote
0 answers

Arduino Pro Mini ATmega 328P: garbage output on serial console

Arduino Pro Mini ATmega 328P 3.3V 8MHz, connected to USB port via USB to Serial breakout board built around the FT232RL FTDI chip. JTAGenum project code uploaded to the Arduino. I opened terminal and tried to run test command (without connecting…
minto
  • 221
  • 2
  • 9
1
vote
0 answers

Different data showing in arduino serial and hyperterminal

I've connected to RS232 device with arduino. When showing data in arduino its showing as: 235 157 191 157 159 153 157 0 While in Hyperterminal it's showing as: 101 102 103 104 How to get the same data as hyperterminal in arduino too? My Arduino…
1
2