Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[PC-1632] - Opta's interrupts information update #1780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
jcarolinares merged 3 commits into main from canchebagur/opta-irqs-update
Feb 28, 2024

Conversation

Copy link
Contributor

@canchebagur canchebagur commented Feb 28, 2024
edited by jcarolinares
Loading

What This PR Changes

  • Updates the information on Opta's interrupts regarding terminals I1 and I4.

Contribution Guidelines

Copy link

vercel bot commented Feb 28, 2024
edited
Loading

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-content ❌ Failed (Inspect) Feb 28, 2024 2:46am

Copy link

github-actions bot commented Feb 28, 2024
edited
Loading

docs-content

🚀 Preview this PR: https://c2843e9f.docs-content.pages.dev
📍 Commit SHA: 68fa1d0

Copy link
Contributor

@jcarolinares jcarolinares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Done

Ready to publish it

Publishing it

#### Hardware Requirements

- OptaTM PLC (x1)
- [OptaTM Lite](https://store.arduino.cc/products/opta-lite), [OptaTM RS485](https://store.arduino.cc/products/opta-rs485), or [OptaTM WiFi](https://store.arduino.cc/products/opta-wifi) (x1)
Copy link
Contributor

@jcarolinares jcarolinares Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!

- [OptaTM Lite](https://store.arduino.cc/products/opta-lite), [OptaTM RS485](https://store.arduino.cc/products/opta-rs485), or [OptaTM WiFi](https://store.arduino.cc/products/opta-wifi) (x1)
- USB-C® cable (x1)
- 12-24VDC/1A power supply (x1)
- +12-24 VDC/0.5 A power supply (x1)
Copy link
Contributor

@jcarolinares jcarolinares Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

The example will showcase different interrupt routines for OptaTM using two scenarios:

1. The `BTN_USER` is the user-programmable button that will be used for the interrupt to simulate asynchronous events. The corresponding interrupt will make relay and corresponding status LED state switch in a sequence based on its present state.
1. The `BTN_USER` is the user-programmable button that will be used for the interrupt to simulate asynchronous events. The corresponding interrupt will make a relay and corresponding status LED state switch in a sequence based on its present state.
Copy link
Contributor

@jcarolinares jcarolinares Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. The `BTN_USER` is the user-programmable button that will be used for the interrupt to simulate asynchronous events. The corresponding interrupt will make a relay and corresponding status LED state switch in a sequence based on its present state.
1. The `BTN_USER` is the user-programmable button that will be used for the interrupt to simulate asynchronous events. The corresponding interrupt will make a relay and its corresponding status LED state switch in a sequence based on its present state.

The `relayLinearCounter()` function runs a linear sequence for turning on and off the `D0` to `D3` relays with their corresponding status LEDs based on the interrupt triggered each time `BTN_USER` is pressed.

The `counter` and `relayLedState` variables are used to track the total number of `BTN_USER` triggered interrupts, which also represents the number of button presses, and currently shifted relay status. The `relCntState` is used as a gatekeeper instance based on the `BTN_USER` interrupt request since it is an active function inside the `loop()` function.
The `counter` and `relayLedState` variables are used to track the total number of `BTN_USER` triggered interrupts, which also represents the number of button presses and currently shifted relay status. The `relCntState` is used as a gatekeeper instance based on the `BTN_USER` interrupt request since it is an active function inside the `loop()` function.
Copy link
Contributor

@jcarolinares jcarolinares Feb 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIIIIIIIIIIIIIIIIII

@jcarolinares jcarolinares deleted the canchebagur/opta-irqs-update branch February 28, 2024 09:20
@jhansson-ard jhansson-ard added fix/update A small fix or update arduino Bugs and fixes added by the Arduino Team pro labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@jcarolinares jcarolinares jcarolinares approved these changes

Assignees
No one assigned
Labels
arduino Bugs and fixes added by the Arduino Team fix/update A small fix or update pro
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /