Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this compatible on T2? #4

Closed
johnnyman727 opened this issue Apr 11, 2016 · 14 comments
Closed

Is this compatible on T2? #4

johnnyman727 opened this issue Apr 11, 2016 · 14 comments

Comments

@johnnyman727
Copy link

Can you update the instructions on how to use this with T2?

@davidfekke
Copy link

John,

You should be able to use the pins in one of the ports (A, B). Most of the pins in the ports are GPIO. You can get a list by looking at the .pins array. You should be able to use tessel.port.A.pin[0] as an example.

@johnnyman727
Copy link
Author

Thanks @davidfekke! It would be great if @Frijol could update the README as well.

@davidfekke
Copy link

Make a pull request. Unfortunately she is abroad, and has limited access to the internet right now.

@ahetawal-p
Copy link

@davidfekke Am planning to use this with my Tessel2. But have a question about how to get the power supply setup for the PIR sensor on Tessel2, as in Tessel1 there was a 5V supply pin present but not with 2.
How do I power this sensor in t2.

Thanks again

@johnnyman727
Copy link
Author

@ahetawal it's not as easy to access but there is a 5V pin close to the USB ports.

@ahetawal-p
Copy link

@johnnyman727 I see pins marked 5VIN and 5V next to USB ports. Comparing to Tessel1, how do I make use of them on T2.
Apologies for this basic question, this is my first ever board I am working with, so might not be as obvious to use this pin.
I was not able to find any documentation on these pins as such in terms of usage, happy to help with that, If someone can guide me to how to use them correctly.
Something like this would be really helpful :
https://github.com/tessel/hardware/blob/master/tessel-hardware-overview.md#gpio-bank

@johnnyman727
Copy link
Author

For the record, I followed up with @ahetawal on the forums.

@Frijol
Copy link
Owner

Frijol commented Apr 13, 2016

Hi all, based on tessel/hardware-modules#5 there are a couple of difficulties in getting my PIR module to work as expected on Tessel 2:

  • Remove hardware-specific tests #3, where I wrote checks for T1 specific hardware into the driver - should be a quick fix
  • Need .on('rise') and .on('fall') events for pins tessel/t2-firmware#69 this module depends on 'rise' and 'fall' events, which based on this issue are not available on T2 currently due to hardware constraints. It looks like something that can be fixed either on this module or in software on Tessel 2's firmware. Either of those are theoretically pretty easy to do as well. It would be simplest to modify this PIR driver, because based on this comment the software fix might be a little unreliable. This would not matter much for PIR, since the component is not totally reliable anyway, but the requirements would be stricter for Tessel.

And of course:

As @davidfekke kindly notes,

  1. It is definitely possible to use the PIR hardware with Tessel 2 regardless of this particular software module (though it would be great to fix this one up).
  2. I am currently abroad - and actually don't have any hardware with me.

Would someone who does have hardware on hand be up for tackling these issues? I'm happy to review code and re-publish the module. @ahetawal is this something that would be interesting to you?

Thanks,
Kelsey

@Frijol
Copy link
Owner

Frijol commented Apr 13, 2016

@ahetawal-p
Copy link

@Frijol Happy to help, If I know, how I am suppose to 😦
I am assuming by hardware you mean PIR sensor, I dont have it with me yet, was trying to figure out how will it work before I go buy it, as it will be my first time playing with such boards.
Based on this other thread

@Frijol
Copy link
Owner

Frijol commented Apr 14, 2016

Thanks, makes sense! It would be lovely if you can build/test a way that the PIR module doesn't have to depend on tessel/t2-firmware#69

@Connor-Knabe
Copy link

I'm wanting to do the same thing. No luck yet. Has anyone else had success?

@Frijol
Copy link
Owner

Frijol commented Nov 26, 2016

Fixed! (Finally- sorry that took so long)

@Frijol Frijol closed this as completed Nov 26, 2016
@mbrevda
Copy link

mbrevda commented Jun 26, 2018

@johnnyman727 any chance you can elaborate on how you get 5v on the t2? The forums seem to be down atm. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants