irremote not working properly on arduino boards
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 43/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- arduino, go
- Ambito
- embedded-iot
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 756
- Fork
- 251
- Merge medio
- 7g 12h
- PR unite (30g)
- 8
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinygo-org/drivers
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
tinygo-org/drivers#946 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
tinygo-org/drivers#927 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
tinygo-org/drivers#901 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
tinygo-org/drivers#886 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
tinygo-org/drivers#877 ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di tinygo-org/drivers
Issue simili
-
release
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
github/gh-aw-mcpg#17603 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
tinygo-org/tinygo#6727 ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
oras-project/oras-go#1827 ·
I maintainer di solito rispondono entro 1 giorno
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404Apertadocumentation
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
ClickHouse/clickhouse-go#2185 ·
I maintainer di solito rispondono entro 1 giorno
-
bug needs triage receiver/podman
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno