Multiplexers & UDOO

Discussion in 'UDOO NEO' started by Maurice, Oct 14, 2016.

  1. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    I have build a part of my project around my Arduino Mega, and I'm reconsidering to move it to my Neo. On my Mega I already use quite some pins, and I guess I'd be out of pins on the Neo quite quickly. Therefore I think of using a multiplexer.

    Having bad experiences with connecting a 4-digit display to the Neo because it uses a protocol where pins had to switch input or output mode[*] I'm wondering if a multiplexer like this would cause similar problems:
    http://tronixstuff.com/2013/08/05/part-review-74hc4067-16-channel-analog-multiplexerdemultiplexer/

    [​IMG]
    [*] UDOO has provided an update for the library some time ago. If it works I will switch.
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    @waltervl Never heard of PORTD until now, but what is the difference in ports?
     
  4. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    I edited my first post a little bit and added a link to arduino portmapping. I cannot recall a port mapping in the Neo Arduino sources. But perhaps I overlooked something.
     
  5. Maurice

    Maurice Active Member

    Joined:
    Oct 13, 2015
    Messages:
    394
    Likes Received:
    87
    Neo's package does state: Arduino Uno compatible... That doesn't end with simple read and writes to pins, does it?
     
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Andrea Rovai likes this.
  8. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17
    Hi guys,
    about multiplexer on M4 side, can I do something like this?

    IMG_29092017_201351_0.jpg

    So through Serial.begin() and Serial.end() I can set different parameters (even if they have the same baudrate) and read two sensors on the same UART.
     
  9. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    My first impression it is not. Serial/uart cannot be multiplexed. Or you have to make some hardware switch that switches on command from one device to the other.
     
  10. Gorgo

    Gorgo UDOOer

    Joined:
    Nov 9, 2016
    Messages:
    159
    Likes Received:
    17

Share This Page