Relay integration
#5
(08-21-2016, 09:37 PM)vigor Wrote: marcushh77, thanks for you guidance, i've installed RPi.GPIO-PineA64 and i am familiar with python.
as for LED lab, the only step that works for me is constantly lit up LED (pin 1 and pin6).
i was following steps from here http://www.thirdeyevis.com/pi-page-2.php
turning LED on and off and blinking LED example did not work, my LED stays always on being attached to pin7 .
I wander if gpio pin numbers in pine are different than Raspberry pi  ?
Also i did not find resistor 50 ohm, i only found 10 ohm, this is the only deviation from the lab.
Should I be connecting the wires to PI 2 Bus or Euler bus ? pins ?

You'll want to change the value of that resistor if you can - shouldn't be anything below about 47ohm (running a standard red led at it's max recommended current), and preferably not below 68ohm. You can put a couple in series to increase the resistance if you don't have anything else. A standard red led is visible (although admitidly quite dim) on the pine64 all the way up to 4.7K (that is 4700 ohms!!!), so have a lot of room to play with as far as values. Basically, a higher resistor value is better, as it puts less strain on the LED and the Pine64 GPIO pins. Otherwise, you'll be putting too much current through the led (and possibly damaging the GPIO pin output drive??)

AFAIK, the GPIO numbers are the same (when using the Raspberry Pi header). However, GPIO 7 is not usable at present, as it is used for the LCD backlight drive. If you skip down two pins, to 11, and change the three references to pin 7 in the blink code on that page to 11, it should work just fine.

If you have a look at the pinout map Marcus has linked to in another thread, you'll see which headers to avoid due to secondary functions... just remember green is good Wink
  Reply


Messages In This Thread
Relay integration - by vigor - 08-15-2016, 06:08 PM
RE: Relay integration - by jl_678 - 08-17-2016, 03:48 PM
RE: Relay integration - by MarkHaysHarris777 - 08-17-2016, 04:22 PM
RE: Relay integration - by vigor - 08-21-2016, 09:37 PM
RE: Relay integration - by pfeerick - 08-22-2016, 03:27 AM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 07:40 PM
RE: Relay integration - by vigor - 08-22-2016, 08:41 PM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 09:21 PM
RE: Relay integration - by Boring - 08-22-2016, 10:11 PM
RE: Relay integration - by MarkHaysHarris777 - 08-22-2016, 10:20 PM
RE: Relay integration - by Boring - 08-23-2016, 12:35 AM
RE: Relay integration - by pfeerick - 08-23-2016, 06:11 AM
RE: Relay integration - by MarkHaysHarris777 - 08-23-2016, 12:50 AM
RE: Relay integration - by MarkHaysHarris777 - 08-23-2016, 06:57 AM
RE: Relay integration - by vigor - 08-25-2016, 01:17 AM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 01:42 AM
RE: Relay integration - by pfeerick - 08-25-2016, 06:53 AM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 11:07 AM
RE: Relay integration - by vigor - 08-25-2016, 03:30 PM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 08:35 PM
RE: Relay integration - by pfeerick - 08-25-2016, 09:48 PM
RE: Relay integration - by MarkHaysHarris777 - 08-25-2016, 09:58 PM
RE: Relay integration - by vigor - 09-04-2016, 03:25 PM
RE: Relay integration - by pfeerick - 09-05-2016, 12:27 AM
RE: Relay integration - by MarkHaysHarris777 - 09-04-2016, 09:00 PM
RE: Relay integration - by MarkHaysHarris777 - 09-05-2016, 11:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)