irremote not working properly on arduino boards
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 43/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- arduino, go
- 領域
- embedded-iot
調査の方向性
Start by reading the irremote driver and its pulse timing and state transitions, then inspect TinyGo machine interrupt support for the Arduino Nano Every and Nano 33 IoT. Compare received pulse timings and state progression on both boards with the working Arduino IDE behavior described in the issue. Done when IR button presses produce consistent decoded command values on both boards.
索引モデルが issue の本文から書いたものです。
説明
irremote library (or the underlying tinygo machine drivers) don't seem to be functioning properly for arduino boards. I tried on arduino nano every and arduino nano 33 iot and the behavior on both is different and not functioning properly in either. As a reference I compared against code written in Arduino IDE using IRremote.h and that worked in both cases.
Here are details:
The Arduino IDE code that worked on both boards:
#include <IRremote.h>
#define IR_RECEIVE_PIN 9
void setup() {
Serial.begin(9600);
IrReceiver.begin(IR_RECEIVE_PIN);
}
void loop() {
if (IrReceiver.decode()) {
IrReceiver.resume();
Serial.println(IrReceiver.decodedIRData.command);
}
}
It prints consistent values on the serial based on the button pressed on the IR remote.
The tinygo driver does not exhibit similar behavior. Looking more into the code it seems the pulse intervals are not arriving as expected. In particular, on arduino nano 33 iot board, the pulse timing appears to fall through following state changes as expected but fails to move to bitReadEnd due to a much longer than expected pulse.
State changes before reset occurs on arduino nano 33 iot
leadPulseStart
leadSpaceStart
leadSpaceEnd
bitReadStart
I should also mention that looking into pulse width timing the behavior is not consistent across different boards and I get different values on arduino nano every v/s arduino nano 33 iot.
Reading up other issues it seems SetInterrupt() is not implemented on all pins, however, that does not seems to be the issue here.
- 主要言語
- Go
- スター
- 756
- フォーク
- 251
- 平均マージ
- 7日 12時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tinygo-org/drivers のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tinygo-org/drivers#946 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
tinygo-org/drivers#927 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
tinygo-org/drivers#901 ·
メンテナーはふだん 3 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
tinygo-org/drivers#886 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tinygo-org/drivers#877 ·
メンテナーはふだん 3 日以内に返信
tinygo-org/drivers の issue をすべて見る
似ている issue
-
release
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
github/gh-aw-mcpg#17603 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
tinygo-org/tinygo#6727 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
oras-project/oras-go#1827 ·
メンテナーはふだん 1 日以内に返信
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ClickHouse/clickhouse-go#2185 ·
メンテナーはふだん 1 日以内に返信
-
bug needs triage receiver/podman
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信