CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Garage door opener with PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
carllw



Joined: 22 Feb 2018
Posts: 10

View user's profile Send private message

Garage door opener with PIC
PostPosted: Fri Feb 23, 2018 7:05 am     Reply with quote

Hi, I need a ideas to make a garage door opener with PIC microcontroller for my senior design project. Does anyone have a ciircuit model or code ?

Thanks.
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Feb 23, 2018 8:07 am     Reply with quote

Well this is a basic simple program to code but YOU need to do the design. Details like sensing full up, full down, jammed and obstacles need to be addressed. remote or local operation?.
Chamberlain makes 80% of GDOs so here's a few hints...
1) motor on sensor is an encoder, used to detect 'jammed' conditions
2) simple limit switches for, well, limits. 1 for up, 1 for down.
3) IR mod beam about 8" above floor for cat detection.
4) be sure to filter every input, GDO motors are 'noisy'
5) PIC will need min of 1 amp PSU, well filtered !
6) simple one button logic state machine - up, stop, down, stop, up, ...

Almost any PIC can be used, even 12F series, 3 inputs, 2 outputs.

Jay
carllw



Joined: 22 Feb 2018
Posts: 10

View user's profile Send private message

Garage door opener with PIC
PostPosted: Fri Feb 23, 2018 1:41 pm     Reply with quote

Thanks, I wanna use this model but i didn't create CCS C code of this scheme.

[img][/img]
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Feb 23, 2018 2:27 pm     Reply with quote

At a 'first glance' I can see a minimum of 16 errors in the schematic, any one of them 'fatal'.

As a comment, the 877 is well a 'dinosaur' like me and you can buy pin compatible newer PICs cheaper with more 'godies' inside.

Also, consider keeping the ICSP pins dedicated to ICSP. While I don't know how you program your PICs, I keep ICSP dedicated to ICSP for supper eazy programming via a PICkit3.

You should also include an LED+1K for 'test' purposes. I'd also use the 'flex_lcd' driver, for obvious reasons.

There also aren't any necessary safety features in the schematic. Up limit switch, down limit switch and 'obstacle' detection.
If this is a course test and I was your prof. ,you'ld lose 30% for not having them, another 10% for no power switch.

Jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Garage door opener with PIC
PostPosted: Fri Feb 23, 2018 3:24 pm     Reply with quote

carllw wrote:

I need ideas to make a garage door opener with PIC microcontroller ?

Sample keypad password program:
http://www.ccsinfo.com/forum/viewtopic.php?t=45935
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group