motionEyeOS (PINE A64(+)) 20170611 [Jun 16] | Ubuntu Images (Pinebook) 0.5.5-65 [Jun 15] | Ubuntu Minimal (PINE A64(+)) 0.5.5-65 [Jun 15] | Q4OS (Pinebook) 1805 [Jun 12] | Android 6.0.1 (Pinebook) 20170605 [Jun 5] | Win10 IoT (PINE A64(+)) 10.0.15063.0_20170602 [Jun 5] | FalconGate (PINE A64(+)) 20170430 [May 31] | Q4OS (PINE A64(+)) 1804 [May 30] | Armbian - Ubuntu (SOPINE) 5.27 [May 22]

Getting Started | Visit the WIKI | IRC Logs | Forum Rules/Policy


GPIO and SPI
#11
(08-27-2016, 07:14 AM)DonFL Wrote: Marcus, I'm curious if you've had that conversation with Gordon re helping with wiringPi for the Pine, or not as yet. Sounds like you did, and he was interested. Reason i ask is, awhile back, month or so,  I pinged him and inquired about wiring pi for the Pine, and got a very direct "not interested..", but may have just caught him on a bad day, or he just needs the right person to ask. And it very well could be a non-issue if Richard is able to complete his project.

The initial response I received was , "interested but unable to devote any time to it". He indicated that other people have ported his stuff to other platforms, and he encouraged me to go for it ...  what changed the scenario was tllim offering to send him a board if he would work on it. (that was the discussion we were in via email when KB3VGW posted his stuff to pine64.pro.  My next step with Gordon was negotiating to exchange the board for motive and interest.   Smile   That is where it got left...
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
Reply
#12
Is there any new updates on getting wiringPi to work on the Pine64? I tried getting this repo to work https://github.com/pfeerick/wiringPi-Pine64, but not sure how different the gpio layout is on the Pine vs the pi. I was hoping I just needed to make some minor changes, but that didn't seem to be the case.
Just wondering if someone got this working? I would prefer to write in C/C++ instead of python.
Reply
#13
I also did not find any working WiringPI solution for the Pine64.
I will try to make a version for the Pine64 myself by using the
latest release from https://git.drogon.net/ and differences in
pfeerick release and items already working in the Python
version. I will post a link as soon as i got it working.
Reply
#14
(04-21-2017, 12:53 AM)pkfpeters Wrote: I also did not find any working WiringPI solution for the Pine64.
I will try to make a version for the Pine64 myself by using the
latest release from https://git.drogon.net/ and differences in
pfeerick release and items already working in the Python
version. I will post a link as soon as i got it working.

Awesome, thanks pkfpeters  Smile
Reply
#15
Small update: I have changed the detection routines of the original code. It is now able to detect a Pine A64.
I am currently working on reworking the base address and gpio pin mapping; this is taking more work because
i also want to understand what i am doing; i am using the Rpi.GPIO source and the processor manual to
understand how the mapping is done.

It will be a hack on drogon's code, because it currently is too much work to make it like i normally would have
done. Gordon's wiringPi is perfect for Raspberry Pi's, but does not leave much room for other non Rpi boards.
Non the less, i am still very happy and gratefull for using his wiringPi code because a lot is done and it opens
up the possibility of using the openPLC project for industrial automation.

I will keep you informed.
Reply
#16
Another update: Did not had much time working on it. Currently i have made some changes in address lookup based on pine64 switch statement and i am currently trying to make a new mapping in order to control the correct GPIO pins. After this is done i will do some test to find out if i can actually control the correct pins. Once that is done i will release the source so others can also test it. I still need to work on rewriting PWM control etc. but first things first...
Reply
#17
(04-28-2017, 07:13 AM)pkfpeters Wrote: Another update: Did not had much time working on it. Currently i have made some changes in address lookup based on pine64 switch statement and i am currently trying to make a new mapping in order to control the correct GPIO pins. After this is done i will do some test to find out if i can actually control the correct pins. Once that is done i will release the source so others can also test it. I still need to work on rewriting PWM control etc. but first things first...

Sounds great, by the way I ran across this repo: https://github.com/ayufan-pine64/dht22-p...wiringPi.c where the guy uses the python library source code straight away. Incase this might be of some help to you. I have been using it to set up the event listeners, so I could use the RCSwitch library, although haven't quite got it working yet.
Reply
#18
Hi louwie17,

Sorry for the delay but i just keep getting occupied with all kind of other stuff.
I did not have the time to make additional changes. I still need to make it work
because i have to use the gpio pins in my future projects. Alternatively i could also
go for a different library and make support for that library in openplc... who knows.

So just to let you know i'm not abandoning this project. I just need some projects
to finish before i can continue on this one. I keep you informed.
Reply
#19
(06-12-2017, 08:30 AM)pkfpeters Wrote: Hi louwie17,

Sorry for the delay but i just keep getting occupied with all kind of other stuff.
I did not have the time to make additional changes. I still need to make it work
because i have to use the gpio pins in my future projects. Alternatively i could also
go for a different library and make support for that library in openplc... who knows.

So just to let you know i'm not abandoning this project. I just need some projects
to finish before i can continue on this one. I keep you informed.

No worries at all, I have hardly had time myself to continue to poke around, although I have managed to get a radio receiver working with the RCSwitch library, and mimicking how wiringPi does it's events. I have been wanting to share it, but running into one caveat where I can only run the program once, when I run it a second time it gets stuck on the 'poll' request. Not sure if I hit the limit of file descriptors or if I am not cleaning up correctly, or if it is a PINE64 issue.
Might create a new thread for it, once I have done some more debugging.
Reply
#20
Hey @pkfpeters, I have been working on getting a radio receiver/transmitter to work on the pine64 using the RCswitch library, which uses the wiringPi library. The biggest hurtle was getting the event callback stuff to work for the receiving end, but for the rest most of the general wiringPi functionality is there (I think).
I haven't spend to much time cleaning things up, so I hope the code is somewhat readable. Here is a link: https://github.com/louwie17/receiver-pin...wiringPi.c
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 1 381 06-20-2017, 06:35 AM
Last Post: louwie17
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 2 1,555 05-05-2017, 08:47 PM
Last Post: bobpaul
Star GPIO, SPI and I2C C++ Lib databit 5 447 05-01-2017, 02:53 PM
Last Post: Zoidiano0
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 2 684 03-30-2017, 08:08 PM
Last Post: tllim
  RPi.GPIO python module for Pine A64/A64+ aquilegia 76 9,605 02-23-2017, 10:05 AM
Last Post: martinayotte
  Read GPIO problem shworker 3 285 02-22-2017, 04:23 AM
Last Post: MarkHaysHarris777
  GPIO fiq capability joseph 3 412 11-10-2016, 06:07 PM
Last Post: joseph
  RPI2-GPIO mus1c 6 715 09-22-2016, 05:28 AM
Last Post: mus1c
  Fixing GPIO user permission errors pfeerick 0 987 09-18-2016, 04:54 AM
Last Post: pfeerick
  C GPIO igna09 22 2,499 09-01-2016, 09:06 AM
Last Post: martind1983

Forum Jump:


Users browsing this thread: 1 Guest(s)