Skip to main content

ARDUINO BEGINNER PRJECT || HOW TO MAKE A BLINKING LED || TINKERCAD

 Requirements:

  1. Arduino Uno R3
  2. LED
  3. Resistor - 220 ohms
  • Connect the LED anode terminal to the resistor then to a digital pin on the arduino. e.g., Pin 13.
  • Connect the LED cathode terminal Ground (GND) pin of the Arduino.
  • Copy paste the following text code.
void setup()
{
  pinMode(13, OUTPUT); //set the digital pin 13 as an output
}
void loop(){
  digitalWrite(13, HIGH); //turn the LED on
  delay(1000);//wait for 1 second (1000 miliseconds)
  digitalWrite(13, LOW); //turn the LED off
  delay(1000); //wait for 1 second (1000 miliseconds)
}

Comments

Popular posts from this blog

HOW TO SOLVE WINDOWS 10 BLACK SCREEN WITH CURSOR PROBLEM

Perhaps you have done some updates or installed new software on your windows computer and then all you can see after logging in is a black screen with a white mouse cursor. Something more like this.. This could have happened due to some malware or some system update that is conflicting with your system settings. There are various methods you can solve this; - Manually correcting the user shell - Troubleshooting from advanced start-up option. Method 1: Manually correct the user shell 1. Open task manager while on the black screen. Press the keyboard combination Ctrl+Alt+Del or right-click at the bottom part of your black screen then move three times with your upper arrow key and press enter to open task manager. 2. A task manager window will show. Go to File >> Run new task >> type in regedit >> check the checkbox (create this task with administrator privileges) >> then click OK. 3. Double click / Expand the HKEY_LOCAL_MACHINE folder. 4. Double click / Expand ...
1. activity_main.xml Inside the activity_main.xml. <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActivity" android :background ="#182b5c" > <WebView android :layout_width ="match_parent" android :layout_height ="match_parent" android :id ="@+id/webView" android :layout_alignParentLeft ="true" android :layout_alignParentStart ="true" android :layout_alignParentTop ="true" android :layout_alignParentRight ="true" android...