1

I want to achieve printing Hello World in the serial monitor using Tinkercad to simulate Arduino.

Here is a very simple example code for real Arduino.

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  Serial.println("Hello World!");
}
  
void loop() {
  // put your main code here, to run repeatedly:
    
}

However, putting an Uno board, typing this code, and clicking "Start Simulation" in Tinkercad doesn't show the Hello World message.

Is it doable? If so how?

For real Arduino, you need to select Arduino serial port and open Serial Monitor. But I can't find such an option for Tinkercad. I can't find Serial Monitor in Thinkercad.

My real purpose is to use Serial Monitor output to test code snippets. Right now I don't have real Arduino board with me, so I thought a simulator would be ideal. If I can easily check the values of variables, it doesn't have to be Serial Monitor.

Sorry if this is not a place to ask questions about simulators.

3
5

I mean where would you expect it to print Hello World ... On the Serial Monitor, right? So first open it by clicking on the Serial Monitor button at the bottom of the code tab in Tinkercad.

I tried your code and it works perfectly fine.

enter image description here

1
  • 1
    Haha! Thanks a lot, this kind of things is easy if you know where to look, but hard if you don't. – Kouichi C. Nakamura May 15 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.