Changes

no edit summary
Line 7: Line 7:  
This is drawn form a couple of threads ...https://discourse.zynthian.org/t/encoders-directly-to-the-gpio-of-the-pi-4/4728/84
 
This is drawn form a couple of threads ...https://discourse.zynthian.org/t/encoders-directly-to-the-gpio-of-the-pi-4/4728/84
 
and is a work in progress nag wyleu on the forum if it seems incomplete or missing detail .
 
and is a work in progress nag wyleu on the forum if it seems incomplete or missing detail .
  −
==Encoders directly connected to GPIO Pins==
  −
  −
This is the original approach used from the start the Encoder were connected directly to GPIO pins on the Raspberry Pi. It is not considered as the recommended approach. Please see the 23017 approach described below.
  −
  −
=== Connecting via the GPIO Pins. ===
  −
  −
The raspberry Pi has a 40 pin connector that provides access to a level of connection not generally available to the PC world. This allows Digital devices to be connected to a Raspberry Pi and the Pi can both receive and transmit information to these devices as digital Data. +3.3V or 0v in electrical terms.
  −
  −
This connector will probably exist as a standard for a considerable length of time, such is the electronic infrastructure that has grown around it. Indeed competitor boards, would dare use anything else so it's become ubiquitous, in a similar fashion to the IBM edge connectors carried on long after the company had stopped making PC's themselves.
  −
  −
[https://pinout.xyz/ Here's a site devoted to it.]
  −
  −
[[File:20250216 15h10m42s grim.png|thumb|Pi GPIO]]
  −
  −
<br clear=all>
  −
  −
====Considerations====
  −
You will need to connect wires from the raspberry Pi pins to the encoders. Given it is recommended to connect capacitors across the encoder connections to reduce the bouncing that occurs when mechanical switches open and close and this is best done at the encoder end, some people construct daughter boards for each encoder with connections and sockets that are connected by Du Pont Wires with sockets on both ends. These socket based wires do work but they can easily be knocked off the pins if there is cable flexing, so it is probably better to get either a 40 pin ribbon cable or  Pi ex pander board with solder pads to allow you to remove the device entirely from the Pi. This is important because you might want to transfer the Pi to do something else in later life, or more likely as you are constructing the enclosure you might well want to separate them for testing with a multi-meter, which is a tool that isn't exactly essential in these sorts of activities, but if you are new to soldering, is the authoritative way of checking that electrons actually do get from the point you believe they originate from to the place where they are going to make something happen.
      
==But what is an encoder?==
 
==But what is an encoder?==
Line 71: Line 52:  
It is also why the zynth interface cannot be completely implemented into an encoder only environment. For instance rotary encoders on keyboard controllers and the like...
 
It is also why the zynth interface cannot be completely implemented into an encoder only environment. For instance rotary encoders on keyboard controllers and the like...
 
You need the associated press witches to drive it successfully. No doubt something could be arranged but it gets pretty contrived, pretty quickly.
 
You need the associated press witches to drive it successfully. No doubt something could be arranged but it gets pretty contrived, pretty quickly.
 +
 +
 +
 +
==Encoders directly connected to GPIO Pins==
 +
 +
This is the original approach used from the start the Encoder were connected directly to GPIO pins on the Raspberry Pi. It is not considered as the recommended approach. Please see the 23017 approach described below.
 +
 +
=== Connecting via the GPIO Pins. ===
 +
 +
The raspberry Pi has a 40 pin connector that provides access to a level of connection not generally available to the PC world. This allows Digital devices to be connected to a Raspberry Pi and the Pi can both receive and transmit information to these devices as digital Data. +3.3V or 0v in electrical terms.
 +
 +
This connector will probably exist as a standard for a considerable length of time, such is the electronic infrastructure that has grown around it. Indeed competitor boards, would dare use anything else so it's become ubiquitous, in a similar fashion to the IBM edge connectors carried on long after the company had stopped making PC's themselves.
 +
 +
[https://pinout.xyz/ Here's a site devoted to it.]
 +
 +
[[File:20250216 15h10m42s grim.png|thumb|Pi GPIO]]
 +
 +
<br clear=all>
 +
 +
====Considerations====
 +
You will need to connect wires from the raspberry Pi pins to the encoders. Given it is recommended to connect capacitors across the encoder connections to reduce the bouncing that occurs when mechanical switches open and close and this is best done at the encoder end, some people construct daughter boards for each encoder with connections and sockets that are connected by Du Pont Wires with sockets on both ends. These socket based wires do work but they can easily be knocked off the pins if there is cable flexing, so it is probably better to get either a 40 pin ribbon cable or  Pi ex pander board with solder pads to allow you to remove the device entirely from the Pi. This is important because you might want to transfer the Pi to do something else in later life, or more likely as you are constructing the enclosure you might well want to separate them for testing with a multi-meter, which is a tool that isn't exactly essential in these sorts of activities, but if you are new to soldering, is the authoritative way of checking that electrons actually do get from the point you believe they originate from to the place where they are going to make something happen.
 +
    
====Pins on the Pi====
 
====Pins on the Pi====
1,019

edits