-
silas202
Hello everybody,
first, sorry if my English is not always correct, I try to do my best ...
I'm doing a project with an Arduino Mega 2560 with 16 proximity sensors, I have 16 LEDs that light up depending on the intensity of each sensor.
The problem is that on my arduino mega I only have 13 outputs digital "PWM", how to get more?
I searched google and I found it (it use i2c with an arduino master and a slave):
I have a second arduino uno so I tried to connect them (current flows), my problem is I can not send data to a second digital PWM outputs ...What I do is it possible or not? (knowing that I already use the PWM output of my arduino mega) if yes how can i do?
if somebody know other solutions to get more out "PWM"...?Here is the patch that I use and I changed, and I want to thank the people who created this patch!
-
silas202
hello everyone,
sorry for my English but I'll try to do my best ...I have a conditional problem,
my project is a proximity sensor that sends values (​​float, from 0 to 1) to a LED who lights up depending on the intensity of the sensor
The LED should work only if my values ​​are greater than 0.2.I have wrote:
[sensor values (0 to 1) ]
|
|
[>0.2]
|
|
[analog output (led)]my problem is that the result is a boolean and i need a float result after >0.2
What can i do please?http://www.pdpatchrepo.info/hurleur/Capture_d?écran_2012-01-17_à_19.40.33.png
-
silas202
hello dwan (and others ),
i've just received my tlc5940 and it work with the basic use in arduino IDE,
now i need to control my leds with pure data, i've uploaded standard firmata with library ( #include <Tlc5940.h>), but with my sketch (in my previous post) i don't understand what can i change to control my led?and i've find this patch... i don't know if it can help?
thank you to response -
silas202
@dwan thank you dawn, i've just bought one, i will receive it in 2 days,
i have read some explanation on how to connect the TLC5940 but i don't understand how can i control all my 16 led by the way of just 5 digital "pwm" on my arduino mega? what i have to change in my sketch? i have to make a bridge between my array of pin and a new one or something like that?
thanks for your response -
silas202
thank you very much!
all is good! (i hope...)
i will show you my project in two week -
silas202
thank you maelstrom it works now!
but the object [-0.025] to init the result doesn't work!sumidero thanks too il will try to use your patch
http://www.pdpatchrepo.info/hurleur/Capture_d?écran_2012-01-19_à_14.49.52.png
-
silas202
that's what I tried to do, but the LED continues to light up below 0.15.
I also tried it with [sel 0] for the left value under moses 0.15 but the right value doesn't subtracted anymore.http://www.pdpatchrepo.info/hurleur/Capture_d?écran_2012-01-18_à_09.51.19.png
-
silas202
ok thank you, i have a float result now..
but I have an other problem now because I want my LED
is switched off between 0 and 0.2 and when she light up,
i want that the light have the minimum of intensity...i try a lot of thing but I can not find how to do this.
thank you for answer