Neo A9-M4 API for ADC,PWM,UART,SPI

Discussion in 'UDOO NEO' started by psypi, Nov 3, 2015.

  1. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Are there examples how to use pwm on the A9 side under linux when set by the device tree editor?
    I already use a slightly modified python library of David. Perhaps I want to use pwm too. I cannot find Linux examples for pwm in the documentation. Or can I echo an integer between 0 and 255 to the pin like 0 or 1 to a digital pin?
     
    Last edited: Jan 11, 2016
  2. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    Dear waltervl,
    thanks for pointing it out, we're gonna write this part as soon as possible.
    Code:
    Or can I echo an integer between 0 and 255 to the pin like 0 or 1 to a digital pin?
    Can you be clearer and elaborate?
     
  3. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    For a digital out gpio in a terminal I can echo the value 1 or 0 to the gpio pin to switch it on or off. For example:
    echo 1 > /sys/class/gpio/gpio41/value
    What value(s) can I echo to a pwm gpio out after setting the gpio pin to pwm through the device tree editor?

    Just some other remarks I have to share with you after owning the Neo for some months now:
    I am a real noob in Linux and gpio but love the Neo. For the moment it fulfills all my whishes.

    The Arduino side is completely covered and documented very well through the Arduino IDE and its own documentation on Arduino.cc. Only the Linux side is lacking some documentation for those who are exploring the possibilities of the device and not used to programming this kind of devices. I read here from people who are doing amazing stuff with recompiling kernels and drivers. I am far away from that level.

    Also a beginner's guide for setting up a (serial) communication channel between Linux and Arduino would be helpful as this is one of the USP's (Unique Selling Point) of the Neo. But I had to go to raspberry/Arduino documentation and examples how to set up. In my opinion noob things should be in the documentation, hacking and tweaking stuff in the forum. But do with my remarks what you want, perhaps I am not a representative of your main market segment :)
     

Share This Page