08-22-2016, 03:27 AM
(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