Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: teensy3 and ardueye stonyman vision chip

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    10

    teensy3 and ardueye stonyman vision chip

    Hi

    We've been working on an eye tracking project using ardueye/stonyman chip with good success. We have migrated the two file that need changing for the teensy 2++ and have this working, but would like to migrate to teensy 3. The SMH file and pin defs file is posted here
    http://forum.pjrc.com/threads/18886-...t-board-part-1
    Can someone help by pointing us in the right direction please. I don't know C structure very well so with the teensy 3's pin setups and yes I've read the tutorial as presented on the forum on pin emulation but I'm still stuck.
    The files submitted are for the teensy 2++ so you can get an idea of what needs to change and in what format
    thanks
    Last edited by cncbits; 02-28-2013 at 10:36 PM.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,572
    I went looking for the actual code which uses these definitions, to investigate what they're really doing with them. You didn't give a link to the actual library code. I found this page:

    https://github.com/ArduEye/ArduEyeLibs

    My best guess is the "SHM" one?

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    10
    Yes the SMH header file which points to the pin defs which also needs changing. The two text files we posted in our link are what we changed in those two files to get the teensy 2++ working but the teensy 3 being a ARM requires skills outside of our range
    thanks

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    10
    here is the Mindkits invent link which is a small blog on what we are doing and why. They are the teensy local agents and were interested in a teensy 3 version.
    http://www.mindkits.co.nz/mindkits-i...g-with-ardueye

  5. #5
    Junior Member
    Join Date
    Nov 2012
    Posts
    10
    To move forward with the Teensy 3 the best and fastest option is to try and align the pin header file which is in the SMH library otherwise you have to rewrite both the SMH header file and the C++ file. If I can be shown how to assimilate the three pin file requirements for the DDRx , PORTx , and PINx , in the pindefs file then it's all straight forward.
    The attached zip file has our version of the pin header for the teensy2++ the SMH file which was ammended and an example. These need to be added to the teensyduino and the ardueye files from ardueye.com. We are using both arduino1.0 and 1.03.
    If the pin mapping in the pin header file cannot be done for teensy 3 please say so and we will stick with the 2++
    thanks
    Attached Files Attached Files

  6. #6
    Junior Member
    Join Date
    Nov 2012
    Posts
    10

    complete project file

    complete project file including where we tried for teensy3 by removing the need to a teensy 3 pin def but it errors out. All files here to run on 1.03 the example with v2 will run teensy 2 sucessfully the v3 example is for teensy 3 but also needs the C++ files ammended
    Attached Files Attached Files

  7. #7
    Junior Member
    Join Date
    Nov 2012
    Posts
    10

    T3 running just on SMH example

    Zip file has relevant SMH library alterations and example. SMH runs just using processing sketch for GUI
    Click image for larger version. 

Name:	001.JPG 
Views:	330 
Size:	154.0 KB 
ID:	312Click image for larger version. 

Name:	t3ardueye.jpg 
Views:	276 
Size:	163.5 KB 
ID:	313
    Attached Files Attached Files

  8. #8
    Junior Member
    Join Date
    Nov 2012
    Posts
    10

    teensy 2 & 2++ running Ardueye

    Click image for larger version. 

Name:	001.JPG 
Views:	321 
Size:	152.2 KB 
ID:	318Click image for larger version. 

Name:	32u4going.jpg 
Views:	355 
Size:	102.1 KB 
ID:	319Modified zip file attached for using digital write method in SMH files
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •