Notifications
Clear all

Raspberry Pi pin usage???

85 Posts
4 Users
8 Likes
2,760 Views
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron Yes, and that is why I think this is the OFFICIAL GPIO interface.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

@zander

Posted by: @zander

If someone has a PI5, try that and screen print the results for me.

/quote]

$ apropos gpio
gpiozero-env (7) - GPIO Zero environment vars
pig2vcd (1) - A utility to convert pigpio notifications to VCD.
pigpio (3) - A C library to manipulate the Pi's GPIO.
pigpiod (1) - A utility to start the pigpio library as a daemon.
pigpiod_if (3) - A C library to interface to the pigpio daemon.
pigpiod_if2 (3) - A C library to interface to the pigpio daemon.
pigs (1) - command line socket access to the pigpio daemon.
pinout (1) - GPIO Zero pinout tool
pintest (1) - GPIO Zero pintest tool
remote-gpio (7) - GPIO Zero remote GPIO guide

 

This post was modified 5 months ago by byron

   
Inq reacted
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @zander

@inq ARGH, I give up (almost) NOT Joan, KERNEL! Carry on, I will test with my PI4 and 5 when it gets here and let you know. I will only be using what is built into Raspberry Pi OS, NO add on libraries!

I don't know what part of English you're not reading...

I am not using KERNEL because it has NO SPI interface.  I do NOT want to work at the GPIO pin level JUST to talk to a LoRa module.  So when you say "I will only be using what is built into Raspberry Pi OS, NO add on libraries!"... are you trying to say... you're going to write your own LoRa interface using nothing but the Kernel?  Good luck with that.  There is no built-in ability to talk to LoRa!

If you finally break down and add libraries and find a LoRa library and module that works with RaspPi 5, I would be interested in that.  

I am using pigpio (Joan).  It does do SPI very easily with 5 routines!  

 

Posted by: @zander

BTW, type 'apropos gpio' on your PI4 to see what is built in. I am real curious to find out about remote-gpio (needs to be enabled in raspiconfig)

RaspPi 4B 8GB - 64bit OS

image

VBR,

Inq

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron Thank you kind sir. That is a few more than I get on Pi4, not sure why.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

@zander

I wasn't familiar with apropos gpio,

... but both my RasPi4 and @byron's RasPi5 seem to have pigpio!  

 

@byron - does this mean pigpio works on RasPi5??? even though the forum post you references says it won't???    

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @inq

@zander

I wasn't familiar with apropos gpio,

... but both my RasPi4 and @byron's RasPi5 seem to have pigpio!  

 

@byron - does this mean pigpio works on RasPi5??? even though the forum post you references says it won't???    

I will have to fish out an LED or something to hook it up to see whats up.  But don't forget the raspberrypi OS is for all the pis not just the rpi5 so its probably included for the older boards.  Maybe I will get to test it out later tonight as I'm curious as to this new rpi5 gpio stuff.

 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq OMG, apropos allows one to appear to be a Linux expert. I usually don't tell anyone about that command; it's how I stay ahead of the pack. Enjoy.

I still want to know how you get your man pages included though.

My small bet is yes, pigpio will work on 4 and 5. Maybe try some sample programs?

Not that it is critical, we both are focussed on the ZERO for battery purposes, but still nice to know just in case.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq Sorry, please excuse my ignorance. I only have the sample program I posted for reference and it seemed pretty straightforward. I will have another look at the SPI docs, but the link you provided looked as complicated as the kernel. But I will have another look.

Sorry, I don't want to drag this out, and you are free to ignore me, but I am confused. You say you will use Joan's library, but then say it is called pigpio. I thought that pigpio is what the kernel API is called. Both myself and @byron get pigpio in our apropos results. Is the 3rd party Joan library installed by default?

BTW, how do you also get the man pages from tour apropos, I don;t and @byron didn't, and it is very usefull.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq OMG, apropos allows one to appear to be a Linux expert. I usually don't tell anyone about that command; it's how I stay ahead of the pack. Enjoy.

I still want to know how you get your man pages included though.

My small bet is yes, pigpio will work on 4 and 5. Maybe try some sample programs?

Not that it is critical, we both are focussed on the ZERO for battery purposes, but still nice to know just in case.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @byron

I will have to fish out an LED or something to hook it up to see whats up.  But don't forget the raspberrypi OS is for all the pis not just the rpi5 so its probably included for the older boards.  Maybe I will get to test it out later tonight as I'm curious as to this new rpi5 gpio stuff.

You're right... I'm thinking Android how it only installs stuff that (should) work.  At least I'm glad its seems to be part of the distribution... so I didn't totally screw up.

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1122
 

Posted by: @zander

Is the 3rd party Joan library installed by default?

yes, as is gpiozero which is also a third party library. (as I guess are most of the linux libraries, all contributions from various folk)


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @zander

@inq OMG, apropos allows one to appear to be a Linux expert. I usually don't tell anyone about that command; it's how I stay ahead of the pack. Enjoy.

🤣  I am a complete Linux Noob!  And now you're in trouble... I'll mercilessly poke your brain for Linux! 😊 😉 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@inq You missed one KEY word: APPEAR. I used to know Linux pretty well, but I have been away from it for a few years, and my short-term memory is affected by my aging; I can still remember lots of stuff from 50+ years ago.

If you need any help, ask away. I am sure there are a lot of Linux power users on the forum.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7006
 

@byron Can you tell this noob what the difference is between gpiozero and the Joan libraries?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
Topic starter  

Posted by: @zander

@inq Sorry, please excuse my ignorance. I only have the sample program I posted for reference and it seemed pretty straightforward. I will have another look at the SPI docs, but the link you provided looked as complicated as the kernel. But I will have another look.

Sorry, I don't want to drag this out, and you are free to ignore me, but I am confused. You say you will use Joan's library, but then say it is called pigpio. I thought that pigpio is what the kernel API is called. Both myself and @byron get pigpio in our apropos results. Is the 3rd party Joan library installed by default?

BTW, how do you also get the man pages from tour apropos, I don;t and @byron didn't, and it is very usefull.

 

To my knowledge...

pigpio ( https://abyz.me.uk/rpi/pigpio/index.html ) is a 3rd party library.  I only called it Joan library after @byron's link pointing to a "Joan" post that seems to be the developer.  I have not seen Joan referenced anywhere else.  I'll stay away from Joan.  Haven't looked, but I'd imagine it uses the Kernel stuff you are referencing and puts it in a nice library... like we're used to calling Arduino IDE pin functions.  I didn't know about apropos and thought I had to install pigpio.  I don't recall what commands I used, but it did download and install something.  Based on your apropos, you're saying those things are native???  And as you see it's part of the base RaspPi OS.  

I feel like my knowledge on this subject has a negative slope on the learning curve. 😆 

 

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Page 4 / 6