Arduino UNO Q via IDE - No Serial Monitor Output

Yes, the examples are nice, but a simple “Hello world” does nor print out on the Monitor (Console), this is very confusing?

Hi @smolschneider. Did you try the example sketch provided in the documentation?:

https://docs.arduino.cc/tutorials/uno-q/user-manual/#from-serial-to-monitor

Yes, but this “serial.print” sends the strings to RX/TX which is the UART. I want to send the text to the monitor resp. the Console displaying in the App Lab of the computer screen. Following to the manual this should be done with:

void setup() {
// Initialize the Monitor
Monitor.begin();
}

void loop() {
// Transmit the string "Hello UNO Q" followed by a newline character
Monitor.println("Hello UNO Q");
delay(1000);
}

… but nothing shows up?

Using Arduino IDE 2.3.7, upload the following sketch and check that "Hello UNO Q!" message appears on Serial Monitor at 1 sec intervals.

#include <Arduino_RouterBridge.h>

void setup() 
{
  Monitor.begin();
}

void loop() 
{
  Monitor.println("Hello UNO Q!");
  delay(1000);
}

Q: Do you know the reason for including the Arduino_RouterBridge.h Library in the sketch?

A:
1. After uploading, the message "Hello UNO Q!" resides in the flash memory of MCU. After that it goes from MCU to MPU over the Router Bridge (Fig-1):


Figure-1:

2. Data from MPU goes to the USB-C connector and then to the PC. The USB signal is transformed into asynchronous serial format using virtual COM port and then appears on the ASCII type OutputBox of the classic Serial Monitor of the Arduino IDE.

3. The activities of Step-1, 2 are perfomed when the user includes the following codes at the appropriate places of the Aduino sketch. Note that the classical Serial object is now replaced by Monitor object.

#include<Arduino_RouterBridge.h>

Monitor.begin();
Monitor.print();

…. I tried all this and it did not work. I want to run som ePython programs (like calculation a fibonacci) number and print out the result to the Console (? Monitor on the App Lab of my Computer ; a MacPro). … the App Lab looks to be a cool environment, but there must be a way to print out a value to the screen? … with out all the bridge stuff?

It is good for every beginner to follow the experiments given in this document.

Hi @smolschneider.

You can use the print function for that:

https://docs.python.org/3/library/functions.html#print

For example, if you add this statement to your Python script:

print("Hello, world!")

You will see Hello, world! printed in the "Python" view of the Arduino App Lab "Console" tab when the script is executed by the App.

Dear GM, many thanks for your explanations. I tried all your code hints …. nothing appears on the Console Monitor of the Arduino App Lab. Yes, I can print from the Python scripts, but I can not print from the Arduino sketches with the Monitor.println() command? I tried a lot of the proposed programs from the UNO Q manual, tried many of the samples in the forum and also some proposals from Google, but nothing shows up in the Console Monitor if Monitor.println() is called.

The Arduino UNO Q is so cool; .. I can use the LEDS, the Modulino devices, the bridge and the LED matrix is as great integrated feedback device, but Monitor.println() doesn't do anything?

Is my Arduino UNO Q broken, my host Mac to old?

I used already different Arduino with success on real life projects and I was waiting for this Linux machine for a new vision and quality control project, but now I am blocked ?

Is this the right place to ask for a hint?

For Arduino App Lab I am using a MacOS MacPro (Late2013), 12-Core with macOS Ver. 12.7.6. The Arduini App Lab 0.5.0 and this sketch:

 #include <Arduino_RouterBridge.h>

void setup()
{
Monitor.begin();
}

void loop()
{
Monitor.println("Hello UNO Q!");
delay(1000);
}

and this script (of you):

import time

from arduino.app_utils import App

print("Hello world!")

def loop():
"""This function is called repeatedly by the App framework."""
# You can replace this with any code you want your App to run repeatedly.
time.sleep(10)

App.run(user_loop=loop)

Try the following sketch in IDE2.3.7:

#include <Arduino_RouterBridge.h>

void setup() {
  Bridge.begin();
  Monitor.begin();  //fixed d = 115200;
  delay(5000);

  pinMode(LED_BUILTIN, OUTPUT);
  }

void loop() {

  Monitor.println("Hello");
  digitalWrite(LED_BUILTIN, LOW);   // active LOW; turn LED on
  delay(1000);                      //1000 ms
  digitalWrite(LED_BUILTIN, HIGH);  // active low,LED off
  delay(1000);                      // wait for a second
}

Use the following codes:

void setup()
{
   Bridge.begin();
   Monitor.begin();
}

Many thanks for your quick reply. This is very much appreciated :0)

… however it did not change: nothing appears in the Python Console of my monitor?

The output should be visible in the ‘Serial Monitor’ tab, not the ‘Python’ one.

… thank you for your feedback, but nothing has ever been shown up in the “Serial Monitor” Tab of the Console. This holds for the App Lab environment. I thought that this was only for the TX/RX serial print a monitor, but more I know the more I know nothing .. (a wording from: Socrates ;0)).

However the proposed workaround to print over the bridge with your function printIt() works and gives the out put on the Python Console (monitor , as expected). It would be nice if the Monitor.println() would work smoothly as described in the User Manual of UNO Q. I will continue to experiment and learn. … many thanks for all the hints. :0) @GolamMostafa @ptillisch @jgmdavies

Dear reader of this subject : Monitor.prinln() ,

I tried now all the accessible sketches for the Arduino UNO Q from the Arduino UNO Q manual and from the community platform; however this function of Monitor-println() does not show any value, neither in Console Python nor in Serial Monitor? ... sorry, it just doesn't work with my App Lab on my MacPro (Late 2013), Arduino UNO Q.

The Arduino UNO Q is a fantastic piece of hardware/software. I managed to write some nice programs in Python and Arduino sketch C with "bells and whistles" and AI already. It's nice (and challenging) to switch between these to processing chips and languages. It gave me finally a processing unit with a MCU and a MPU with Linux on hand.

Thanks to the community platform I received also a work around for this "not working"-Monitor.println() function.

The bridge works fine other wise, to pass sensor, calculation and LED-data and commands back and forth; but this officially documented Monitor.prinln() to output some data from the MCU sketch to the Console doesn't work.

Actually I can live without. ... I am hoping for the next update release.

I'm in the same boat - The monitor function simply does not work on 2017 iMac. Works fine on my PCs. I have tested with 3 different Arduino UNO Q boards. I also can live without it.

I find with the bridge, I mostly have the MCU do the function providing, and I can live without the prints on my Mac. If I need an easy debug, I just blink and LED.

@smolschneider @programming_electronics_academy

So, this is the problem with your Mac PC and OS and NOT with the UNO Q. The Arduino Dev Team may look into it to resolve the issue.

... yes, apparently :0) .... now that I have learned more about the Arduino UNO Q, I think I can confirm this. ... many thanks to all your feedback and the will to have a look at it. .... Arduino is great and is even getting better :+1:

What are the advantages of using Mac PC which uses a very different kind of OS ? I am just curious!

Dear GolamMostafa, ... MacOS is a dialect of UNIX, hence not so different than Linux :man_shrugging:t2:. We all us MacOS, since we are about 5 times more efficient than with windows (this ratio is getting better with every update of windows); but never mind we can also use windows, any how many people switch to Linux, rather than to update to Windows 11. I used this Power Mac to set up my Arduino projects because I had this machine on hand. The windows machines from 2013 are not usable anymore, and on this Power Mac (12-Core Intel Xeon E5) from 2013 I still can render video clips in a decent speed. ... later I will switch to SBC mode with the Arduino UNO Q and (maybe soon with the Ventuno), hence no needed for any PC anymore. (I am just waiting for a nice HDMI monitor to be connected.)... again thanks for your support and feedback :0)

Thank you. Please, post as much as you can whatever you are learning from UNO Q -- C++, Python, Linux, Zephyr RTOS, MCU, MPU, dashboard, and networking.