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

Thread: Tensey 4.0 + Pi-4 Home Automation Perimeter Monitoring ....

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8

    Tensey 4.0 + Pi-4 Home Automation Perimeter Monitoring ....

    Seems like a good solution. Quiet possibly 'way' overkill. ...

    Tensey 4.0 for control of FLIR and associated. Data to Pi-4
    Pi-4 for post processing engine and reporting via hardwired Ethernet or Wifi.

    Thoughts?

  2. #2
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    1st Q, 5V drive strength from Pi-4 to power Teesny 4.0. Assumption typical 500mA from USB, ... :/ ... Then how much required from Teensy4.0?

    Correction. ... https://cdn.sparkfun.com/assets/e/b/..._Datasheet.pdf

  3. #3
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Current requirements of Tensey 4.0? .. And where is the 50mA fuse located on the PCB?.... hmmm what are the 5V current draw requirements?

  4. #4
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Okay mistyped, 500mA. So connecting to the PI-4 USB did work. Saw your blinking Amber LED. Need to follow the remaining instructions

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,102
    PJRC Teensy 4 page specs the current at approx. 100 mA at startup.

  6. #6
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Awesome, 100mA, much appreciated ...

    Okay now i need help. Have Arduino on both Win10 and PI-4 Linux distro. Both at the most recent version of Arduino. Have not used Arduino. Am a old command line or Eclipse dev user for C lvl development. ... So therefore am an Arduino neo-fit. ... Seems like all the stuff may be there with the udev rules for linux, not sure yet.

    Any hints?

    Also, 4.0 is ARM based not AVR based, so different tool chain ... etc. Correct?
    Last edited by EM1SSNuke; 10-25-2019 at 11:49 PM.

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,102
    Yes, All Teensy 3.x, LC and 4.0 are ARM core processors - not AVR. Installing TeensyDuino gives the toolchain needed and updates the Arduino IDE to connect and build. There is an rPi build too.

  8. #8
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Okay had to ... File->Sketchbook->Digital->Blink menu ==>> File->Examples->0.1 Basics->Blink ... is this the correct code for the T-4.0? What should it be mod'd to to test?
    rPi build? ... nm ... smacks head Ras Pi ..

  9. #9
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Any thoughts of adding FreeRTOS or NuttX?

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,102
    Quote Originally Posted by EM1SSNuke View Post
    Okay had to ... File->Sketchbook->Digital->Blink menu ==>> File->Examples->0.1 Basics->Blink ... is this the correct code for the T-4.0? What should it be mod'd to to test?
    rPi build? ... nm ... smacks head Ras Pi ..
    All the general examples - except perhaps for hardware not yet ported - run as written - or in some cases as noted or adjusted within the example.

    Blink will just run - selecte Teensy 4 as the board and Upload and modify as desired.

    No specific PJRC plans to port any RTOS - there is a TeensyThreads that allows task switching - and other posters may have ports underway

  11. #11
    Junior Member
    Join Date
    Oct 2019
    Location
    Arizona
    Posts
    8
    Looking for a SPI example with interrupts. ... ? Does one exist in the Arduino package from T-4?

  12. #12
    Junior Member
    Join Date
    Sep 2019
    Location
    Essex, UK
    Posts
    8
    Quote Originally Posted by EM1SSNuke View Post
    Looking for a SPI example with interrupts. ... ? Does one exist in the Arduino package from T-4?
    Take a look at https://github.com/sumotoy/gpio_expander - I have used that library with multiple MCP23S17 GPIO expanders on a T4 using interrupts to trigger reads from 112 end points. Originally wrote code in python running on a Pi to do this, but on a T4 it's 1000 times faster

Posting Permissions

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