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

Thread: Teensy 3.6+OBD II+Arduino ide software

  1. #1

    Teensy 3.6+OBD II+Arduino ide software

    Hello everyone,
    I want to get vehicle canbus data such as engine rpm,throttle position,temp etc.., by using teensy 3.6 board coding by arduino ide software(teensyduino) and obdII cable to connect car and after getting the data i need yo publish to raspberry pi 4 through ros system...so, how i proceed with my project and what all the components need to buy..any suggestion?
    Thanks in advance!

  2. #2
    Connections to be:
    Obd II Connects to the teensy 3.6 and Teensy 3.6 is connected to the pc

  3. #3

  4. #4
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    Thanks and one more question..is it possible to make TCP connection to ros system...because the data coming from can should be send to raspberry pi 4...so i need to publish the message coming to teensy send to raspberry pi 4 by using Tcp connection(using ROS as middleware)

  5. #5
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,568
    Are "Prasanna Kumar S" and "prsu001" the same person?

  6. #6
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    yes both are same...this is my new account....my old account is not logging in..i don't know, i think there was some issue.....so i opened new account

  7. #7
    Why don't you just use PiCAN 2 or something similar to communicate with CAN directly from the RasPi?

    What's your end goal with this project? Is it for data logging, realtime display or just interested to learn how it works?

  8. #8
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    This is my thesis project....My project is Building a Telemetry unit for Automotive Application using
    open robotics platform as Middleware..It is a data logging..The company reauirement is to use this teensy 3.6 to get data from obdII then send to Raspberry pi 4 through ros system..Now we are two students working on this.. My main work towards this project follow as,

    Teensy with OBD2:
    The task is to connect the teensy 3.6 to the OBDII port to reads basic parameters
    and more data’s coming from the vehicle with the help of using Arduino ide
    software to publish the message to ros for further processing with Raspberry pi 4

    Teensy with LIDAR Sensor:
    To connect the teensy 3.6 to the LIDAR Sensor to reads the range data coming from
    the vehicle with the help of using Arduino ide software.As usual, it needs to
    publish the message to ROS System.

    Teensy with Ultrasound Sensor:
    Same as Lidar sensor

    Publish to ROS:
    The task is mainly to connect the teensy to Ros system to publish message to raspberry pi4


    Note:may be possible for some changes

    These are my works and after that the the other guy work with raspberry pi 4 to store the data

  9. #9
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    What is this ROS system?
    The Teensy connects to the ROS - not to the Raspberry - correct?
    So, some information about it would be useful..

  10. #10
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    And: Is it needed to use Ethernet on the Teensy? (Why?)

  11. #11
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    actually the thing is Raspberry pi4 is considered to be master and teensy is client.......istalling ros packages into raspberry pi4 (writing subcriber/publisher node) and connect to the teensy through TCP/IP connection.....because using serial connection is be very slow(Getting data)...thats why thinking of ethernet connection...is it possible to use like this?

  12. #12
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    Just plug the Teensy into the Raspberry USB port.
    It is full USB-speed - not slow serial.
    You should read some documentation about the boards you want to use...

    Everything else is overcomplicated.

  13. #13
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    Then, buy a odb-II <-> Serial adapter cable (about 10$) and you have the Hardware almost done.

    Is this a school project?

  14. #14
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    P.s. you know that ODB-II is a serial protocol, too?

    ..and look at post#3 :-)
    Last edited by Frank B; 02-19-2020 at 01:10 PM.

  15. #15
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    yeah thats the easy way...but the thing is we are gonna use more than two teensy like one for can data,one for lidar sensor and one for ulltrasound sensor and all these will communicate with single raspberry Pi4 (for this serial communication won't work)...and the company wants to run this system in ROS environment...so that's the issue we are facing now and this is my master thesis project!

  16. #16
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,546
    Quote Originally Posted by prsu0001 View Post
    yeah thats the easy way...but the thing is we are gonna use more than two teensy like one for can data,one for lidar sensor and one for ulltrasound sensor and all these will communicate with single raspberry Pi4 (for this serial communication won't work)...and the company wants to run this system in ROS environment...so that's the issue we are facing now and this is my master thesis project!
    Ok for a master degree you already know what to do, and which way is the best. If you think it's ethernet: OK.
    Good luck and my best wishes.

  17. #17
    Junior Member
    Join Date
    Feb 2020
    Posts
    9
    Thanks!
    Any components suggestions?

Posting Permissions

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