• Going to use gpio for the first time

    From Daniel@[email protected] to comp.sys.raspberry-pi on Tue Apr 21 09:53:39 2026
    From Newsgroup: comp.sys.raspberry-pi

    I've been working on a project designing my very first keyboard
    matrix. It's not a normal setup, it'll serve as external input for my
    tandy pocket computer. Well, V1 will be at least.

    I chose an atmega MCU as suggested by an online buddy and was delighted
    to learn that I can program it with my rpi's gpio.

    So I ordered a header adapter/expander from pishop. This gave me a
    chance to order a few other things I've been putting off, like getting
    an inexpensive case for my workhorse 3b+. Also got the inexpensive
    (almost cute) gpio reference board for the hell of it.

    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    --
    Daniel
    sysop | air & wave bbs
    finger | [email protected]
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From rbowman@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 00:54:38 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Tue, 21 Apr 2026 09:53:39 -0700, Daniel wrote:

    Are there any newbie things I should look out for while I dive in? I'll
    be doing all the work on my trusty stock pi500.

    Which approach are you using, libgpiod, Wiring, or Python?
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Daniel@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 07:09:11 2026
    From Newsgroup: comp.sys.raspberry-pi

    rbowman <[email protected]> writes:

    On Tue, 21 Apr 2026 09:53:39 -0700, Daniel wrote:

    Are there any newbie things I should look out for while I dive in? I'll
    be doing all the work on my trusty stock pi500.

    Which approach are you using, libgpiod, Wiring, or Python?

    I don't know yet, this is all new to me. Until recently I figured I
    would be doing eeprom work with a rom chip but things took a different
    turn and, also, my brother has my eeprom writer.

    Only now have I cracked open the rpi pdf guide. I'm hoping this grows
    into something much more.

    --
    Daniel
    sysop | air & wave bbs
    finger | [email protected]
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Michael Schwingen@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 16:08:14 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on 5V, while the raspberry's GPIO pins only tolerate 3.3V.

    If you run the atmega from 3.3V too (ideally sourced from the pi, so they
    come up at the same time), you have fewer problems.

    cu
    Michael
    --
    Some people have no respect of age unless it is bottled.
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From The Natural Philosopher@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 20:40:58 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 22/04/2026 17:08, Michael Schwingen wrote:
    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on 5V, while the raspberry's GPIO pins only tolerate 3.3V.

    In theory., In practice they can tolerate 5V if not from an uber low
    impedance source

    If you run the atmega from 3.3V too (ideally sourced from the pi, so they come up at the same time), you have fewer problems.

    cu
    Michael
    --
    "Fanaticism consists in redoubling your effort when you have
    forgotten your aim."

    George Santayana

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From druck@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 21:09:57 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 22/04/2026 20:40, The Natural Philosopher wrote:
    On 22/04/2026 17:08, Michael Schwingen wrote:
    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on 5V,
    while
    the raspberry's GPIO pins only tolerate 3.3V.

    In theory., In practice they can tolerate 5V if not from an uber low impedance source

    To avoid tears before bedtime, it is best to disregarded that.

    ---druck
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From The Natural Philosopher@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 21:13:21 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 22/04/2026 21:09, druck wrote:
    On 22/04/2026 20:40, The Natural Philosopher wrote:
    On 22/04/2026 17:08, Michael Schwingen wrote:
    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on
    5V, while
    the raspberry's GPIO pins only tolerate 3.3V.

    In theory., In practice they can tolerate 5V if not from an uber low
    impedance source

    To avoid tears before bedtime, it is best to disregarded that.

    ---druck

    *shrug.* been running that way for some time
    --
    “People believe certain stories because everyone important tells them,
    and people tell those stories because everyone important believes them. Indeed, when a conventional wisdom is at its fullest strength, one’s agreement with that conventional wisdom becomes almost a litmus test of one’s suitability to be taken seriously.”

    Paul Krugman

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Theo@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 23:45:15 2026
    From Newsgroup: comp.sys.raspberry-pi

    The Natural Philosopher <[email protected]d> wrote:
    On 22/04/2026 21:09, druck wrote:
    On 22/04/2026 20:40, The Natural Philosopher wrote:
    On 22/04/2026 17:08, Michael Schwingen wrote:
    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on
    5V, while
    the raspberry's GPIO pins only tolerate 3.3V.

    In theory., In practice they can tolerate 5V if not from an uber low
    impedance source

    To avoid tears before bedtime, it is best to disregarded that.

    ---druck

    *shrug.* been running that way for some time

    Be aware that different Pi SoCs are built on different process nodes, which
    may have different high voltage tolerance. A Pi 4 may be more sensitive
    than a Pi 1, and on the Pi 5/500 the GPIO is on a separate I/O chip which
    may be different again.

    The Pi 500 is now $180 - I wouldn't risk it.

    Theo
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Daniel@[email protected] to comp.sys.raspberry-pi on Wed Apr 22 23:55:50 2026
    From Newsgroup: comp.sys.raspberry-pi

    Michael Schwingen <[email protected]> writes:

    On 2026-04-21, Daniel <[email protected]> wrote:
    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    Be careful about different voltage levels. The atmega *can* run on 5V, while the raspberry's GPIO pins only tolerate 3.3V.

    If you run the atmega from 3.3V too (ideally sourced from the pi, so they come up at the same time), you have fewer problems.

    Still haven't initiated planning or coding yet. It's a crazy sports time
    for me with basketball playoffs and regular season baseball in full
    swing.

    Off the top of my head I don't intend on using gpio power. I figure the
    atmega could be powered by the bench power supply. The data line could
    get a diode, now that you mention the risk of voltage backfeed to
    gpio. That, or disconnect the wire between programming steps. And
    connect atmega and breadboard ground to gpio ground.

    Lacking an EE degree, learning all this magic has been a blast.

    Of course, that's just off the top of my head. The pi500 has a different
    pinout from other rpi models based on the few bits I've seen in the pdf
    guide. I have the gpio extender being shipped and the pinout guide
    thingamabob for reference.

    --
    Daniel
    sysop | air & wave bbs
    finger | [email protected]
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From The Natural Philosopher@[email protected] to comp.sys.raspberry-pi on Thu Apr 23 09:58:08 2026
    From Newsgroup: comp.sys.raspberry-pi

    On 22/04/2026 23:45, Theo wrote:
    The Pi 500 is now $180 - I wouldn't risk it.

    I simply wouldn't buy it at all.
    --
    "Nature does not give up the winter because people dislike the cold."

    ― Confucius

    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From Gordon Henderson@[email protected] to comp.sys.raspberry-pi on Thu Apr 23 12:36:00 2026
    From Newsgroup: comp.sys.raspberry-pi

    In article <877bq02r1o.fsf@rpi3>, Daniel <[email protected]> wrote:
    I've been working on a project designing my very first keyboard
    matrix. It's not a normal setup, it'll serve as external input for my
    tandy pocket computer. Well, V1 will be at least.

    I chose an atmega MCU as suggested by an online buddy and was delighted
    to learn that I can program it with my rpi's gpio.

    So I ordered a header adapter/expander from pishop. This gave me a
    chance to order a few other things I've been putting off, like getting
    an inexpensive case for my workhorse 3b+. Also got the inexpensive
    (almost cute) gpio reference board for the hell of it.

    Are there any newbie things I should look out for while I dive in?
    I'll be doing all the work on my trusty stock pi500.

    I've been there and done that in the dim and distant past. (Getboard, Gertduino, Other *duino boards, my own systems, etc.)

    Based on that; I'd strongly suggest you make life easy for yourself:

    Get an Arduino UNO and plug it into one of the the Pi's USB ports. Use
    that as your ptototyping/development platform.

    Forget using the GPIO for SPI/parallel programming - it's just too
    much hassle. Too much to go wrong, too many wires. One USB cable and
    the job's done and you have an immediate serial console to the AVR too.

    Then, once you build your own PCB, if that's the aim, you can put the AVR
    into the Arduino board to program it, then move it to your own board. You
    can get some nice 28-pin ZIF sockets too.

    Alternatively, get a USB ICSP programmer and put an 8-pin header on your
    own board and program it that way.

    There are many AVR Adruino boards - don't get one with a USB AVR
    (e.g. 32u4) and make sure it's a 28-pin DIL version for easy swapping
    into your production board. (For rev 1, at least)

    This the PC1211/PC1212? (TRS80 Pocket computer?) I have a few - never
    thought to hook up an external keyboard though...

    Gordon
    --- Synchronet 3.21f-Linux NewsLink 1.2
  • From rbowman@[email protected] to comp.sys.raspberry-pi on Thu Apr 23 18:35:39 2026
    From Newsgroup: comp.sys.raspberry-pi

    On Wed, 22 Apr 2026 23:55:50 -0700, Daniel wrote:

    Of course, that's just off the top of my head. The pi500 has a different pinout from other rpi models based on the few bits I've seen in the pdf guide. I have the gpio extender being shipped and the pinout guide thingamabob for reference.

    https://thepihut.com/products/pinpal-for-pi-400

    I have the breakout board for the Pi 5 and the only difference I see is
    the specialized pins are labeled like SDA1, SCL1 rather than 2 and 3.

    https://pinout.xyz/pinout/pin29_gpio5/

    --- Synchronet 3.21f-Linux NewsLink 1.2