BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum Head-unit projects Your projects Rotary Encoder/ Media Knob

    Rotary Encoder/ Media Knob
    Sambolini94
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: Apr 2023
    Reputation: 0
    #1
    09-12-2023, 12:38 AM
    Hi, 

    I bought myself a gen1 idrive in an attempt to utilise it.. However i own a miata mk3 with very limited space to put the controller which is rather bulky!!! 

    I found an alternative but wanted some clarity on my idea as to whether this setup would work...?

    ANO Directional and navigation scroll wheel rotary encoder 

    https://thepihut.com/products/ano-direct...2738294979

    Connected to the breakout pcb

    https://thepihut.com/products/adafruit-a...2738589891

    Then the pcb connected to Adafruit CAN Pal - CAN Bus Transceiver - TJA1051T/3 which is then connected to the CAN molex connector on the CarPiHAT??

    Thanks, 

    Sam


    Attached Files Thumbnail(s)
               
    interzen
    Offline

    Junior Member

    Posts: 27
    Threads: 0
    Joined: Nov 2019
    Reputation: 2
    #2
    09-12-2023, 03:45 PM (This post was last modified: 09-12-2023, 04:09 PM by interzen.)
    I'm not that familiar with the idrive setup but I know you would also need a microcontroller between the rotary encoder and the CAN transceiver.  The encoder outputs pulses on the SW lines as the wheel turns or switches are pressed & released.  The transceiver module is expecting a logic level CAN communications signal that it would then boost to CAN voltage levels. 

    A microcontroller that has a CAN interface (also known as TWAI) could be programmed to read the pulses from the encoder unit and translate them to appropriate CAN packets.  You would have to know what CAN message the system you are connecting to expects for each action on the encoder module.

    This would not be particularly dificult if you have coding experience and search for similar projects to use as reference.  I'm sure the CAN output for the idrive is well documented.

    EDIT: I just realized that you may just be looking for a way to use the rotary encoder module with OAP in which case you could just connect the signals from the breakout directly to the RPi. There are severel examples of people doing this on the forum that should be able to get you started.
    Sambolini94
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: Apr 2023
    Reputation: 0
    #3
    09-28-2023, 04:17 PM
    (09-12-2023, 03:45 PM)interzen Wrote: I'm not that familiar with the idrive setup but I know you would also need a microcontroller between the rotary encoder and the CAN transceiver.  The encoder outputs pulses on the SW lines as the wheel turns or switches are pressed & released.  The transceiver module is expecting a logic level CAN communications signal that it would then boost to CAN voltage levels. 

    A microcontroller that has a CAN interface (also known as TWAI) could be programmed to read the pulses from the encoder unit and translate them to appropriate CAN packets.  You would have to know what CAN message the system you are connecting to expects for each action on the encoder module.

    This would not be particularly dificult if you have coding experience and search for similar projects to use as reference.  I'm sure the CAN output for the idrive is well documented.

    EDIT: I just realized that you may just be looking for a way to use the rotary encoder module with OAP in which case you could just connect the signals from the breakout directly to the RPi.  There are severel examples of people doing this on the forum that should be able to get you started.

    Thanks for you reply and that actually helped a little!! 

    I'm using a CarPiHAT Pro and wierldly it has 9 GPIO pins unused and the breakout board for the rotary encoder/ button wheel has 9 also...

    I assume I'd connect the GPIO pins and then setup the wheel as two different devices one being the rotary and one being the 4 way/ centre button device?

    Thanks,

    Sam
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode