cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

These are the main requirements:

1. To open a garage with a push button, inside the garage will be a digital motion sensor IR E18-D50NK, a motor to open and close the garage.  

2. When the motion sensor doesn't detect a presence of a senior then the door will closed.  

3. Outside the garage will be a light intensity sensor (LDR GL55) the light level measurement should be displayed on a LCD.

Improvements ideas will be welcome!

Thanks a lot!

Arath

0 Likes
Reply
1 Solution
Esteemed Contributor

Dear Arath-san,

I have just posted my sample project.

Garage Door Opener Program Idea Sketch (CY8CKIT-059)

Hope this can give you same idea of how we can handle state machine

with some error handlings.

But please use/refer it as a sample or experiment

and please do not apply it for a real world application.

Best Regards,

4-Dec-2020

Motoo Tanaka

View solution in original post

0 Likes
Reply
4 Replies
Esteemed Contributor

Dear Arath-san,

The nature of this community is helping (each) others' difficulties in using Cypress product(s).

So if you are developing a system and encounter a difficulty you are supposed to show what your problem is and ask for a help,

then others will help you for the issue voluntary.

And if you want to order a development of whole system, you can refer to

Cypress > Design Partner Program > Design Partners

https://www.cypress.com/design-partner-program/partners

Having written above, how can we help you in the context of this Developer Community?

Best Regards,

2-Dec-2020

Motoo Tanaka

0 Likes
Reply
Honored Contributor

Arath,

Hi.  Could you clarify some of your main requirements?

1. To open a garage with a push button,

See the third reply below.

... inside the garage will be a digital motion sensor IR E18-D50NK,

You will have to put in a IR sensor disable switch.   This is to prevent false opens/closes when someone is in the garage for reasons other than to exit the garage.

a motor to open and close the garage. 

If the garage door is a standard size, there are commercial garage door opener products.   They includes proper mounting hardware and installation instructions.  

These openers come with a momentary switch to mount on the inside of the garage for interior open/close commending.  An additional feature is a RF remote control to open/close the door.

Trying to implement a custom motor drive will be more a challenge than you would want to handle.

With a commercial garage door opener, you will need to include a full open and a full close sensor.  These sensors can be proximity switches.

These switches allow SW to know not to issue opens or closes if the door is already in this condition.

2. When the motion sensor doesn't detect a presence of a senior then the door will closed. 

You may want to place a open/close command debounce from the IR sensor.  This is to prevent unreasonable command toggling to the opener.   Ie.  The IR sensor output must be same (presence/no presence) for 20 seconds to open/close.

Another issue that occurs with IR motion sensors is the "clothing factor".  The IR intensity is lower when people are wearing thick clothing such as for cold winters.  In this case, you may have to increase the sensor sensitivity.

3. Outside the garage will be a light intensity sensor (LDR GL55) the light level measurement should be displayed on a LCD.

The Cy8CKIT-050 has a 16x2 LCD display (non-backlit). 

Len

Len
Engineering is an Art. The Art of Compromise."
0 Likes
Reply
Honored Contributor II

ArPa.

Hope it is just a semester project.

Nursing home = liability. No way to install anything without certification. (Here comes a sad story how garage door broke my arm...).

System should be fool-proofed against vandalism, lightning strike, flooding, power outage, fire alarm, tampering, illegal entry/exit and car theft. The rule of thumb is that garage door shouldn't be opening automatically from the inside without authorized access.

As an example, I can repeat a Hackaday story about certification of the garage door opener at GE. The testing was done by the external lab. Eventually, unit didn't pass lightning strike test, and was returned to the development group, which had to switch to another microprocessor family to meet requirements.

/odissey1

Esteemed Contributor

Dear Arath-san,

I have just posted my sample project.

Garage Door Opener Program Idea Sketch (CY8CKIT-059)

Hope this can give you same idea of how we can handle state machine

with some error handlings.

But please use/refer it as a sample or experiment

and please do not apply it for a real world application.

Best Regards,

4-Dec-2020

Motoo Tanaka

View solution in original post

0 Likes
Reply