Recent Posts

Pages: [1] 2 3 ... 10
LEDs and Multiplexing / Re: TLC 5940 Fading Loop Issue
Last post by SirFoxx - Today at 02:16 am
As the lower limit is 2 and you only change the counter when count equals zero the else if will always return false because count can never be greater than lower limit only equal to it.

As written you don't need the else if anyway, just else.
Do you mean the upper limit is 2...? I'm not quite grasping what you mean. When I read your reply, it makes sense, but when I look at the code, it does not.

I changed the code a little bit and got it to fade twice. From what I wrote, I'm seeing if count = lowerLimit, fade then add 2 to count. else if count does not equal 0, fade again and make count equal the lowerLimit. The if else seem to be working, but it strikes me that it might be a time issue because if I change the time under the else statement to the same as the times under the if statement, it will only fade once.
Code: [Select]
void functionGo(){
  if (count == lowerLimit){
      tlc_addFade(0, 0, 4000, 0, 1000); //command that tells how to fade (channel on chip, startbrightness, end brightness, start time, end time)
      tlc_addFade(0, 4000, 0, 1001, 2000);
      count + 2; 
  else (count != 0); {   
      tlc_addFade(0, 0, 4000, 2001, 3000);
      tlc_addFade(0, 4000, 0, 3001, 4000); 
      count == lowerLimit;
goTime = millis() + nextTime;
Ok i'm also new to arduino and wanted the same start project for the arduino for my house XD

i'm thinking of using a ac 230 motor to turn left and right the crank of the skylux
thinking on this motor.

The only problem is for me how to turn a 230 motor left and right using arduino XD

picture motor below here XD
technical of the motor

the motor:

sorry for the dutch pages but i'm from belgium and this motor should cost 300 €

so if someone could guide me trough the project XD

thx in advanced

Portugues / Identificação de componentes
Last post by FernandoGarcia - Today at 02:15 am

Estou tentando copiar este circuito.

Gostaria que me ajudassem a identificar o componente que acredito ser um optoisolador cujo "silk screen" tem "F21801A".

E também o CI cujo o "silk screen" tem "LKC9" este eu não tenho ideia do que seja.

No link acima tem mais imagens e informações.

No momento este é o circuito que tenho:

Eu usei um PC817 para o optoisolador mas, não tenho certeza se posso usá-lo. Além disso o encapsulamento é maior.

Desde já agradeço todas as sugestões.

Français / Re: shield ethernet arduino
Last post by _pepe_ - Today at 02:11 am
Illustration des connexions :

Displays / Re: ISSUE! 5in TFT SSD1963 Ran...
Last post by buzzben - Today at 02:05 am
Graham, Thanks a lot for your reply!

At first I tried everything connected to the 3.3V but the screen seems very dim. I saw some post here saying it was ok to plug it to the 5V (can't recall which post tho..) so this is what I did.. didn't changes anything to me.. but, fortunately it didn't damage the TFT or any of it's components.. I guess i'm lucky on this one!! :D

My problem was in the HW_ARM_define.h
The example I had came with CTE_DUE_SHIELD 1 configuration already uncommented. Therefore, the connection reqmts in the main PDF file were waived and the connection I made were incorrect.

I did exactly how you posted In the JPG but I still experienced some random behavior on the screen.. 1/3rd of the screen updated but didn't clean out and pictorially, the forms were incomplete..

This happened because (As the picture shown) there isn't supposed to be a 10K ohms resistor on the RD connection..
Once I removed that resistor, everything works like a charm!!!

Thanks again for your support!
For the pwm pin, do you have this in setup?
pinMode (pwmPin, OUTPUT);
I modified a servo by myself and already discard the potentiometer and replaced a 2 resistors. I have a question, why do you use the 1500 initial position for no movements instead of 90?
Getting the same problem trying to download either of the IDE packages.
My testing shows your ISR running around 80uS. If you can change cycleNo from an unsigned long  to an uint8_t, you should get the ISR down near 10uS. I'm not sure how this change will affect the remainder of the ISR/program...

Something like this:

Code: [Select]

uint8_t cycleMultiple = 0;
uint8_t oddCycle = 0;


void sendDataISR() {
  if(cycleNo == 240) {  //(24 cycles per bit, 10 bits per byte)
    if (cycleMultiple == 2) {
      bitClear(PORTD, SDI);
      bitClear(PORTD, CLK);
      bitClear(PORTD, LE);
      bitSet(PORTD, OE);
      cycleNo = 0;
      cycleMultiple = 0;
Thank you so much! But isnt that strange? I can provide the voltage required by my circuit and also a current above what it's necessary but still I cant make it work with a resistor? How is that?
What part of:-
A two volt power supply will not work properly with your two volt LED.
Are you having trouble understanding?

I don't mind you asking questions, however asking the same questions in different threads is called cross posting and pisses people off here.
Pages: [1] 2 3 ... 10