This project will walk you through how to make a simple blink program with DK IoT Studio and the NUCLEO-L476RG by STMicroelectronics. This project is a great way to check that the NUCLEO-L476RG is working and can properly connect with your PC. It is good practice to use blink when you first plug in boards, to ensure the hardware and software are working together. Phase 1 is the basics of starting any new project with DK IoT Studio, if you already know how to do this you can skip to phase 2.
Be sure to have the IoT Agent which is a local application and runs on the system tray. It is used for programming hardware and acts as an intermediary between the computer’s connectivity protocol drivers and the browser running the DK IoT Studio. Visit IoT agent Setup to download on your platform.
Once logged into DK IoT Studio, navigate to projects on the left toolbar.
Select New Project
Find the NUCLEO-L476RG either in the list or type it into the search. From here you can also name the project located above the picture.
Once board is selected click create.
Next steps we will add elements. For the blink program we will only need 2 elements, the Interval element and the GPIO Pin element, located on the right of the page.
Click once on each element and this will drop each one on the workspace.
Connect the interval element by hovering your cursor close to the right edge of your Interval element box. The cursor should change to a double-headed arrow and now you can click and drag the path to the GPIO Pin.
Once these connections are made we can go in and change the properties of each element. First, click on the interval element, the box should highlight blue. On the right it will show the properties. Make sure the properties are as follows:
Do the same for the GPIO Pin element it should read:
Now you can save (1) and then compile (2). Once it says compile is complete you can download firmware (3).
When you download firmware a bin file should appear at the bottom of the screen. Click and drag the bin file over to the NODE_L476RG drive in the file explorer.
The boards LD1 LED should start flashing and once finished LD2 near the middle of the board should blink on every second. Nothing complicated, but this is a first step into what you can do with the NUCLEO-L476RG and DK IoT Studio.
If you have any further question feel free to ask, or post the question in Digi-key TechForum DK IoT Studio section.
If you need to login, register or get more information on how to get started with DK IoT Studio visit the Main Page at Digi-key where we provide video and links to jump start your projects. You can also visit the DK IoT Studio EEWiki page for more projects.