• AVR Freaks

Hot!Automotive project for learning CAN

Author
abhi143
Senior Member
  • Total Posts : 123
  • Reward points : 0
  • Joined: 2018/05/20 09:06:52
  • Location: 0
  • Status: offline
2020/08/05 08:50:51 (permalink)
0

Automotive project for learning CAN

Hello friends
 
I am trying to design a automotive system for car,  may be it sound crazy but its learning project to get start I will learn a lot from this project. I will not implement this project in real time, it is just for learning. I want to design a system for car that control the headlights and mirror
 
Look at my idea shown in image
 
Whatever I've had in my head I made in diagram. would you like to improve it? later I will try to find specific pic microcontroller and trans receiver chip ?  
 
 
  

Attached Image(s)

#1

8 Replies Related Threads

    davea
    Super Member
    • Total Posts : 316
    • Reward points : 0
    • Joined: 2016/01/28 13:12:13
    • Location: Tampa Bay FL USA
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/05 10:46:28 (permalink)
    #2
    mpgmike
    Super Member
    • Total Posts : 473
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 03:55:00 (permalink)
    0
    There's a good place to start.  What is your test vehicle?  Are you tying into an existing CAN system, or wanting to add parts to an older vehicle & rig everything yourself?

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #3
    RobDwi
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2020/01/22 04:31:03
    • Location: 0
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 07:39:14 (permalink)
    0
    I am brand new to this forum,
    Hi I am brand new to this forum.
    Have moved this thread to "Multi-node eCan errors "
    post edited by RobDwi - 2020/08/08 00:46:49
    #4
    abhi143
    Senior Member
    • Total Posts : 123
    • Reward points : 0
    • Joined: 2018/05/20 09:06:52
    • Location: 0
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 07:53:56 (permalink)
    0
    mpgmike
    What is your test vehicle?  Are you tying into an existing CAN system, or wanting to add parts to an older vehicle & rig everything yourself?

    No it's just learning project, purpose of this question is to learn CAN communication. I am not building for my vehicle, I can clear my doubts that raise in my head by taking this example
     
    As I shown in diagram if we have PIC and I want to control left headlight , right head light, left mirror and right mirror via CAN communication. Is my hardware complete to understand CAN communication ?
     
    #5
    NKurzman
    A Guy on the Net
    • Total Posts : 18909
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 10:01:21 (permalink)
    +1 (1)
    You understand if you attempt to override controls in the car, The cars control system will set them back to the way it wants them.

    If you want to get started, you should start with just monitoring the bus.
    #6
    davea
    Super Member
    • Total Posts : 316
    • Reward points : 0
    • Joined: 2016/01/28 13:12:13
    • Location: Tampa Bay FL USA
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 10:03:52 (permalink)
    +1 (1)
    abhi143
    Is my hardware complete to understand CAN communication ?
     

    looks fine
    but one thing you should know is most systems are closed loop
    so if you turn off a headlight while it was on, the headlight module
    may report headlight is off or drawing no current
    and the main controller might retry to turn it back on
    so reading BUS values may be all you can do..
     
     
    #7
    atferrari
    Super Member
    • Total Posts : 1450
    • Reward points : 0
    • Joined: 2004/07/08 13:09:24
    • Location: Buenos Aires - Argentina
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 11:49:25 (permalink)
    0
    Many years ago, against all the suggestions of trying one (my) node in a working circuit, I implemented my own 3-node network which worked in the first try. I managed to add the masking complexity and other bells and whistles that I forgot already. PIC 18F4585 IIRC.
     
    The datasheet for that micro had several flaws in the definition of the ECAN related SFRs (some of them out of the Access RAM). A ticket to MCHP solved part of the doubts.
     
    Found the whole thing not very hard to implement. Done in Assembly.

    Agustín Tomás

    In theory, there is no difference between theory and practice. In practice, however, there is.

    http://cablemodem.fibertel.com.ar/atferrari/
    #8
    mpgmike
    Super Member
    • Total Posts : 473
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Automotive project for learning CAN 2020/08/06 12:07:57 (permalink)
    0
    abhi143
    mpgmike
    What is your test vehicle?  Are you tying into an existing CAN system, or wanting to add parts to an older vehicle & rig everything yourself?

    No it's just learning project, purpose of this question is to learn CAN communication. I am not building for my vehicle, I can clear my doubts that raise in my head by taking this example
     
    As I shown in diagram if we have PIC and I want to control left headlight , right head light, left mirror and right mirror via CAN communication. Is my hardware complete to understand CAN communication ?
     


    Question: Choose A or B.
    Answer: No.
     
    What lights, mirrors, and controls are you using?  Are they already part of a CAN equipped vehicle?  Are you trying to add CAN controls to an older vehicle?????

    Is my hardware complete to understand CAN communication ?

    As a stand-alone with all the needed components added, or as part of an experiment trying to control a CAN equipped vehicle???

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #9
    Jump to:
    © 2020 APG vNext Commercial Version 4.5