DexterInd / DexterInd/GrovePi

Relay only works the first time

Open
#307 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
494
Forks
472
PR merge metrics
No merged PRs in 30d

Description

I have this setup:

  • Raspberry PI 2 Model B
  • GrovePi+
  • Grove Relay from Seeed Studio
$ ./firmware_version_test.sh 
Checking for firmware version
=============================
GrovePi has firmware version: 1.2.7

When I execute this test code the relay works only the first time and then nothing happens:

$ python /home/pi/Desktop/GrovePi/Software/Python/grove_relay.py 
on  (turns the Relay ON)
off  (turns the Relay OFF)
on  (nothing happens)
off  (nothing happens)
on  (nothing happens)
off  (nothing happens)
...

On the GrovePi, the RST LED is off. Only the green power led is on.
Sometimes I got the RST LED red on. But it seems random.

Does anybody knows how I could debug this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running firmware_version_test.sh and reproducing the repeated on/off commands in grove_relay.py on the listed Raspberry Pi, GrovePi+, and Grove Relay setup. Inspect the reset LED behavior and the relay script's interaction with firmware 1.2.7; done means identifying why only the first toggle works and documenting or verifying a repeatable fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.