Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9873 Discussions

Control duty cycle of Intel Edison board

rhela1
Novice
1,345 Views

Dear All;

In my project, I would like to adjust the duty cycle of the Edison board such that it sleeps for a certain number of cycles being idle doing nothing and then wakes up again in a repeated fashion. Is this possible?

Best Regards;

 

Rana Helal
3 Replies
Pablo_M_Intel
Employee
120 Views

Hi rana.helal,

It's possible to change the duty cycle of PWM signal and if you want to change its value during a process what you can do is to do system calls via your code so that from time to time the duty cycle behaves as you want. I would also suggest you check this Multiplexing guide for the Edison, http://www.emutexlabs.com/project/215-intel-edison-gpio-pin-multiplexing-guide http://www.emutexlabs.com/project/215-intel-edison-gpio-pin-multiplexing-guide.

Regards,

PabloM_Intel

rhela1
Novice
120 Views

Dear PabloM_Intel,

Do you know how can I do this using python code? Moreover, what I understand from the guide is that PWM controls certain pins not the board itself or this is not the case?

Best Regards;

Rana Helal

Pablo_M_Intel
Employee
120 Views

Hi rana.helal,

You are correct, some pins of the board are PWM capable, but this feature will work only in that specific pin.

About examples using Python, I would suggest you to check this https://github.com/MakersTeam/Edison/tree/master/Python-Examples link, there you'll find some basic but useful examples. For PWM usage, you can take a look at the Servo sketch.

Regards,

PabloM_Intel

Reply