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 2010Posts: 5878Location: Greensville,Ontario

Posted: Fri Feb 23, 2018 8:07 am

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 2018Posts: 5

Garage door opener with PIC

Posted: Fri Feb 23, 2018 1:41 pm

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

[img][/img]

temtronic

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

Posted: Fri Feb 23, 2018 2:27 pm

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.