• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
Maker Hacks

Maker Hacks

Ideas, news & tutorials for makers and hackers – Arduino/Raspberry Pi, 3D printing, robotics, laser cutting, and more

  • Home
  • About
  • 3D Printing
  • Laser Cutting
  • YouTube
  • Free Arduino Course
  • Recommendations
  • Contact

Day 2 Lesson 02: Hello World!

You are here: Home / 30 Days to Arduino Programming Course / 30 Days to Arduino Lessons / Day 2 Lesson 02: Hello World!

In this part 2 of day 2, we move to the Tinkercad visual programming and Arduino simulator to work on our blink script, getting it to output debugging messages to the serial monitor, before moving to the desktop IDE to do some more edits and see how the serial monitor works for real.

Code

void setup()
{
  pinMode(13, OUTPUT);
  Serial.begin(9600);
  Serial.println("Hello World!");
}
void loop()
{
  digitalWrite(13, HIGH);
  Serial.println("Led On");
  delay(100); // Wait for 100 millisecond(s)
  digitalWrite(13, LOW);
  Serial.println("Led Off");
  delay(100); // Wait for 100 millisecond(s)
  
  digitalWrite(13, HIGH);
  Serial.println("Led On");
  delay(500); // Wait for 500 millisecond(s)
  digitalWrite(13, LOW);
  Serial.println("Led Off");
  delay(500); // Wait for 500 millisecond(s)
  
  digitalWrite(13, HIGH);
  Serial.println("Led On");
  delay(1000); // Wait for 1000 millisecond(s)
  
  digitalWrite(13, LOW);
  Serial.println("Led Off");
  delay(1000); // Wait for 1000 millisecond(s)
}
  • 3D Printing
  • CNC
  • Hardware
  • Laser Cutting
  • News
  • Retro Computing
  • Software

amiga amos arduino basic programming budget buying cad cnc commodore corexy c programming creality crypto doctor who emulation esp32 esp8266 filament fpga glowforge Hacks Ideas kids lighting linux Makes making Monoprice Parts pc props prusa python raspberry pi ratrig resin Reviews robots software sounds technology tips upgrades wanhao xtool

.

Maker Hacks Blog Copyright © 2023 · All Rights Reserved · Powered by Mai Theme