QT Py TCRT100 Component
In the QT Py Device Click on the big + icon to add the TCTR100 component.
In the drop down set the Breakout Pin to A1.
Set the Return Interval to On Change.
Feather Warning Light Component
In the Feather Device Click on the big + icon to add the Buzz 5v component.
In the drop down set the Buzzer 5V Pin to D10
Create New Action
Build the Actions to trigger the Warning Light
- Go to https://io.adafruit.com and click on Actions
- Click the New Actions button.
- Choose Yes, use Blockly!
Reactive Trigger Setup
- Click on the Triggers block
- Drag the Reactive block and snap it to the Trigger section in the Action block
- In the Feed block select the TCRT1000 feed from the dropdown menu
- Under the Operator section, select "<" from the dropdown menu.
- In Values menu type 0
Action Setup
- In the Values menu type 1
- In the to section select Feather Buzzer 5V
Create New Action
Build the Actions to trigger the Warning Light
- Click the New Actions button.
- Choose Yes, use Blockly!
Reactive Trigger Setup
- Click on the Triggers block
- Drag the Reactive block and snap it to the Trigger section in the Action block
- In the Feed block select the TCRT1000 feed from the dropdown menu
- Under the Operator section, select ">" from the dropdown menu.
- In Values menu type 1
Action Setup
- In the Values menu type 0
- In the to section select Feather Buzzer 5V
Page last edited July 03, 2024
Text editor powered by tinymce.