Recommend me Pic microcontroller for this project

Thread Starter

gaber2611

Joined Mar 14, 2013
321
Hello
Please recommend Pic microcontroller for this project.

5 buttons and 6 led strips
Also that's only the available space
13*20mm
Messenger_creation_B5D6CB61-64D6-4D45-9914-069E623339B2.jpeg
Messenger_creation_9720802F-9A34-4441-BAB4-D0F9BD1FAC83.jpegim thinking of Pic 16f877a, how you think?
 
Last edited by a moderator:

Thread Starter

gaber2611

Joined Mar 14, 2013
321
Okay, thanks im thinking of 16f886, the smd package, it's within dimensions I need, suitable for this pcb size

Do you have an idea which command suitable for programming the Pic to do these tasks mentioned above?

I want a pin in the Pic to be on, when press a button
And if I press the same button again, this pin goes off, and another pin goes on
If press again, the last pin is off,
Also need pwm control pins, to control the brightness led
How this can be written in mikroC compiler?
I'm trying to learn about it these days, biyt if you can help would be much appreciated
Regards
 

MaxHeadRoom

Joined Jul 18, 2013
30,558
I modified a LED lamp recently for a member, it had 3 sets of LED strings that were controlled independently, i.e. fade in, fade out, , I ended up using a pic version where the PWM output could be switched to 3 PWM output pins on the fly in order to sequentially control the three strings..
 
Last edited:

Thread Starter

gaber2611

Joined Mar 14, 2013
321
I modified a LED lamp recently for a member, it had 3 sets of LED strings that were controlled independently, i.e. fade in, fade out, , I ended up using a pic version where the PWM output could be switched to 3 PWM output pins on the fly in order to sequentially control the three strings..
Do I need 6 pwm output for control the brightness?
 

MaxHeadRoom

Joined Jul 18, 2013
30,558
For the application I had the three banks of LED's were each controlled by a separate output, each bank in turn..
The PWM width was varied from zero to maximum by using a timer to change the PWM width, every 'Tick' of the timer would increase or decrease the PWM width accordingly.


,
 

Thread Starter

gaber2611

Joined Mar 14, 2013
321
Do you have a PicKit to use to program it?
Yes, have and
For the application I had the three banks of LED's were each controlled by a separate output, each bank in turn..
The PWM width was varied from zero to maximum by using a timer to change the PWM width, every 'Tick' of the timer would increase or decrease the PWM width accordingly.


,
For my project?, how you think the pwm should be configured? With the Pic and leds?
 

be80be

Joined Jul 5, 2008
2,394
Do I need 6 pwm output for control the brightness? Nope just 6 ouputs and 1 pwm if you want dim all 6 the same if not
Then you need 6 of them
 

be80be

Joined Jul 5, 2008
2,394
Can you write what you want to happen like flow of how you want it to happen post 3# is not that clear

5 buttons and 6 led strips

You need to to list all 5 buttons
And what happens to the 6 led strips

mikroC probably not that hard to write the code.
 

Thread Starter

gaber2611

Joined Mar 14, 2013
321
Can you write what you want to happen like flow of how you want it to happen post 3# is not that clear

5 buttons and 6 led strips

You need to to list all 5 buttons
And what happens to the 6 led strips

mikroC probably not that hard to write the code.
I need when I press button it light one led led strip, and when I press again it off that led strip and light other one, and when I press again it off the last led strip and that's all
For every led strip the same, as every two led strip controller by one button

BTW, two buttons for increment and decrement the lighting of led
" pwm", one button increase brightness by a percent when pressed or increase gradually the brightness when pressed all time and same for decrement

That's all
Regards
 
Top