The PIR motion sensor is an electronic device that can sense certain characteristics of the surrounding environment. It does this by pushing or monitoring infrared radiation. PIR motion sensors can also detect the amount of heat emitted by objects and monitor movement. Moreover, PIR technology not only exists in industry, but also in daily life. Generally speaking, when we decorate the balcony, we often choose incandescent lamps or ceiling lamps. Although these lamps work well, but often forget to turn off. Now we will use the PIR motion sensor & Seeed Studio XIAO Expansion Board to control the LED Ring.
· Step 1. Download and Install the latest version of Arduino IDE according to your operating system
· Step 2. Launch the Arduino application
· Step 3. Add Seeed Studio XIAO nRF52840 board package to your Arduino IDE
· Navigate to File > Preferences, and fill "Additional Boards Manager URLs" with the url below: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
Navigate to Tools > Board > Boards Manager..., type the keyword "seeed nrf52" in the search box, select the latest version of the board you want, and install it. You can install both.
· Step 4. Select your board and port
Board
After installing the board package, navigate to Tools > Board and choose the board you want, continue to select "Seeed XIAO nRF52840 Sense". Now we have finished setting up the Seeed Studio XIAO nRF52840 (Sense) for Arduino IDE.
Port
Navigate to Tools > Port and select the serial port name of the connected Seeed Studio XIAO nRF52840 (Sense).
· Step 5. Navigate to File > Examples > 01.Basics > Blink to open Blink example
· Step 6. Click the Upload button to upload the Blink example code to the board
Once uploaded, you will see the built-in red LED blinking with a 1-second delay between each blink. This means the connection is successful and now you can explore more projects with the Seeed Studio XIAO nRF52840 (Sense)!
Hardware setupConnect XIAO nRF52840 and groves on the expansion board.
Then copy the code in your Arduino IDE.
Comments
Please log in or sign up to comment.