Jump to content


Photo

PWM Led's


  • Please log in to reply
14 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:39 PM

So far everything has worked as expected (turning LED's on, off, etc...).   Now trying to do PWM it needs access to the
/sys/class/leds/     but there is no files in the directory. Is there an update that I am missing?



#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:39 PM

So far everything has worked as expected (turning LED's on, off, etc...).   Now trying to do PWM it needs access to the
/sys/class/leds/     but there is no files in the directory. Is there an update that I am missing?
 


Exactly the same problem... I'm going crazy. 
In some posts I found that the solution is to applay the 16march2013 patch (a usb cam patch?!?!?!) but it doesn't work for me.
I hope someone will help us with suggestions



#3 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:39 PM

Yesterday I thought to have the problem solved... I revert to the update (both kernel and ubuntu) of may 2013 and aplly the patch of 16/3/2013, everything working over ssh from my mac.
After that,  cool.gif here is the pwmX directory and their contents!!
Being very happy, I try to connect the PcDuino to a HDMI monitor but no signal comes from the board.... cry.gif
Probably the patch solves the problem of PWM and create another issue with HDMI?

Nobody suceeded to make the last update of PcDuino V1 working with pwm?huh.gif?



#4 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:39 PM

Yesterday I thought to have the problem solved... I revert to the update (both kernel and ubuntu) of may 2013 and aplly the patch of 16/3/2013, everything working over ssh from my mac.
After that,  cool.gif here is the pwmX directory and their contents!!
Being very happy, I try to connect the PcDuino to a HDMI monitor but no signal comes from the board.... cry.gif
Probably the patch solves the problem of PWM and create another issue with HDMI?

Nobody suceeded to make the last update of PcDuino V1 working with pwm?huh.gif?
 

Pcduino needs a plugged keyboard for the HDMI port to output something. You should check.



#5 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

I think you are correct no one seems to have any idea how to make pwm work
on the pcD.
modify_inline.gif
 
 


#6 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

I'm almost certain of this. It is like one patch fixes it, but then breaks something else. Not even the admin responsded with a fix. I think they simply gave up supporting the v1. Which is a shame. I was going to buy v2 but since I never really got any support I doubt I will be.

When I got my V1 it didn't have ANY of the arduino components installed. Just a simple copy of ubuntu. I thought that was strange - having to flash the nand just to be able to use ANY of the pins. Spent countless hours trying to make everything work correctly only to 75% success. I ended up going back to the MEGA for all my PWM projects.  I considered using the PCDuino to send a command to my MEGA and just PWM those pins, but in a finished project I just doubled my expense. 



#7 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

You can actually use the same firmware for V2 on v1.



#8 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

Please check out: http://learn.linksprite.com/?cat=7 for PWM tutorials.



#9 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

people keep pointing one to linksprite which uses the arduino library
this is not a help ! What is needed is a C library for the pcduino.
gpio is not a problem but the rest of the interfaces especially pwm
just are not there.



#10 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

The arduino library is actually a C library.



#11 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

http://www.mon-club-...uino/pmwiki.php



#12 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

O.K. Then that's great ! I need to set up pwm0 and pwm1 for pulse width modulation
these pins go to pwm1 and pwm2 on j11 6 and 7. Can you tell me how to use the library
functions to do that ?

Tom



#13 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:40 PM

where is this library located?



#14 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:41 PM

http://learn.linkspr...rt-for-pcduino/
 


where is this library located?


#15 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:41 PM

When I try to enable the pwm pin I get write error: Invalid argument anyone else get this to work ?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users