Sparking-with slider as fan regulator

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello all,

   

I have implemented the Capsense slider as a fan regulator; while doing that I have used capacitors to control the fans speed.

   

The problem I am facing is While 1st 3 (1=C1, 2=C2, 3=C1||C2) stages work fine (no spark in relay); but @ final stage when no capacitor is implemented there is a Spark inside the relay employed to run the fan @ max. speed.

   

Why would it happen? what should I do to correct it? Do I need to add another small Capacitor in parallel to final stage as the load driven is Inductive?

   

Please guide.

   

Thanks & Regards-

   

Amit

0 Likes
25 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Can you post a schematic of what your interface looks

   

like ?

   

 

   

If you are driving an external relay you should have a snubber across its

   

contacts and a fast diode across its coil to suppress turn off transients.

   

 

   

www.google.com/search

   

 

   

Image result for diode circuit for relay coil

   

 

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hello Dana,

   

Thanks for the help; a simple R-C snubber did the job & now the operation is without any spark.

   

Thanks for updating, henceforth in case of inductive loads I will remember it well.

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Glad to have been of assistance.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hi Dana,

   

You have always been & thanks for that.

   

Another thing is, can you suggest me some example codes for configuring 16 capsense buttons in PSoC 1 device CY8C20534.

   

Or if you had one built for same, please share or Guide me on how to code for a WORD of a sensors. How to write EzI2C & sensor_index & button_state syntax for a word, moving from byte?

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I looked at the asm in a setup with 10 buttons, did not

   

find how they are handling status WORD results. So unless

   

someone else in forum sees answer I recommend posting

   

a CASE -

   

 

   

    

   

          

   

To create a technical or issue case at Cypress -

   

 

   

www.cypress.com

   

“Support”

   

“Technical Support”

   

“Create a Case”

   

 

   

You have to be registered on Cypress web site first.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Thanks Dana,

   

I have filed a case for the same & waiting for reply, but you can give your 10 button project as a ref. to me, could be of help.

   

As you have coded the buttons in a word count (10); please suggest me defining the sensor_index , sensor mask, buttons state etc in word format. in main.c

   

Shed more light on byte to word transit in Capsense.

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

The project I looked at was your in the PSOC 1 forum ?

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

ok Dana,

   

another thing, can you explain the meaning of

   

 LED_OFF(LED0_Data_ADDR, LED0_MASK);

   

what do I put in place of LED0_data_address & LED0_Mask?

   

Please give an example for 2 or 3 consecutive entries.

   

Or is there any other simple way for same purpose?

   

Thanks & Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Post your project again, I can't seem to find the prior post

   

you made.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hello Dana,

   

Greetings...

   

here is the part of code :-

   

void ClearAllLEDs(void)
{
    LED_OFF(LED0_Data_ADDR, LED0_MASK);
    LED_OFF(LED1_Data_ADDR, LED1_MASK);
    LED_OFF(LED2_Data_ADDR, LED2_MASK);
    LED_OFF(LED3_Data_ADDR, LED3_MASK);
    LED_OFF(LED4_Data_ADDR, LED4_MASK);
    LED_OFF(LED5_Data_ADDR, LED5_MASK);
    LED_OFF(LED6_Data_ADDR, LED6_MASK);
    LED_OFF(LED7_Data_ADDR, LED7_MASK);
}

   

now tell me what are the Data_ADDR & the _MASK of the LED's?

   

Thanks & Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Posting the project shows all definitions and makes it easier to

   

comment on.

   

 

   

    LED_OFF(LED2_Data_ADDR, LED2_MASK);

   

 

   

I will take a will take a stab and posit that LED2_Data_ADDR is the port

   

of interest and LED2_MASK the specific bit in the port ? But w/o project

   

hard to be sure.

   

 

   

    

   

          

   

“File”                                                           Designer

   

“Archive Project”

   

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hello Dana,

   

Greetings for the day..

   

I have made my mind to select the CY8C4125AXI-483 device from PSoC 4 family for the purpose of configuring keyboard of up to 100 keys (Capsense) with matrix type configuration used for various combinations ranging from 4x4 to 10x10 & more, just wanted the experienced & elder advice before going ahead. So please have a look over it & tell me whether it will serve the purpose or not.

   

Waiting for you expert advice.

   

Thanks & Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I am not a capsense expert by any measure but a 10 x 10

   

certainly seems feasable with this part. I would think tuning

   

and layout crucial to such a large matrix.

   

 

   

Here is a design guide -

   

 

   

    

   

          http://www.cypress.com/?rID=78578

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

When the resulting count of devices is not too big, I would suggest to use a CY8C42xx chip which contains 4 additional UDBs. Good to have them when you need one, can be used for some logical jobs as LUT, logical functions additional timer/counter/pwm or even a datapath component.

   

Just a matter of price

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Timer/Counter/PWM all handled in 41xx parts by fixed resourses -

   

 

   

   

 

   

 

   

 

   

 

   

   

 

   

Of course UDB have more flexibility but fixed resources not too shabby in the 4100 family.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hi Dana,

   

Thanks for the block dia. Looking at it it is clear that I can have all the GPIO as Capsense.

   

Now one last question about it,

   

Can I configure these GPIO's in Matrix fasion with any combination?

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I do not know, but a quick check would be to fire up the wizard and try

   

it......A couple of minutes and you should have an answer.

   

 

   

I would posit since its a row / column approach and wizard lets you

   

define which is which that its general in its solution.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hi Dana,

   

Greetings..

   

OK with that, now please suggest me the best suited development kit for the same.

   

Thanks & Regards-

   

Amit

0 Likes
Anonymous
Not applicable

Hi Dana,

   

Its about the Rewards Store @ cypress.

   

I have $115 in my account but I want the purchase of $120, can I go for that purchase with $115 & paying for the remaining $5 from my debit card or like that?

   

I don't know when I will reach $120 & the coupen I have is valid till end of May (5/31/2015).

   

So please help.

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Contact gul@cypress.com to get this answered.

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hello Dana,

   

Greetings for the day...

   

Regarding the Reward Store I couldn't get anything from the mail ID you gave me. Thats OK.

   

Its Regarding the MATRIX BUTTON MODULE from CY3280-BK1 :---

   

About the code lines I did asked you to elaborate I couldn't get the to digest, so I am attaching the project for your ref. Please have a look at it.

   

In that in Display.c & Display.h are the things of issue.

   

Display.h has macros defined & those are called in the Display.c.

   

Please guide me on this.

   

Thanks & Regards-

   

Amit

0 Likes
Anonymous
Not applicable

Hi Dana,

   

Got it resolved, got it compiled n build it without error n warnings.

   

Now lets see how does it go on board.

   

As per me the ADDR is the LED number & Mask is ON/OFF state of the LED.

   

Am I correct on this? Please confirm n convey to me.

   

Thanks & Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

This -

   

 

   

LED_OFF(LED0_Data_ADDR, LED0_MASK);

   

 

   

should be this -

   

 

   

LED_0_Off( );

   

 

   

Same for turning on LEDs, eg LED_0_On( );

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Hello Dana,

   

Thanks for the help.

   

Got the issue resolved.

   

Regards-

   

Amit

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Glad to have been helpful.

   

 

   

Regards, Dana.

0 Likes