Questions tagged [print]
The print tag has no summary.
31 questions
0
votes
1
answer
2k
views
Construct Strings with UTF-8 characters from data
I am printing some ASCII art to the Serial monitor from Arduino UNO, with some success. However, using string literals uses more memory than I would like. I wanted to try constructing the strings/...
0
votes
1
answer
974
views
How to read and Serial.print the contents (current values) of an 8-bit register?
Currently I'm using:
ADMUX = 0b01100000; //example
for (int i = 7; i >= 0; i--) {
Serial.print(bitRead(ADMUX, i));
}
This correctly prints:
01100000
But is there a simpler way?
Before ...
-1
votes
1
answer
115
views
Serial.parseInt works for first menu but now in a sub menu
I am trying to use the Serial object to print some lines giving the users some options to select by entering an int. It works at this main menu. But when the user selects 1 I use Serial again to print ...
2
votes
0
answers
56
views
How to input delay and increase volume measurements with hall sensor detection
I'm writing code so that, every time a hall monitor senses, my code additively measures 5 liters of volume as it prints each detection. Then, this data is sent via Bluetooth to a phone. (This is for a ...
2
votes
2
answers
6k
views
Printing the array using print and serial write function in Arduino Uno
I have, one program with only using printing array and other with serial write and print function for the array, while using serial write and print function I get these extra characters between the ...
1
vote
1
answer
101
views
Need HELP!! Serial communication has a very "Strange Problem"
I am working on building a serial command receiver. The idea is came from the boot loader. However, I got a very strange problem that I have no idea what could cause it.
As the first screenshot show, ...
1
vote
1
answer
3k
views
Arduino Serial.readString() trouble
Hello everyone I write my code and have some troubles.
When I write on in my serial monitor my buzzer condition wasn't changed.
Can you help me realize the reason. I wrote code with int type and it ...
0
votes
1
answer
543
views
What does an Arduino do if the serial connection is closed on the other end?
I have a simple method that simply waits for an input, computes a response, and sends it:
void loop() {
if (Serial.available() > 0){
input = Serial.read();
if (input == 10){
...
1
vote
1
answer
1k
views
Printing vairable with U8GLib
I have this code that takes temperature and humidity values from a DHT11 sensor and number of faces from an external python code and prints them on an OLED screen but instead of values of variables it ...
1
vote
1
answer
1k
views
Int64_t aka long long acts as int32_t and overflows at 2^31
I have an int64_t variable. When I add another int64_t variable
and convert it to a double to print it on the serial monitor, it acts as if it was a int32_t variable. This is the program:
int64_t a =...
0
votes
1
answer
200
views
Trying to do hello world app for Nokia 5110 LCD with arduino yun and johnny five
I have a Nokia 5110 LCD which is using this display PCD8544, I am using a arduino yun and johnny five I have hooked up the following pins. So far with my node app all that happens is the lcd lights up....
1
vote
0
answers
362
views
Arduino UTFT Touch align RIGHT with margin
I am using a TFT Touch screen on an Arduino Mega, with UTFT and UTouch libraries.
When I use the code below, the text is aligning to right, all the way to the edge of the screen. Is it possible to ...
0
votes
1
answer
595
views
Serial Moniror, '\r' and Realterm
I'm wanting the results from each of the 6 ultrasound modules to print on their respected line after new results have been generated instead of spitting out a continuous flow (see attached image). I'...
1
vote
0
answers
62
views
How to pause the analog value according to input signal applied to a particular digital pin?
I'm working with a digital blood pressure meter using arduino nano. I need to display the pressure reading during inflation and deflation of the cuff instantly. And when an input signal applied to a ...
0
votes
1
answer
94
views
Line not printing int in Serial Monitor
I'm trying to make a kernel for a macro-key maker, this is the starting page's code:
char m[] = "What do you want to do? Type the following commands in this "
"terminal:\nnew --> Creates a ...