[April 06] Volumio (2.390-2018-03-27) ROCK64 | [April 06] Q4OS (2.4-r3) PINE A64(+) Pinebook | [Jan 06] Arch Linux (20171225-1) PINE A64(+) Pinebook A64-LTS/SOPINE | [Jan 04] Linux (0.5.15-136) ROCK64 | [Jan 04] Android (20171204) ROCK64 | [Dec 22] Stretch Mate (0.5.15-136-20171222) ROCK64 | [Dec 21] openHAB 2 (v1.4) PINE A64(+)

Project Inspiration | Get Started | IRC Logs | Forum Rules/Policy


Python GPIO Library for the Rock64 (R64.GPIO)
#11
Internal SoC PullUps are usually between 20K to 100K.

So, using a external PullDown to put it low is like creating a voltage divider with the internal pullup, therefore with a external 20K, you get a voltage that is neither a LOW or a HIGH, explaining why you get interrupts triggered repeatedly.

If you use a external 1K as a pulldown instead, you will see that will be close to 0V ...
Reply
#12
(04-12-2018, 08:08 AM)martinayotte Wrote: Internal SoC PullUps are usually between 20K to 100K.

So, using a external PullDown to put it low is like creating a voltage divider with the internal pullup, therefore with a external 20K, you get a voltage that is neither a LOW or a HIGH, explaining why you get interrupts triggered repeatedly.

If you use a external 1K as a pulldown instead, you will see that will be close to 0V ...
Thanks for your reply.

By calculation, the internal pull-up resistor is around 60K, it is normal.

As I expected the pin was pull-down internally and I had prepared a switch with 5K resistor to pull it up, so when I found the pin was pull-up, I was a little confused - I wanted to pull it down and use the switch to pull it up to trigger the interrupt.
Reply
#13
(04-10-2018, 02:08 PM)mark79 Wrote: It would be great if you add "GPIO.add_event_detect". I need this for a motion python script.
Working on it, I'll have it implemented soon Cool

(04-11-2018, 04:20 PM)i69fstop Wrote: Actually, it didn't work. There is no more error but when testing the the LED, it din't work.
Hmm, make sure you have the correct GPIO/pin selected. Pin assignments for each mode are documented here: https://github.com/Leapo/Rock64-R64.GPIO...GPIO-Modes

I usually use ROCK 100 (BOARD 15), ROCK 101 (BOARD 16), and ROCK 102 (BOARD 18) for testing.

Also make sure you've downloaded the latest version from the repo!
Reply
#14
(04-17-2018, 10:03 AM)Leapo Wrote:
(04-10-2018, 02:08 PM)mark79 Wrote: It would be great if you add "GPIO.add_event_detect". I need this for a motion python script.
Working on it, I'll have it implemented soon Cool

(04-11-2018, 04:20 PM)i69fstop Wrote: Actually, it didn't work. There is no more error but when testing the the LED, it din't work.
Hmm, make sure you have the correct GPIO/pin selected. Pin assignments for each mode are documented here: https://github.com/Leapo/Rock64-R64.GPIO...GPIO-Modes

I usually use ROCK 100 (BOARD 15), ROCK 101 (BOARD 16), and ROCK 102 (BOARD 18) for testing.

Also make sure you've downloaded the latest version from the repo!

Thanks, I have added your Github link at PINE64 wiki page: http://wiki.pine64.org/index.php/ROCK64_...ifications
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  QQ Group 104471957, for Rock64 Chinese users fbms 7 536 04-23-2018, 02:34 AM
Last Post: Ryan
  Rock64 as a retro-gaming console: personal thoughts Danielsan 7 223 04-20-2018, 03:27 PM
Last Post: Danielsan
  New Raspberry PI 3 B+ ...Rock64 still better:D S3phi40T 12 1,224 04-19-2018, 05:08 PM
Last Post: tllim
Big Grin Rock64 as a retro-gaming console: early impressions Luke 44 10,058 04-08-2018, 08:23 AM
Last Post: Danielsan
  My new video about the Rock64 NicoD 2 300 04-06-2018, 12:08 PM
Last Post: el.librero1800
  Rock64 kernel compilation - configs acrobatbob 0 137 04-06-2018, 02:55 AM
Last Post: acrobatbob
  Should we Raid Rock64? S265 1 173 04-05-2018, 01:04 PM
Last Post: elatllat
  Diigiit is now distributing Rock64 Diigiit 0 127 04-03-2018, 06:32 PM
Last Post: Diigiit
Exclamation Volumio 2 on Rock64 support gkkpch 3 332 04-03-2018, 12:13 AM
Last Post: gkkpch
  NextcloudPi on a Rock64 jsfrederick 4 273 04-02-2018, 08:40 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)