Dataset Viewer
Auto-converted to Parquet Duplicate
question_id
stringlengths
21
21
device_image
imagewidth (px)
388
3.84k
screenshot_image
imagewidth (px)
757
3.84k
history_summaries
stringlengths
25
1.4k
task_query
stringlengths
36
650
answer
stringlengths
94
7.21k
capability
stringclasses
9 values
video_id
stringclasses
33 values
anchor_step_index
int32
0
20
target_step_index
int32
1
21
0DgALFDwouA_a001_t003
Not supported with pagination yet
List required components.
Connect the sensor to the MCU to read its signal.
first we need to understand how to hook it up to the Arduino basically it's very simple it has three pins the minus pin on the left side the middle leg is the VCC which goes to the 5 volt pin of the Arduino then we have the signal pin on the right side this needs to be connected to a digital pin that has the squigg...
hw_assembly
0DgALFDwouA
1
3
0DgALFDwouA_a003_t004
Not supported with pagination yet
List required components. Connect the sensor to the MCU to read its signal.
Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code.
we're gonna download a library which is called IR remote we can go to tools then manage libraries and let's search for IR remote for me it's already installed.
env_sw_setup
0DgALFDwouA
3
4
0DgALFDwouA_a004_t005
List required components. Connect the sensor to the MCU to read its signal. Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code.
Create receiver object with IR remote library, assign IR receiver pin, and enable it in setup function.
include and the name of the library is IR remote dot H first we're gonna create the receiver object the type is IR receiver and let's give it a name like receiver or simply IR and in these parentheses we need to pass in the pin number we've used the pin number three then let's go under the setup function and enable...
code_impl
0DgALFDwouA
4
5
0DgALFDwouA_a005_t007
List required components. Connect the sensor to the MCU to read its signal. Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code. Create receiver object with IR remote library, assign IR receiver pin, and enable it in setup function.
Use IR.decode method in an if statement to detect and decode infrared light data from keys. Initialize serial monitor (9600 baud rate) to print and get the raw infrared data or decoded values in hexadecimal format with delay in loop.
we can print it using the serial monitor so let's go under the setup function and use serial.BEGIN and the boot draw rate 9600. Then let's go under the if statement and print the value using serial.println. And we can pass in the raw data. Also, we can specify the format. We can print it in hexadecimal using hex. A...
code_impl
0DgALFDwouA
5
7
0DgALFDwouA_a007_t008
List required components. Connect the sensor to the MCU to read its signal. Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code. Create receiver object with IR remote library, assign IR receiver pin, and enable it in setup function. Use IR.decode method in an if statemen...
Attach an LED (with series resistor) to the MCU for IR-remote-controlled indication.
we need to hook up the LED. So I'm going to use one of the digital pins to control the LED, like the pin number eight. Then let's add the ohm resistor. And the LED. Then we need to go back to the ground pin. acceptable hardware connection answers: '''Either wiring is acceptable: A) Sourcing: D8 → resistor → LED → GND...
hw_assembly
0DgALFDwouA
7
8
0DgALFDwouA_a008_t012
List required components. Connect the sensor to the MCU to read its signal. Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code. Create receiver object with IR remote library, assign IR receiver pin, and enable it in setup function. Use IR.decode method in an if statemen...
Set up LED pin as an output in Arduino code using setup function with pinMode command. Use digitalWrite command to set LED pin to HIGH for turning LED on; configure hexadecimal representation. Modify code for turning LED off (LOW) when a different button is pressed, with a separate if statement.
set up the variable, which is the LED pin using int LED pin equals eight. And let's use the pin mode under the setup function. We're going to use the LED pin as an output so that we can turn it on and off. .For the hex number from the previous step's serial monitor, I'm going to copy it. And let's paste it. But make...
code_impl
0DgALFDwouA
8
12
0DgALFDwouA_a012_t013
List required components. Connect the sensor to the MCU to read its signal. Open Arduino IDE, download IR remote library via Tools > Manage Libraries and include it in the code. Create receiver object with IR remote library, assign IR receiver pin, and enable it in setup function. Use IR.decode method in an if statemen...
Test setup by pressing remote buttons to toggle LED on/off; confirm functionality in serial monitor.
Now we can turn on and off this LED using the remote control. If I press the plus button, it is turned on. And we press the minus button we can turn it off.
hw_assembly
0DgALFDwouA
12
13
0aTMuiHVx_g_a000_t001
Not supported with pagination yet
List required components.
Connect the module with the MCU with computer for PWM controlling the module.
The servo motor only comes with three wires. So connect the ground of your server motor in the ground of the microcontroller and then connect the red wire of the server motor to a voltage output on your microcontroller. This can be five volts or 3.3 volts, depending on the power specifications of your server motor. ...
hw_assembly
0aTMuiHVx_g
0
1
0aTMuiHVx_g_a001_t002
Not supported with pagination yet
List required components. Connect the module with the MCU with computer for PWM controlling the module.
Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup.
To get started with the code, open up STM32 Cube IDE and click on create a new STM32 project. Then go to board selector and type in the part number of the microcontroller that you are using. Then click on the microcontroller and then click on next. Then here it says project name. You can just save the project as serv...
env_sw_setup
0aTMuiHVx_g
1
2
0aTMuiHVx_g_a002_t003
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup.
Clear all unused pins in STM32CubeIDE
the only thing that we're going to be connecting to our microcontroller. So you can click here on Pinout and then clear all the other pins since we're not going to use them.
env_sw_setup
0aTMuiHVx_g
2
3
0aTMuiHVx_g_a003_t004
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE
Set Timer 2 Channel 1 to PWM generation using internal clock for servo motor control.
So the first thing that we need to do is to come here where it says timers, click on timer 2 and then click on channel 1 and then click on PWM generation channel 1. And then for the clock source, you can select the internal clock.
env_sw_setup
0aTMuiHVx_g
3
4
0aTMuiHVx_g_a004_t007
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Set clock frequency to 84 MHz. Use prescalar as (200-1) and calculate the counter period values to match 50 Hz PWM frequency and fill them in the IDE
you need to come here where it says clock configuration and then take note of the frequency of your microcontroller. Mine is currently set to... run at 84 megahertz. You can change this value by changing the value in this block here to set any frequency that you would like. So I'm just going to leave mine at the max...
env_sw_setup
0aTMuiHVx_g
4
7
0aTMuiHVx_g_a007_t008
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Enable debug serial wire and high-speed clock; Note that PA0 pin for PWM output.
Another thing that we need to do is that we need to come here where it says system core, click on system, and then here it says debug. We can just enable the serial wire. And then we need to go here where it says RCC, and then here it says high speed log. We need to enable the crystal or ceramic resonate. Take note ...
env_sw_setup
0aTMuiHVx_g
7
8
0aTMuiHVx_g_a008_t009
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Save configuration and generate the code
Click on control and S to save and then generate the new code and switch to a new perspective. acceptable answers: '''navigate to the "Project" tab at the top of the screen. Click on the "Generate Code" button; Control+S; Go to File, click save'''
env_sw_setup
0aTMuiHVx_g
8
9
0aTMuiHVx_g_a009_t012
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Create "setServoAngle" function to map servo positions to PWM pulse widths. Determine counts for 0° (210) and 180° (1050) based on timing calculations for motion range. Map servo angles to PWM counts and send pulse values using HAL timer function.
On the main C file, we're going to be using the PIN that we're going to be using. So I'll scroll down to where it says user code begin zero. We're going to create a function that we're going to use to set the servo to any position that we want. So to create this function, you can just say void set servo and angle. A...
code_impl
0aTMuiHVx_g
9
12
0aTMuiHVx_g_a012_t013
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Start PWM on Timer 2 and specify the channel for servo motor control.
Once this function has been created, we can then scroll down to where it says user code begin two. And then here in user code begin two, this is where we need to start the PWM. So we're going to say hal underscore tim underscore PWM. And then hold on control and space for the completion. And we're going to use this ...
code_impl
0aTMuiHVx_g
12
13
0aTMuiHVx_g_a013_t015
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Use the Set_Servo_Angle function in main loop to control servo position dynamically. Implement a for loop to sweep the servo from 0° to 180° and back to 0° with 100 delay and angle of 10 as increment.
motors full range of motion here in the main one loop, I'm going to remove this and this 100 and replace it with a variable. called angle. And then I'm going to create a for loop. While this angle is less than or equals to 180 degrees, we want to increment the variable by a value of 10, then we're going to add a sma...
code_impl
0aTMuiHVx_g
13
15
0aTMuiHVx_g_a015_t017
List required components. Connect the module with the MCU with computer for PWM controlling the module. Open STM32 Cube IDE and create a new STM32 project. Select the microcontroller part number, name the project "servo," and complete setup. Clear all unused pins in STM32CubeIDE Set Timer 2 Channel 1 to PWM generation ...
Upload the code using debugger settings and verify servo movements.
that you are using. For my code here, it's pin PA zero. And then click on this green button to upload the code. Select on debugger, click on ST link, click on scan, click on apply, and then click on OK to upload the code. And then when the code has been uploaded, we can see that our server motor is able to go from z...
code_impl
0aTMuiHVx_g
15
17
0poh_2rBq7E_a003_t004
Not supported with pagination yet
List required components.
Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io.
As usual I will use Windows 10, but the tools should also be available on Linux and OS X. Before we start we have to check if we installed the right version of the Arduino IDE. I suggest you install the newest version. You find it on the Arduino homepage. Do not install the app version. It does not work with Platf...
env_sw_setup
0poh_2rBq7E
3
4
0poh_2rBq7E_a004_t005
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io.
Download and install Visual Studio Code by following straightforward prompts.
It takes a while till the latest version is installed. Now we can go on and install VSC. Just search VSC install and you find this link. Click on the desired version. It downloads an installer. As usual, accept everything and VSC will start.
env_sw_setup
0poh_2rBq7E
4
5
0poh_2rBq7E_a005_t006
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io. Download and install Visual Studio Code by following straightforward prompts.
Install "platform-ide" extension in Visual Studio Code for integrating Platform.io.
As usual, accept everything and VSC will start. Next we have to install Platform.io. Because it is very tightly integrated, this step is straightforward. Go to this symbol on the left side in VSC and search for platform-ide. Then hit install. It will take a while till you see the PIO home screen.
env_sw_setup
0poh_2rBq7E
5
6
0poh_2rBq7E_a006_t007
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io. Download and install Visual Studio Code by following straightforward prompts. Install "platform-ide" extension in Visual Studio Code for integrating Platform.io.
Install Arduino framework support and begin creating a project named "Blink Arduino Uno."
It also recommends in the VSC website. Now we are installing additional things. Of course, we install the Arduino framework support. Now we are ready to rumble and can start our first project. I call it Blink Arduino Uno. And search for the Arduino Uno board.
env_sw_setup
0poh_2rBq7E
6
7
0poh_2rBq7E_a007_t008
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io. Download and install Visual Studio Code by following straightforward prompts. Install "platform-ide" extension in Visual Studio Code for integrating Platform.io. Install Arduino framework supp...
Open the main.cpp file, structure the sketch, and include `Arduino.h`.
Here we choose Arduino because we will use the Arduino framework. After pressing finish, you will get this structure on the left side of your screen. On top is the project name and below a few directories. For the moment, we open the src folder and find a file called main.cpp. This is the first difference between P...
code_impl
0poh_2rBq7E
7
8
0poh_2rBq7E_a008_t011
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io. Download and install Visual Studio Code by following straightforward prompts. Install "platform-ide" extension in Visual Studio Code for integrating Platform.io. Install Arduino framework supp...
Write the code for blink the onboard LED on/off an Arduino board and print the LED status to the Serial Monitor.
Let's start now with our Blink sketch. I will add a few print statements to test Serial Monitor. As soon as we begin to write Serial.begin, the auto-completion function kicks in. All commands which fit the first letters are offered. If we hit enter, the complete command is already there. We could also select another ve...
code_impl
0poh_2rBq7E
8
11
0poh_2rBq7E_a011_t012
Not supported with pagination yet
List required components. Ensure the newest version of the non-app Arduino IDE is installed for compatibility with Platform.io. Download and install Visual Studio Code by following straightforward prompts. Install "platform-ide" extension in Visual Studio Code for integrating Platform.io. Install Arduino framework supp...
Compile and upload the Blink sketch to Arduino Uno and check the Blink status onboard and check the serial monitor.
We could have uploaded the program directly to our Arduino Uno by pressing the right arrow. Let's do it now. After a few seconds, our Arduino starts to blink. But we do not see messages in serial. We first have to select this plug symbol. And we begin to see the messages.
env_sw_setup
0poh_2rBq7E
11
12
4D1jQvWOPrY_a002_t003
Not supported with pagination yet
List required components.
Connect the sensor to the microcontroller for reading the measured temperature values.
Its operating voltage is from 3 to 5.5 volts and the maximum current per phase is 2 amps if good additional cooling is provided or 1 amp continuous current per phase without heatsink or cooling. Now let's close look at the pinout of the driver and hook it up with the stepper motor and the controller. So we will start...
hw_assembly
4D1jQvWOPrY
2
3
4D1jQvWOPrY_a003_t004
Not supported with pagination yet
List required components. Connect the sensor to the microcontroller for reading the measured temperature values.
Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage.
What we have here in average on with syster. i.e. on an array. So there we have. After wiring is complete now open the Arduino IDE. We can start by using the Arduino IDE example sketch. I will use the ReadAnalogvoltage file. Open the sketch.
env_sw_setup
4D1jQvWOPrY
3
4
4D1jQvWOPrY_a004_t006
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage.
Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the voltage and temperature values to the serial monitor for verification with 500ms delay.
Ok so this sketch is actually used to read an analog voltage that connected to pin A0. And then we need to convert the voltage to temperature. The sensor will output 10mV per degree of Cel. So the temperature is voltage in mV divided by 10. Or the voltage in volt times 100. So I am making a float temperature variabl...
code_impl
4D1jQvWOPrY
4
6
4D1jQvWOPrY_a006_t007
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Upload the sketch to the Arduino, then open the serial monitor to view temperature readings.
And then I will use the serial monitor. Upload the sketch. And after the upload is completed. Then we can open the serial monitor.
env_sw_setup
4D1jQvWOPrY
6
7
4D1jQvWOPrY_a007_t008
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Connect an LCD display to the Arduino using I2C to show live sensor readings.
Now how if we wanted to display the temperature through an LCD? Easy. Just connect an LCD. Here's the wiring diagram. I use the LCD with an I2C backpack. So it just needs to connect the I2C pin to an Arduino. As usual I2C means SDA to A4 and SCL to A5. Don't forget the VCC and ground. acceptable hardware connect...
hw_assembly
4D1jQvWOPrY
7
8
4D1jQvWOPrY_a008_t009
Not supported with pagination yet
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Download required libraries (Wire and LiquidCrystal_I2C) and use pre-determined I2C address for the LCD 2 line display. Initialize LCD and print "LM35 test" in the setup fuction.
Now time to go back to Arduino IDE. So. I already made the code to display the temperature to an LCD. This is for library with the wire library and liquid crystal I2C. You can download the library in the link at the description below. And this is the LCD we used. We begin the LCD right in the setup function. And p...
code_impl
4D1jQvWOPrY
8
9
4D1jQvWOPrY_a009_t010
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Write code to display temperature on the LCD, adding degree symbols and formatting as "T: xx°C".
You can see my texted arch and the XSR monitor with the that actually very very cool. And I put the abstraction values at this screen. So. Let's begin the diagram. data to the LCD tube so I put the cursor on top right corner and print T and then the temperature value and the degree C and then the C or Celsius. ref...
code_impl
4D1jQvWOPrY
9
10
4D1jQvWOPrY_a010_t012
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Upload the final sketch and verify the temperature is displayed correctly on the LCD.
lm35 test will show for one second okay just upload the sketch here's the result as you can see the temperature is now displayed on the LCD to make sure the sensor is working.
hw_assembly
4D1jQvWOPrY
10
12
4D1jQvWOPrY_a012_t013
Not supported with pagination yet
List required components. Connect the sensor to the microcontroller for reading the measured temperature values. Open the Arduino IDE and prepare an ReadAnalogvoltage example sketch to read analog voltage. Modify the sketch to convert the analog voltage to temperature using the LM35's 10mV/°C scale factor. Print the vo...
Test sensor responsiveness by applying heat and observe the change of temperature values on the LCD.
now displayed on the LCD to make sure the sensor is working I will put a hot soldering iron on the sensor and we can see the temperature is increasing fast you can see the temperature is increasing fast now if I take back the soldering iron it slowly drops to normal.
hw_assembly
4D1jQvWOPrY
12
13
53A_7XBlvsQ_a000_t001
Not supported with pagination yet
List required components.
Open STM32 Cube IDE and view the welcome page.
STM32 Cube IDE. But in this session we will generate a code for controlling LED with the onboard user button. So let's get started. Open cube IDE. This is the welcome page of STM32 Cube IDE. You can see that there is three tabs start new STM32 project。
env_sw_setup
53A_7XBlvsQ
0
1
53A_7XBlvsQ_a001_t003
List required components. Open STM32 Cube IDE and view the welcome page.
Select board as Nucleo-F401RE in the board selector tab and click "Next."
can import that project in this IDE also you can also import those projects in cube ID so let's start new STM32 project it will ask for internet connection you can just click no and wait for the initialization of STM32 target selector now you can see the same pop-up window opens here like it was in case of cube MX ...
env_sw_setup
53A_7XBlvsQ
1
3
53A_7XBlvsQ_a003_t004
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next."
Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable.
Now the window opens for project setting you can give the name of the project let's say I am giving user LED this is the default location that I am using remember when we launched the cube ID for the first time we have set our workspace location so this is that default location if you do not remember the path you c...
env_sw_setup
53A_7XBlvsQ
3
4
53A_7XBlvsQ_a004_t006
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable.
Clear default pinout, configure pin for onboard LED as GPIO output, and label it as "LED."
Now we have to remove all this initialized settings. Go to pinout, select clear pinouts and click yes. Now this MCO is blank now and all the configuration has been disappeared. Now we need to enable a button and an LED. So remember the pin for LED that was PA5. This is the pin. Click on this pin and configure it ...
env_sw_setup
53A_7XBlvsQ
4
6
53A_7XBlvsQ_a006_t008
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Configure for onboard button as GPIO input and label it as "BTN"
Come back to cubeIDE and look for pin number PC13. This is the pin. Click on this pin and configured as GPIO input. Since button is an input device you have to configure this as GPIO input. Right click on the pin and enter user label. Let's say I am giving BTN. Now enable it.
env_sw_setup
53A_7XBlvsQ
6
8
53A_7XBlvsQ_a008_t009
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Go to RCC in the A-Z peripheral; Select HSE as bypass clock source; Review pull-up/pull-down configuration for the button pin and configure it as pull-down.
Go to RCC in the A2Z peripheral. Select HSE as bypass clock source. Now go to GPIO peripheral. You will see these two pins that we have enabled are in the list. So there are three configuration parameters for PC13. Number one is mode that is input mode. Next is pull up or pull down. If you want to configure the ...
code_impl
53A_7XBlvsQ
8
9
53A_7XBlvsQ_a009_t010
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Set the system clock to HSE with a maximum frequency of 84 MHz.
Go for the clock configuration. Select the HSE source. Type the maximum frequency that is 84 MHz and hit enter. Now you can see that the HSE is enabled. Now go to the HSE console. The clock issue is resolved now.
env_sw_setup
53A_7XBlvsQ
9
10
53A_7XBlvsQ_a010_t011
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Save the project to generate the code structure, including core and driver folders.
So simply you can go to file and click save. Saving the project will generate the code structure. As you can see the folder structure gets updated. The one folder with core and drivers comes into picture. Now open the core. And you will find all the folders. acceptable answers: '''navigate to the "Project" tab at ...
env_sw_setup
53A_7XBlvsQ
10
11
53A_7XBlvsQ_a011_t012
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Add code in `main.c` to read the button state and store it in a variable 'btn_state'.
Now in order to add code we need to look for functions and driver. As we did in the LED blinking. Go to the driverclient folder. HLDRIVERS Go to include folder. And look for Gpio H. If you scroll down, you will find the input output operation function. This is the function to read a pin. If you read the pin, th...
code_impl
53A_7XBlvsQ
11
12
53A_7XBlvsQ_a012_t014
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Implement conditions to turn the onboard LED on/off based on the button's state. Make LED as RESET at the begining and make the LED toggle when the button changes.
If button state is equal to GPIO underscore pin underscore set curly brackets. Now we are testing the button state. That means after reading the pin, it will hold the state of the button, whether it is high or low. So we have configured it is pulled down. So by default, it will be in low state. Now we have to compare t...
code_impl
53A_7XBlvsQ
12
14
53A_7XBlvsQ_a014_t015
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Build the project, connect the board, and debug it by running the code.
Now go to project and click on build on. In the console window, you will see the building logs. The code compiled with zero error and zero warning. Once the code compiled successfully, we can take the target board again connected with the system using USB A to mini B cable. And go to run debug as STM32 Cortex-M C ...
env_sw_setup
53A_7XBlvsQ
14
15
53A_7XBlvsQ_a015_t016
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Test functionality: press the button to verify the LED toggles as expected.
And you can see in the board that by default, LED is off. That means button is not pressed. So if you press the button, you will see the LED will turn on. So press the user button. Multiple times to see whether the code is functioning properly or not. So as you can see, whenever we press the button, the LED turns ...
hw_assembly
53A_7XBlvsQ
15
16
53A_7XBlvsQ_a016_t018
List required components. Open STM32 Cube IDE and view the welcome page. Select board as Nucleo-F401RE in the board selector tab and click "Next." Name the project (e.g., "user LED"), choose default location, select language as C, and type as executable. Clear default pinout, configure pin for onboard LED as GPIO outpu...
Clean up the workspace or delete the project from the IDE without removing files from disk. Return to the information center to prepare for a new project.
Remember one thing, just close all the files. And you can close the project or simply delete the project. Do not put a checkmark on this that will delete project content on disk, which cannot be undone. So you can simply delete and click OK without checking this box. Because if you check this box, this project will...
env_sw_setup
53A_7XBlvsQ
16
18
5CmjB4WF5XA_a000_t003
Not supported with pagination yet
List required components.
Connect the A4988 power pins connection to the Arduino's power supply.
Its operating voltage is from 3 to 5.5 volts and the maximum current per phase is 2 amps if good additional cooling is provided or 1 amp continuous current per phase without heatsink or cooling. Now let's close look at the pinout of the driver and hook it up with the stepper motor and the controller. So we will start...
hw_assembly
5CmjB4WF5XA
0
3
5CmjB4WF5XA_a003_t004
Not supported with pagination yet
List required components. Connect the A4988 power pins connection to the Arduino's power supply.
Wire the stepper motor to its driver module, connecting both coils for smooth bidirectional motion.
And in our case that will be our controller, the Arduino board, which will provide that 5 volts. The following four pins are for connecting the motor. The 1A and 1B pins will be connected to one coil of the motor. And the 2A and 2B pins will be connected to the other coil of the motor.
hw_assembly
5CmjB4WF5XA
3
4
5CmjB4WF5XA_a004_t005
Not supported with pagination yet
List required components. Connect the A4988 power pins connection to the Arduino's power supply. Wire the stepper motor to its driver module, connecting both coils for smooth bidirectional motion.
Connect the motor driver’s power inputs to an external supply and add a decoupling capacitor for stable operation.
For powering the motor we use the next two pins GND and VMOT that we need to connect them to power supply from 8 to 35 volts. And also we need to use a decoupling capacitor with at least 47 microfarads for protecting the driver board from voltage spikes.
hw_assembly
5CmjB4WF5XA
4
5
5CmjB4WF5XA_a005_t006
Not supported with pagination yet
List required components. Connect the A4988 power pins connection to the Arduino's power supply. Wire the stepper motor to its driver module, connecting both coils for smooth bidirectional motion. Connect the motor driver’s power inputs to an external supply and add a decoupling capacitor for stable operation.
Hook up the stepper driver to the microcontroller, linking the step, direction, sleep, and reset pins for full motor control.
The next two pins, step and direction, are the pins that we actually use for controlling the motor. In our case I will connect STEP to the pin4 on my Arduino board. Pin3 to direction. SLEEP to RESET. acceptable hardware connection answers: ''' A4988 → Arduino UNO: STEP → (D2–D13 or A0–A5 as digital); DIR → (D2–D13 or ...
hw_assembly
5CmjB4WF5XA
5
6
5CmjB4WF5XA_a006_t014
Not supported with pagination yet
List required components. Connect the A4988 power pins connection to the Arduino's power supply. Wire the stepper motor to its driver module, connecting both coils for smooth bidirectional motion. Connect the motor driver’s power inputs to an external supply and add a decoupling capacitor for stable operation. Hook up ...
Write and upload code to rotate the motor in various directions and speeds by configuring digital pins and delays. Here is the details:Code STEP/DIR: define pins as OUTPUT; 200 steps forward → 1 s pause → reverse and 400 steps; speed set by pulse delay.
wasn't correct for my case. Anyway now we can continue and make a simple code that will put the motor in motion. Here's the example code first we have to define the step and direction pins. In our case they are the pins number 3 and 4 on the Arduino board and they are named step pin and their pin and also in the se...
code_impl
5CmjB4WF5XA
6
14
5IuZ-E8Tmhg_a000_t002
Not supported with pagination yet
List required components.
Search for and download the ESP32-IDF framework from the official website (first Google search result).
The first thing that we are going to do is download and install the ESP32-IDF framework from the manufacturer's website. Just type ESP32-IDF on Google and the first link should be the right one. Scroll down and download the environment for Windows by selecting Windowsfrom the manufacturer's website. Just type ESP32-I...
env_sw_setup
5IuZ-E8Tmhg
0
2
5IuZ-E8Tmhg_a002_t003
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result).
Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues.
Open the file and while you go through the installation, select in here the latest release version. Also in this field, you can change where the framework is going to be installed. I prefer to keep it simple. Let's change this to ESP for example. And in this final step, I suggest you to uncheck this last option. So...
env_sw_setup
5IuZ-E8Tmhg
2
3
5IuZ-E8Tmhg_a003_t005
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues.
Confirm installation by locating the custom terminal link added to the desktop. Navigate to the Blink example folder and build it using the `idf.py build` command.
Once the installation is done, a link to a customized terminal should appear on your desktop. This custom terminal loads everything that you need to build and run your project. Let's build and run an example. Type cd examples slash get started slash blink. And now let's build it by typing idf.py build and the compila...
env_sw_setup,code_impl
5IuZ-E8Tmhg
3
5
5IuZ-E8Tmhg_a005_t006
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Open the Blink example project folder in Visual Studio Code, focusing on the main folder and Blink.c file.
let's open the example project we have compiled before in VSCode. Click in File, open Folder and select the Blink folder from the ESP-IDF examples. Here on the left side, it will open a browser where you can see all files and folders inside of the Blink project. The most important things here are the main folder and...
env_sw_setup
5IuZ-E8Tmhg
5
6
5IuZ-E8Tmhg_a006_t007
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Adjust the LED pin definition in Blink.c according to your ESP32 board model pin for ESP32 DevKit V1.
The most important things here are the main folder and the Blink.c file. If you are not familiar with IDF, this is your main function, or in this case, app underscore main. Depending on the ESP32 board, your LED might be in a different pin, and you need to change here. In my case, I'm using the ESP32 DevKit V1, an...
code_impl
5IuZ-E8Tmhg
6
7
5IuZ-E8Tmhg_a007_t008
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Build the project and set up a Visual Studio Code workspace in the Blink folder to integrate IDF terminal parameters.
Ok let's open the terminal and run the same command as before to build our project. Let's type idf.py and hit enter. Since we don't have this terminal configured for the IDF compiler, it doesn't work. What you are going to do is copy the parameters from the IDF terminal and use them inside of Visual Studio Code. T...
env_sw_setup
5IuZ-E8Tmhg
7
8
5IuZ-E8Tmhg_a008_t009
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Configure terminal settings in the workspace, specifying paths and arguments to use the IDF environment.
In our case, you'll want to add the same IDF terminal parameters to our project. The first parameter is terminal.integrated.shell.windows, which defines the terminal application file to be called, in this case, cmd.exe. The second parameter is terminal.integrated.shellargs.windows, which defines what argument you ar...
env_sw_setup,code_impl
5IuZ-E8Tmhg
8
9
5IuZ-E8Tmhg_a009_t010
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Rebuild the idf.py project using the configured IDF terminal in Visual Studio Code.
Let's open the terminal again. Notice that a little window pops up asking for permission. Click allow and close the terminal by clicking on the little trashcan icon over here. Again, open a new terminal, we have the IDF terminal configured inside of Visual Studio Code. Let's go ahead and build the Blink example ag...
env_sw_setup,code_impl
5IuZ-E8Tmhg
9
10
5IuZ-E8Tmhg_a010_t011
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Flash the Blink application to the ESP32 by typing `idf.py flash -p COM1` in the terminal, and monitor the ESP32 status.
If you have an ESP32 device connected, you can program it and run the Blink application by typing. Just type idf.py flash dash p and followed by your com port. In my case, my device is connected to my com port 1. And hit enter. This command will compile and flash the firmware into your ESP32 device. The next thin...
code_impl
5IuZ-E8Tmhg
10
11
5IuZ-E8Tmhg_a011_t012
List required components. Search for and download the ESP32-IDF framework from the official website (first Google search result). Install the ESP32-IDF framework, selecting the latest version, customizing the installation path, and unchecking the last option in the final step to avoid issues. Confirm installation by lo...
Monitor the device while running by typing `idf.py monitor -p COM1`.
The next thing that we can do is monitor the device while it's running. Just type idf.py monitor -p COM1. And it's done, we could see the output printed on the terminal. reference code: '''type idf.py monitor -p COM1'''
code_impl
5IuZ-E8Tmhg
11
12
6InCtgw0QVM_a004_t005
Not supported with pagination yet
List required components.
Assemble the lens and camera module, tightening screws and adjusting the back focus ring.
Let's assemble it all together starting with the lens and camera module. We're going to remove the protective caps and screw the lens into the high quality camera. The part you're screwing it into is the back focus ring and you're going to screw it in until it's finger tight. Now tighten the locking screw in place....
hw_assembly
6InCtgw0QVM
4
5
6InCtgw0QVM_a005_t006
Not supported with pagination yet
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring.
Connect the ribbon cable securely to the CSI connector on the Raspberry Pi.
To connect the ribbon cables, lift up the edges of the CSI connector gently, slip the ribbon cable in till it bottoms out, then push down the edges of that CSI connector.
hw_assembly
6InCtgw0QVM
5
6
6InCtgw0QVM_a006_t008
Not supported with pagination yet
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi.
Insert the flashed SD card and connect peripherals to power on the Raspberry Pi.
With the micro SD card flashed, you can then install it into your Raspberry Pi. Now simply connect all the peripheries and plug in the USB-C to turn on the Raspberry Pi.
hw_assembly
6InCtgw0QVM
6
8
6InCtgw0QVM_a008_t009
Not supported with pagination yet
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi.
Enable the camera in Raspberry Pi settings under the Interfaces tab and reboot the system.
Then open up the Raspberry Pi configuration menu found using the top left menu and scrolling over preferences and enable the camera found under the interfaces tab. After enabling, reset the Raspberry Pi to lock in those changes.
hw_assembly
6InCtgw0QVM
8
9
6InCtgw0QVM_a009_t010
Not supported with pagination yet
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi. Enable the camera in Raspberry Pi settings unde...
Open a terminal, adjust and lock manual camera settings (e.g., aperture, focus), and test the live camera feed.
Now open up a terminal window using the black console button on the top left screen on the Raspberry Pi OS and type the following and press enter. raspistill dash t zero. This is going to open up a new window on your monitor showing you exactly what the high quality camera is seeing. We're going to use this window...
env_sw_setup,hw_assembly,code_impl
6InCtgw0QVM
9
10
6InCtgw0QVM_a010_t011
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi. Enable the camera in Raspberry Pi settings unde...
Take a photo via the terminal using the "raspistill" command and save it as a JPEG file.
We've focused the camera. Let's start taking some pictures. We're going to type the following into the terminal, opening it the same way as before. raspistill dash O for output and then image dot JPEG. Now. Once you press enter. On your keyboard, like, so the camera is going to open up and after a few seconds, it...
code_impl
6InCtgw0QVM
10
11
6InCtgw0QVM_a011_t012
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi. Enable the camera in Raspberry Pi settings unde...
Record a video using the "raspivid" command, specifying 5 second duration, resolution, and h.264 output format.
Let's take some video with this high quality camera. We're going to type the following into the terminal, opening it using the same method as before. Raspi vid dash T five thousand. And we're going to type video dot H.264 dash O for output and then video. So right now this is capturing. A video. Video for five s...
code_impl
6InCtgw0QVM
11
12
6InCtgw0QVM_a012_t013
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi. Enable the camera in Raspberry Pi settings unde...
Install the "GPAC" app to convert H.264 video files to MP4 format via the terminal.
And this is a much more commonly used format type. What we're going to do is enter the following into the terminal to install the G pack app. What we're going to do is enter the following into the terminal, pseudo APT dash, get install G pack and press enter. If prompted press Y and enter to confirm the installatio...
code_impl
6InCtgw0QVM
12
13
6InCtgw0QVM_a013_t014
List required components. Assemble the lens and camera module, tightening screws and adjusting the back focus ring. Connect the ribbon cable securely to the CSI connector on the Raspberry Pi. Insert the flashed SD card and connect peripherals to power on the Raspberry Pi. Enable the camera in Raspberry Pi settings unde...
Convert your video files by replacing filenames in the command to produce fps=90 MP4 outputs.
Having installed this feature to convert your video file type and enter the following into the terminal. Make sure to replace my file name that I write here with your file name that you want converted. This will leave you with an MP4 format. So that's it. You can now export your video to the original H.264 file an...
code_impl
6InCtgw0QVM
13
14
6VJHuUCrhx8_a000_t007
Not supported with pagination yet
List required components.
Create a new STM32Cube IDE project by selecting a workspace and configuring the environment.
So that you can understand what each and every single line of code is doing in your code as you use these HAL libraries. To start a new project on the STM32Cube IDE, you're just going to click on the software, STM32Cube IDE, and then I'd say select a directory as a workspace. You can just select the default one or y...
env_sw_setup
6VJHuUCrhx8
0
7
6VJHuUCrhx8_a007_t008
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment.
Use the board selector to find and select the STM32 board F41RE for the project.
And then you're going to be greeted with something that looks like this. So you can come here and say, create a new STM32 project, or you can come here and go to file and select a new STM32 project. And then we're going to be greeted with this screen here. So this first tab here says MCU slash MPU selector. This i...
env_sw_setup
6VJHuUCrhx8
7
8
6VJHuUCrhx8_a008_t009
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project.
Name the project "LED blink" and set C as the targeted language with default settings and finish.
And then here it says project name. So we can just call this project LEDBLINK. And then we can just, you can either choose to use the default location for your project, or you can click and check this and then click on browse to select where you'd like to save the file. So for now, I'm just going to use the defaul...
env_sw_setup
6VJHuUCrhx8
8
9
6VJHuUCrhx8_a009_t011
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project. Name the project "LED blink" and set C as the targeted language with default settings and finish.
Configure pin PB5 as a GPIO output for the LED and save and generate initialization code.
So you can just go back to pin out and configuration. So for the LED that we are going to use, we can just choose any of the pins that we want to use here. So I'm just going to go ahead and use pin PB5. If I can find it. So I'm just going to say this is pin PB5. So the reason why I'm choosing pin PB5 is because i...
env_sw_setup
6VJHuUCrhx8
9
11
6VJHuUCrhx8_a011_t012
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project. Name the project "LED blink" and set C as the targeted language with default settings and finish. Configure pin PB5 as a...
Build the circuit by connecting the LED with a resistor to the configured pin and ground.
Okay, now let's build the circuit to blink the LED. What you're going to need for this setup is a breadboard, the microcontroller itself, an LED and a current limiting resistor. The value that I have for this resistor is 220 ohms. And then you're going to need two jumper wires. The first thing that you're goi...
hw_assembly
6VJHuUCrhx8
11
12
6VJHuUCrhx8_a012_t013
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project. Name the project "LED blink" and set C as the targeted language with default settings and finish. Configure pin PB5 as a...
Connect the microcontroller to the computer via USB cable to power it.
you're just going to need a USB cable like this one here. So you're going to take it and connect it to the microcontroller and then you're going to connect the other end to your laptop or your computer.
hw_assembly
6VJHuUCrhx8
12
13
6VJHuUCrhx8_a013_t014
Not supported with pagination yet
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project. Name the project "LED blink" and set C as the targeted language with default settings and finish. Configure pin PB5 as a...
Write HAL-based code to set the LED state (on or off) with 1 second delays to achieve blinking., and upload the code through ST-LINK S/N.
Okay, so now to get to the main project, which is blinking and LED, we need to come to this while loop here. This is an infinite loop. So your code when it gets to this point here is just going to keep looping and looping and looping. So it says user code begin 3. So what we're going to need to do is just, uh, is that ...
code_impl
6VJHuUCrhx8
13
14
6VJHuUCrhx8_a014_t016
List required components. Create a new STM32Cube IDE project by selecting a workspace and configuring the environment. Use the board selector to find and select the STM32 board F41RE for the project. Name the project "LED blink" and set C as the targeted language with default settings and finish. Configure pin PB5 as a...
Use the HAL GPIO toggle function for simpler code and faster LED blinking. (250ms delay)
by using two lines of code instead of using four lines of code is that you can actually come here remove all of these lines here and then you can actually say HAL underscore GPIO and then you can click on control and space and then instead of using the right pin, we can actually use the toggle pin function....
code_impl
6VJHuUCrhx8
14
16
8-w_8izUO38_a000_t004
Not supported with pagination yet
List required components.
Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit.
And final part is this USB to micro USB cable to connect microcontroller to my computer. And let's assemble our circuit. So what I need first is the breadboard with ESP8266. I'm gonna connect a power supply module. It's gonna fit in into the breadboard in a nice way. It was actually designed this way to be nice. Rig...
hw_assembly
8-w_8izUO38
0
4
8-w_8izUO38_a004_t006
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit.
Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly.
Now servos usually have three wires coming out of them that end in a servo connector as you can see here. Now the yellow wire is for the signal, the red wire is for the 5V supply and the black wire is for the ground. Now we're going to connect one breadboard connector to each pin of the servo cable as you can see her...
hw_assembly
8-w_8izUO38
4
6
8-w_8izUO38_a006_t008
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit. Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly.
Wire a potentiometer to the microcontroller with its three terminals connected to power, ground, and analog input for adjustable control.
Let's move on to connecting the potentiometer. Potentiometers typically have three pins. The 5V pin, in this case on the left, the ground pin all the way to the right and the signal pin in the middle. To make the potentiometer easy... ...to connect I've plugged the potentiometer directly into the breadboard. Each ...
hw_assembly
8-w_8izUO38
6
8
8-w_8izUO38_a008_t009
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit. Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly. Wire a potentiometer to the microcontroller wit...
Download and install the Arduino IDE from arduino.cc to program the board.
Now if you don't already have the Arduino IDE, go to arduino.cc, click on download and then download the latest version for either Windows or Mac depending on what you're using. Now if you don't already have the Arduino IDE, go to arduino.cc, click on download and then download the latest version for either Windows o...
env_sw_setup
8-w_8izUO38
8
9
8-w_8izUO38_a009_t015
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit. Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly. Wire a potentiometer to the microcontroller wit...
Include the Servo library in the code by adding `#include <Servo.h>`. Create a servo object and a variable to read the potentiometer value from the analog pin. Read the potentiometer's analog input value (0–1023) and prepare to convert it to servo rotation degrees. Use the `map` function to convert the potentiometer v...
The first line is include servo.h and all this does is it adds a standard line to the code. So you can add a standard servo library to your program. The next line is servo myservo and what this does is it creates a servo. It creates a servo called myservo using the library that we just added. Now the next line is intve...
code_impl
8-w_8izUO38
9
15
8-w_8izUO38_a015_t017
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit. Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly. Wire a potentiometer to the microcontroller wit...
Connect the Arduino to your computer using a USB cable and select the correct port and board in the IDE. Verify the code for errors and then upload it to the Arduino.
Now once you're done with this, plug in your Arduino board, in my case the Arduino Uno, using the USB cable. Then go into tools. And make sure to select the correct port, the port on which your board is plugged in. In my case, I haven't plugged my board in yet so you can't see a com port. But you should see a com p...
hw_assembly,env_sw_setup
8-w_8izUO38
15
17
8-w_8izUO38_a017_t018
List required components. Assemble the initial circuit by attaching the power module and AC adapter to the breadboard and powering up the circuit. Connect a HS-311 servo motor to the microcontroller using a breadboard, wiring its signal, power, and ground lines properly. Wire a potentiometer to the microcontroller wit...
Test the setup by turning the potentiometer and observing the servo's movement.
And once it's done uploading, you should be able to turn your potentiometer as you can see me doing here and your servo will move accordingly. So feel free to go ahead and turn your potentiometer to see if your servo responds correctly.
hw_assembly
8-w_8izUO38
17
18
9NKPWzs3BpE_a003_t004
Not supported with pagination yet
List required components.
Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module.
And final part is this USB to micro USB cable to connect microcontroller to my computer. And let's assemble our circuit. So what I need first is the breadboard with ESP8266. I'm gonna connect a power supply module. It's gonna fit in into the breadboard in a nice way. It was actually designed this way to be nice. Rig...
hw_assembly
9NKPWzs3BpE
3
4
9NKPWzs3BpE_a004_t006
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module.
Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard power supply and ground. Using power supply only for PIR motion sensor. For motion detection.
so that's how I connected them here and now the other end of those wires they're gonna be connected um to the to the breadboard so first of all we need to check what is the voltage on those on those supply lines and uh here we've got 3.3 volts right now so there you go. Also. I'm gonna check this one as well just to...
hw_assembly
9NKPWzs3BpE
4
6
9NKPWzs3BpE_a006_t007
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module. Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard ...
Integrate the diode into the circuit for showing the detection signal from the PIR sensor.
And the last bit is gonna be this diode. And the diode is gonna go somewhere here. So let's maybe just do it somewhere here. Like, yeah, don't have much space. But what is important here is this longer end. Of the is this longer end of the diode, right? This is where we need to connect our digital pin to. So let m...
hw_assembly
9NKPWzs3BpE
6
7
9NKPWzs3BpE_a007_t008
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module. Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard ...
Complete the hardware setup by connecting the USB cable, powering the circuit.
okay so yeah the very last step is really just connecting the USB here switching on the power
hw_assembly
9NKPWzs3BpE
7
8
9NKPWzs3BpE_a008_t009
Not supported with pagination yet
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module. Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard ...
Start a new PlatformIO project ("MotionSensor") with Arduino framework and configure serial monitor speed as 115200 in platform.ini.
you how to write the sketch to make all of this working it's gonna be pretty straightforward so here we're gonna start from creating a new platform IO project so I'm going to platform IO quick access open I've we've done this many times right new project and this is gonna be called MotionSensor. Board is NodeMCU 1....
env_sw_setup,code_impl
9NKPWzs3BpE
8
9
9NKPWzs3BpE_a009_t010
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module. Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard ...
Set the correct serial monitor baud rate in platformio.ini and add a 5-second delay at startup to ensure stable serial communication between the device and the IDE.
that's going to be the value that we want to start the serial monitor and 5 seconds delay for the serial communication between the device and IDE. That's what we need on the platform.ini. reference code: '''#include <Arduino.h> void setup() { Serial.begin(115200); delay(5000); } void loop() { }'''
code_impl
9NKPWzs3BpE
9
10
9NKPWzs3BpE_a010_t011
List required components. Assemble the initial circuit by attaching the power module and AC adapter and ESP8266 to the breadboard and powering up the circuit to check the onboard LED light of power module. Connect the HC-SR501 sensor to the breadboard and complete connections between the MCU, sensor, MB102, breadboard ...
Write simple logic in the loop function to detect motion using digitalRead and toggle the diode with digitalWrite. (diode on when motion detected or otherwise)
It is as simple as reading the data from the digital pins. So, we have our output pin of the sensor connected to D1. And that's what we want to do. We want to check if D1 is high. If the voltage is high on D1. That means the output is high. That means there was a movement. Movement detected. That's what I'm goi...
code_impl
9NKPWzs3BpE
10
11
9fEnvDgxwbI_a002_t003
Not supported with pagination yet
List required components.
Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website.
First steps first, we're going to plug in the microSD card. Next we're going to go to the official Raspberry Pi website and download their Imgur software. It's called the Raspberry Pi Imager. I'm on a Windows machine so I'll download for Windows, but they do Mac and Ubuntu. And just install the file how you normall...
env_sw_setup
9fEnvDgxwbI
2
3
9fEnvDgxwbI_a003_t004
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website.
Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager.
And we're going to put normal Raspberry Pi OS on it. Choose the storage device. This is the microSD card that I mentioned earlier.
env_sw_setup
9fEnvDgxwbI
3
4
9fEnvDgxwbI_a004_t005
Not supported with pagination yet
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website. Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager.
Use advanced options (Ctrl + Shift + X) to set the hostname, enable SSH, configure the Wi-Fi, and set a password.
And then before we click write, there's also a tricky thing that we can do. Control shift X. And this gives us some advanced options. So we're going to set our host name. That's what the Raspberry Pi is going to display itself as over an internet network. Enable SSH. And to do that we have to set the password for...
env_sw_setup
9fEnvDgxwbI
4
5
9fEnvDgxwbI_a005_t008
Not supported with pagination yet
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website. Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager. Use advanced options (Ctrl + Shift + X) to set the hostname, enable SSH, configure...
Set the Wi-Fi country code using the advanced options or reference a Wikipedia link for country codes. Write the OS to the microSD card, and eject it.
Set your Wi-Fi country. I am in the United States and that code is US. In case you don't know what your code is or say your country has a conflicting code, just go to this Wikipedia article. I'll link it in the description. They have every single code for every single country. Back to the advanced options for our...
env_sw_setup
9fEnvDgxwbI
5
8
9fEnvDgxwbI_a008_t009
Not supported with pagination yet
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website. Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager. Use advanced options (Ctrl + Shift + X) to set the hostname, enable SSH, configure...
Insert the microSD card into the Raspberry Pi and power it on.
Take the microSD out of the computer. Plug it into your Raspberry Pi. And then power to your Raspberry Pi.
hw_assembly
9fEnvDgxwbI
8
9
9fEnvDgxwbI_a009_t010
Not supported with pagination yet
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website. Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager. Use advanced options (Ctrl + Shift + X) to set the hostname, enable SSH, configure...
Open a terminal, confirm the Raspberry Pi is connected to the network using the `ping raspberrypi -n 1` command.
After the Pi boots up, we're going to open up our terminal command prompt. And then we're going to go to the next step. We're going to go to the next step. I'm going to go down here, search for terminal. You can just do the same steps in whatever operating system you have if you have a way to search through your ...
code_impl
9fEnvDgxwbI
9
10
9fEnvDgxwbI_a010_t011
List required components. Insert the microSD card into the card reader. Download and install the Raspberry Pi Imager software from the official Raspberry Pi website. Select Raspberry Pi OS and the microSD card in the Raspberry Pi Imager. Use advanced options (Ctrl + Shift + X) to set the hostname, enable SSH, configure...
SSH into the Raspberry Pi using the command `ssh pi@raspberrypi` and enter the password set earlier and hit yes for continue connecting.
So that's the command sshpy at that host name, raspberrypy. And are you sure? Yes, I'm sure I want to connect. And then this is the password we set earlier. If you haven't used SSH before in the terminal, it won't show you the characters as you type them in the password. Don't worry, that's normal. You just type out th...
env_sw_setup,code_impl
9fEnvDgxwbI
10
11
End of preview. Expand in Data Studio

EmbedCopilot-Bench

EmbedCopilot-Bench is a multimodal benchmark for evaluating whether vision-language models can generate the next concrete instruction in embedded-device tutorials. Each example is built from consecutive tutorial action steps: the current action step provides the visual state and completed-step history, while the following action step provides the task query and ground-truth next-step instruction.

Dataset Structure

The released split contains 216 test examples. The split is stored as 12 Parquet shards under data/test-*.parquet so that the Hugging Face Dataset Viewer can load the benchmark reliably. Together, the shards form one test split.

Each row contains:

Column Type Description
question_id string Unique sample identifier.
device_image image Device-view image for the current tutorial step.
screenshot_image image or null Optional software/screen-view image for the current tutorial step.
history_summaries string Summary of tutorial steps completed before the target step.
task_query string User-facing query for the target next step.
answer string Ground-truth next-step instruction.
capability string Coarse capability label, for example hardware assembly or software setup.
video_id string Source tutorial video identifier.
anchor_step_index int32 Current action step index within the source tutorial.
target_step_index int32 Target next action step index within the source tutorial.

Evaluation Protocol

The benchmark prompt follows the paper's answer-generation setting: models receive the completed-step history, the visual context image or images, and the target task query, then generate the immediate method or instruction needed to accomplish the next step. The accompanying code repository provides scripts and a notebook for running model inference and judge-based evaluation with the released fields.

Intended Use

This dataset is intended for research on multimodal procedural reasoning, embedded-device assistance, tutorial understanding, and evaluation of vision-language models on hardware/software workflows. It is designed as an evaluation benchmark rather than a training corpus.

ESR Tasks

The code repository also includes ESR task materials for reproducibility, including task-level README files and Wokwi project files where applicable. These files document the expected executable behavior used in the evaluation setting.

License

The dataset is released under the Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC 4.0). The accompanying code repository may include code and scripts under the license specified in that repository.

Citation

If you use EmbedCopilot-Bench, please cite the corresponding EmbedCopilot paper.

Downloads last month
16