Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18582

How to generate custom signal with Edison

$
0
0

Hi everyone,

 

I'm trying to find a way to generate custom signal with Edison.

I found out that people usually does that with Arduino by doing something like this :

 

 

 

digitalWrite(pin, HIGH);
 delayMicrosecond(dutycycle);
 digitalWrite(pin, LOW);
 delayMicrosecond(peridod - dutycycle);

 

This code assumes (I guess) that it will be used on a real time chip, therefore it make possible to generate whatever signal we want.

 

I'm trying to find a way to do that with Edison. The reason is that I have this ledstrip :

https://www.sparkfun.com/products/12027

 

The datasheet says that each LED's color have to be set by sending into the green wire their color like this :

long pulse = 1 (0.7 microsecond)

short pulse = 0 (0.35 microsecond)

 

 

Do you have any idea how can I do that with Edison (with mraa for instance)?

 

ps: this could be usefull to generate sound on a piezzo buzzer

 

Thank you in advance


Viewing all articles
Browse latest Browse all 18582

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>