Raspberry pi interfacing with older gear

125 views
Skip to first unread message

Andy Tefft

unread,
Dec 30, 2015, 4:54:23 PM12/30/15
to neoni...@googlegroups.com
Anyone been using a Raspberry pi in any nixie projects?

Many years ago I worked on a clock that basically used a frequency counter as a display. Basically it output 1 pps and the counter just counted them to mark off the seconds (with some smarts to handle the rollovers from 50 to 0 seconds and so on). This used an AVR microcontroller, with a bunch of external components - a switch and rotary encoder for setting the time, some power supply related stuff and so on. There would have been additional external components needed to support more stuff I wanted to add, like a battery backed RTC.

While I had it working nicely on the breadboard, I never quite got it right on my protoboard version and soon ran out of free time to work on it.  This year my son wanted a raspberry pi for Christmas and I ended up getting myself one too - figuring I could revisit the counter clock.

All in all the hardware itself is about what I paid in total for the parts I'd used before, and it seems like nearly everything I need is in the pi itself (yes, it is way overkill for a clock of this nature!). I'm thinking I will even connect the pi to my wifi and use ntp as the time source which does away with all the hardware and software needed to set the time. Theoretically I just need a power supply (my counter has +5V available since it's all TTL, though I'm not sure I would use it directly), a connection to the counter's input, and a connection to the counter's reset signal.

Initial quick tests are good with one exception - I had just connected an AVR output to one of the pins on the reset button on the counter and the AVR was able to toggle that output and reset the counter (pretty sure I was powering the AVR with 5V). This same trick does not work with the pi, presumably due to its puny little 3.3v-level outputs. Anyone have a standard, simple go-to for interfacing between old TTL circuitry and a pi or something like it?

Dylan Distasio

unread,
Dec 30, 2015, 5:08:45 PM12/30/15
to neoni...@googlegroups.com
Some sort of logic level converter like this should work:


--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neonixie-l+...@googlegroups.com.
To post to this group, send email to neoni...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/CAM1F4kQZpJn25%2BER8f5o4jncRd51kLd9J9BXkfyz-LKjF5worA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

David Forbes

unread,
Dec 30, 2015, 5:29:56 PM12/30/15
to neoni...@googlegroups.com
Andy,

You can use an NPN transistor (2N3904 or 2N222A or whatever) and a
couple resistors to boost the Pi signal to 5V. Pi output through a 10K
resistor to Base, Emitter to Gnd, counter fed from Collector, Collector
also tied to 5V through a 1K resistor. Should work up to about 1 MHz.


On 12/30/15 2:54 PM, Andy Tefft wrote:
>
> Initial quick tests are good with one exception - I had just connected an
> AVR output to one of the pins on the reset button on the counter and the
> AVR was able to toggle that output and reset the counter (pretty sure I was
> powering the AVR with 5V). This same trick does not work with the pi,
> presumably due to its puny little 3.3v-level outputs. Anyone have a
> standard, simple go-to for interfacing between old TTL circuitry and a pi
> or something like it?
>


--
David Forbes, Tucson AZ

Andy Tefft

unread,
Dec 31, 2015, 11:01:25 AM12/31/15
to neoni...@googlegroups.com
Thanks for the quick feedback, guys.

I'll probably breadboard up a transistor for now, and a little converter like that can permanently go inline in my connecting cable even though I only need a single channel. It would be cool if someone made a breakout board for the pi that had an optional level converter on every (or even several) gpio output, that would be really useful for prototyping.


--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neonixie-l+...@googlegroups.com.
To post to this group, send an email to neoni...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/56845AE1.5070000%40dakotacom.net.

Dylan Distasio

unread,
Jan 1, 2016, 12:55:29 AM1/1/16
to neoni...@googlegroups.com

I was surfing on Tindie tonight, and came across this which I think is what you were asking for:

https://www.tindie.com/products/land_boards/rpio-tiny-2/

Quixotic Nixotic

unread,
Jan 1, 2016, 6:10:43 AM1/1/16
to neoni...@googlegroups.com

On 30 Dec 2015, at 21:54, Andy Tefft wrote:

Anyone been using a Raspberry pi in any nixie projects?

Did anyone manage to get one of the Pi Zeros that were free on the cover of Magpi magazine? I tried, but they'd all sold out instantly where I live.


John S

Dylan Distasio

unread,
Jan 1, 2016, 10:20:43 AM1/1/16
to neoni...@googlegroups.com

I didn't get one free, but I picked a few up.  I haven't had a chance to play with it yet, though.

--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neonixie-l+...@googlegroups.com.
To post to this group, send email to neoni...@googlegroups.com.

Andy Tefft

unread,
Jan 6, 2016, 4:12:58 PM1/6/16
to neoni...@googlegroups.com
Yes! that manufacturer has a few variants. Maybe I'll be a guinea pig to see how well they work. Thanks for the pointer.

Got my 2n222 version wired up and working fine. I decided I would like to have the pi be able to read the +5V from the counter (so it can tell whether it's on or not) so I'll probably try out one of those boards for prototyping next but use one of the little multi-channel converters for the permanent hookup.

Reply all
Reply to author
Forward
0 new messages