irremote not working properly on arduino boards
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- arduino, go
- Área
- embedded-iot
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 756
- Forks
- 251
- Merge medio
- 7 d 12 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tinygo-org/drivers
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
tinygo-org/drivers#946 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
tinygo-org/drivers#927 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 22/100
tinygo-org/drivers#901 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
tinygo-org/drivers#886 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
tinygo-org/drivers#877 ·
Los mantenedores suelen responder en 3 días
Todos los issues de tinygo-org/drivers
Issues similares
-
release
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
github/gh-aw-mcpg#17603 ·
Los mantenedores suelen responder en 1 día
-
avr: SPI Mode2 runs as mode 1Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tinygo-org/tinygo#6727 ·
Los mantenedores suelen responder en 1 día
-
help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 94/100
oras-project/oras-go#1827 ·
Los mantenedores suelen responder en 1 día
-
docs: database/sql Sessions example never commits its batch, and its "Full Example" link is a 404Abiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
ClickHouse/clickhouse-go#2185 ·
Los mantenedores suelen responder en 1 día
-
bug needs triage receiver/podman
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
open-telemetry/opentelemetry-collector-contrib#53700 · 1 comentario ·
Los mantenedores suelen responder en 1 día