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

Arduino DUE & FT5206 #79

Closed
gcharles81 opened this issue Nov 27, 2015 · 9 comments
Closed

Arduino DUE & FT5206 #79

gcharles81 opened this issue Nov 27, 2015 · 9 comments

Comments

@gcharles81
Copy link

I am testing the capacitive touch with eastrising 7" and up to now cannot make it working ,

I am using SCL1 & SDA1 on DUE

@sumotoy
Copy link
Owner

sumotoy commented Nov 27, 2015

display it's working or just touch? I had recently a feedback from an user that was working on DUE with capacitive as well but cannot remember witch I2C channel he was using.

@gcharles81
Copy link
Author

The display works fine only the touch is not working I changed the wire
commands from Wire.send to Wire1.send etc but cannot make it
working tomorrow I will try to add a pull-up to the interrupt pin maybe
it's flooting.

Thanks charles

Thanks

On Friday, 27 November 2015, max mc costa notifications@github.com wrote:

display it's working or just touch? I had recently a feedback from an user
that was working on DUE with capacitive as well but cannot remember witch
I2C channel he was using.


Reply to this email directly or view it on GitHub
#79 (comment).

@sumotoy
Copy link
Owner

sumotoy commented Nov 27, 2015

Mmm, I don't even expected to use wire1, have to look inside code. I coded all DUE stuff by looking datasheet since I don't have it.
My chinese clone never worked and the original DUE I buy from Arduino site arrived with both USB out of order (bad soldering, not bad for over 50 euro, sigh) so I give up with DUE time ago!

@sumotoy
Copy link
Owner

sumotoy commented Nov 28, 2015

Try the last version, see inside RA8875UserSettings.h to use Wire1.
On Arduino site the information about DUE wire are quite confused, looks like that alternative I2C port needs pullup resistors, some clone board needs pullup even on wire, early arduino DUE board have on Wire1 and not on wire, I'm lost.
I will first experiment if Wire1 works and/or needs Pullups, then I will focus on INT, if INT doesn't work your Touch will never work! Of course INT on capacitive works only when FT chip has been programmed via I2C, at every touch it will pulldown his INT line (so you can check this one) that is connected to a pin of your DUE. If the FT works and pulldown INT pin I will focus on DUE to check if the pin choosed as INT it really works.

@gcharles81
Copy link
Author

Hi I could make it running with the below changes :user Version:0.70b11p6

Usersettings file still left as Wire. because this is calling the Wire library.

Edit file RA8875.cpp rename all Wire. to Wire1.

Also added 10K pullup to arduino pin serving as touch interrupt in may case I am using pin 17.

Works like a charm thanks for your effort making this amazing library.

P.S one last question if i need only one touch and I define MAXTOUCHES to 1 , is there and call to get only X&Y coordinates .

thanks

@sumotoy
Copy link
Owner

sumotoy commented Nov 29, 2015

This has been fixed yesterday with the p7, the new user settings has an option to use alternative wire for DUE, I never tested but shoul work, maybe you can test it and approve so I will fix as gold master. There's an handly trick to change wire without rename everithing, take a look at the top of cpp file.

@gcharles81
Copy link
Author

Thanks verified working with Version:0.70b11p7

@sumotoy
Copy link
Owner

sumotoy commented Nov 29, 2015

Hurra!

@sumotoy sumotoy closed this as completed Nov 29, 2015
@sumotoy
Copy link
Owner

sumotoy commented Nov 29, 2015

About last question:
"P.S one last question if i need only one touch and I define MAXTOUCHES to 1 , is there and call to get only X&Y coordinates "
The FT chip it's quite primitive, it simply return all it's registers so why I'm using an array. Setting MAXTOUCHES to 1 will just break the filling routine (and save some ms) so at the end you have location 0 filled with the vars you need (see example).

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

2 participants