This project will show you how to program the IoT Development Kit from ON Semiconductor by using built in example code. We will program the PIR-GEVB to detect motion and output to the LCD Screen that motion was detected.
First you will go to "Examples > Simple > PIR motion detection (NCS36000_PIR)" (See Figure 1). After you load this example you might see an Indexing error (Figure 2). If so, Right-Click on the project header on the left and click "Index > Rebuild" (Figure 3).
Next, we will program the device. Plug in your USB A to MINI B cord (Figure 4) into the port on the BB-GEVK (Figure 5). Then open Device Manager and go to "Ports (COM & LPT)" and find the "USB Serial Port (COMx)" (Figure 6). Note what COM port it is in.
If your COM port is not recognized, please download and install drivers from FTDI website, since on the baseboard is located FT232: http://www.ftdichip.com/Drivers/D2XX.htm
Connect the J5 jumper (Red) on the PIR shield. Set the resistor trimmers roughly into the positions per Figure 7 (Yellow). Connect the PIR-GEVB to the BB-GEVK in one of the two ports highlighted (Figure 8).
To program the device go to "Project > Build All" (Figure 9). Then select the Project Name in the Project Explorer and press the ON Button icon (Figure 10). It was then ask you to select which COM port to program to (Figure 11). Select the COM port found before.
Now a CMD Window will pop up tell you to "Please reset the board" (Figure 12). Select the button to the left of the LCD screen that says "RESET SW6" (Figure 13). The device will then begin to program (Figure 14). Reset the board and your board will now display "Motion Detected" whenever the PIR-GEVB sees movement (Figure 15 and 16).
Comments
Please log in or sign up to comment.