Saturday, September 21, 2024

How to flash an almost blank sketch

How to flash an almost blank sketch

In the Hello World project, we flashed a sketch/program into the Arduino Uno that blinks the built-in LED. In this project, we will write a small progrom that explicitly turns off the LED and do nothing. Without explicitly turning it off, the built-in LED might be stuck ON.

Create a bare minimum sketch

Replace the sketch/program as shown below

Then, upload the sketch.

Saturday, September 14, 2024

Arduino Uno Rev3 SMD - Hello world, blinking the internal LED

Arduino Uno Rev3 SMD - Hello world, blinking the internal LED

In the embedded/IoT world, blinking some LED (light emitting diode) is equivalent to a Hello World in most computer programming lanugauges. This helps verify that the hardware and connnectivity/interface to the computere is working.

In this project, we are using Arduino Uno Rev 3 SMD.

The location of internal LED is shown below

To blink this LED, open Arduino IDE, then select Files | Examples | 01.Basics | Blink

The Arduino IDE should open with the blinking program loaded

Now, connect Arduino Uno Rev 3 to a USB Type A cable

Select your Arduino device, in my case I only have one and it is called Arduino Uno COM3

Let's now upload this to Arduino. Do Sketch | Upload or Ctrl+U, or click on the button as shown below.

At this point, if the upload went well, the internal LED should be blinking!

Installing Arduino IDE 2.x on Windows 10

Installing Arduino IDE 2.x on Windows 10


Naviate to https://www.arduino.cc/en/software and click on the first option for Windows.

Unblock the application after downloading.



Install Arduino IDE (In File Explorer, double-click to install)

In Choose Installatin Option, select either Anyone or Only for me. Generally, it is cleaner to only install for me(the current user), as the application will not polute other users profile on the same computer.

In Choose Install Location, default location should be fine. Of course you can change it the location of your choosing.

Finish!

Q&A: How to create a blinky baremetal application on STM32F407G-DISC1 using STM32CubeMX and Keil μVision

Q: How to create a blinky baremetal application on STM32F407G-DISC1 using STM32CubeMX and Keil μVision Answer: Blinking an LED is the equiv...