I know this may sound a little redundant, but to eliminate the need for a USB hub from my project, I was wondering if it would be possible to have the Pi communicate with a Teensy-LC through GPIO, rather than USB. My USB port will be taken up by a Wifi/Bluetooth combo adapter.
I saw this article here which has a pi communicating with an arduino through SPI, was wondering if it would be possible with the Teensy as well and how I would go about doing it.
Let me know if this is possible, thanks!
Eric
Teensy through GPIO?
-
- Posts: 3
- Joined: Mon Jun 27, 2016 2:14 am
Re: Teensy through GPIO?
If you are going to do that, you may as well use the GPIO as input directly, and save you the programming of the teensy as well as the cost of the part
- wermy
- Site Admin
- Posts: 1346
- Joined: Tue May 03, 2016 8:51 pm
- Has thanked: 620 times
- Been thanked: 1322 times
- Contact:
Re: Teensy through GPIO?
+1 for this.TurtleKitty wrote:If you are going to do that, you may as well use the GPIO as input directly, and save you the programming of the teensy as well as the cost of the part

- Kilren
- Posts: 574
- Joined: Wed May 11, 2016 4:40 pm
- Location: Washington, USA
- Has thanked: 35 times
- Been thanked: 84 times
Re: Teensy through GPIO?
If you're really serious about the GPIO:
I'm not sure where Brian is with this, but here is something cool that he was working on. Maybe he'll chime in also.
12 buttons with only 4 GPIO pins
@1461748123
Otherwise, you can just run each wire to a different GPIO. There are a couple of schematics floating around for that
I'm not sure where Brian is with this, but here is something cool that he was working on. Maybe he'll chime in also.
12 buttons with only 4 GPIO pins
@1461748123
Otherwise, you can just run each wire to a different GPIO. There are a couple of schematics floating around for that
Re: Teensy through GPIO?
Don't you need a pull-up resistor for each input? I didn't want to go through the hassle of making a circuit for 25 inputs when I have my Teensy sitting here for another project.
I figured the Teensy would allow for easier adjustments later on, and thought it would make it a bit more organized. I have 25 inputs total (excessive but necessary) so the Teensy would accept all of them perfectly. I would only need a 2-port USB hub so I figured that would be pretty pointless if I could do it with GPIO.
I figured the Teensy would allow for easier adjustments later on, and thought it would make it a bit more organized. I have 25 inputs total (excessive but necessary) so the Teensy would accept all of them perfectly. I would only need a 2-port USB hub so I figured that would be pretty pointless if I could do it with GPIO.
- 1461748123
- Posts: 143
- Joined: Wed May 04, 2016 8:36 pm
- Has thanked: 9 times
- Been thanked: 17 times
Re: Teensy through GPIO?
No you don't need pull-up resistor since pi-zero have them built inRacerboy wrote:Don't you need a pull-up resistor for each input? I didn't want to go through the hassle of making a circuit for 25 inputs when I have my Teensy sitting here for another project.
I figured the Teensy would allow for easier adjustments later on, and thought it would make it a bit more organized. I have 25 inputs total (excessive but necessary) so the Teensy would accept all of them perfectly. I would only need a 2-port USB hub so I figured that would be pretty pointless if I could do it with GPIO.

With only 6 gpio pins, you can control up to 30 buttons!

Re: Teensy through GPIO?
Alright, sounds good! I'll do that then. Should I still have some sort of board that accepts all 30 inputs and converts it to 6 pins for the pi? It'll have to be just the right size and shape for my application.1461748123 wrote:No you don't need pull-up resistor since pi-zero have them built inRacerboy wrote:Don't you need a pull-up resistor for each input? I didn't want to go through the hassle of making a circuit for 25 inputs when I have my Teensy sitting here for another project.
I figured the Teensy would allow for easier adjustments later on, and thought it would make it a bit more organized. I have 25 inputs total (excessive but necessary) so the Teensy would accept all of them perfectly. I would only need a 2-port USB hub so I figured that would be pretty pointless if I could do it with GPIO.![]()
With only 6 gpio pins, you can control up to 30 buttons!Also, using wiringpi you can program the buttons with C, which is really easy to maintain as well.
Who is online
Users browsing this forum: No registered users and 1 guest