Pages: [1]   Go Down
Author Topic: Hooking up multiple LEDs and PIRs  (Read 1129 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi! I am working a project consisting of many LEDs strips and PIRs. My first question is can PIR motion sensors be placed in any other pins besides  PWMs? If not, what is the biggest board that has the most PWMs? I am working with about 8 White color LED Strips and each one is independent to other strip. Also the one PIR sensor is particular is to power all the LEDs at a dimmed level, while each LED has their individual PIR to power them at full brightness. Thanks for answering my rookie questions.
Logged

USA
Offline Offline
God Member
*****
Karma: 14
Posts: 644
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My first question is can PIR motion sensors be placed in any other pins besides  PWMs?
Pusle Width Modulation, PWM, is a form of digital output (a square wave to be exact).  For a basic PIR sensor I don't see why that would be required, all I'm familiar with just need a digital input.

If not, what is the biggest board that has the most PWMs? I am working with about 8 White color LED Strips and each one is independent to other strip.
I'm answering this because what you want to do with the LED strips might require PWM pins (or software PWM but I beginners should have a working understanding of hardware PWM before trying that).  It would be good to determine whether or not these strips have built-in control logic for things like dimming or patterns (some strips have it and some don't).  If they are just strings of LEDs, you will need to use PWM to dim them.   

The Mega is the largest board in physical size and pin count, and it has more PWM enabled pins than the most Arduino boards (15).  However, it is significantly more expensive than an Uno or Leonardo (which have 6 and 7 PWM pins respectively).

Also the one PIR sensor is particular is to power all the LEDs at a dimmed level, while each LED has their individual PIR to power them at full brightness. Thanks for answering my rookie questions.
This part shouldn't be a problem, you'll just need to have the proper conditional statements to control the LEDs based on what mode the device is in.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 46029
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
My first question is can PIR motion sensors be placed in any other pins besides  PWMs?
Where did you get the idea that a PIR sensor was read on a PWM pin? PWM is an output capability. It has absolutely nothing to do with how an input pin behaves.

Quote
Also the one PIR sensor is particular is to power all the LEDs at a dimmed level, while each LED has their individual PIR to power them at full brightness.
I fail to see how a PIR sensor can power any LEDs. No more than a light switch powers a light on the ceiling. If the switches powered the lights, what would we need the power company for?
Logged

USA
Offline Offline
God Member
*****
Karma: 14
Posts: 644
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Also the one PIR sensor is particular is to power all the LEDs at a dimmed level, while each LED has their individual PIR to power them at full brightness.
I fail to see how a PIR sensor can power any LEDs. No more than a light switch powers a light on the ceiling. If the switches powered the lights, what would we need the power company for?

I read the OP as really meaning "control" when they used the word "power", an understandable novice mistake.  Yet, it is something that should be corrected because not using the proper terminology will only cause confusion.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Also the one PIR sensor is particular is to power all the LEDs at a dimmed level, while each LED has their individual PIR to power them at full brightness.
I fail to see how a PIR sensor can power any LEDs. No more than a light switch powers a light on the ceiling. If the switches powered the lights, what would we need the power company for?

I read the OP as really meaning "control" when they used the word "power", an understandable novice mistake.  Yet, it is something that should be corrected because not using the proper terminology will only cause confusion.

Thanks for the correction I'll remember that.

Quote
My first question is can PIR motion sensors be placed in any other pins besides  PWMs?
Where did you get the idea that a PIR sensor was read on a PWM pin? PWM is an output capability. It has absolutely nothing to do with how an input pin behaves.

I read a schematic on how to connect a PIR sensor to a board, and realized that the pin it was connected to was not specifically marked PWM like the rest of them. So I can assume I can use any digital pin, including those that have PWMs.
Logged

USA
Offline Offline
God Member
*****
Karma: 14
Posts: 644
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I read a schematic on how to connect a PIR sensor to a board, and realized that the pin it was connected to was not specifically marked PWM like the rest of them. So I can assume I can use any digital pin, including those that have PWMs.
Yes as mentioned in my first reply, most PIR sensors should be able to use any pin configured as a digital input.
Logged

Pages: [1]   Go Up
Jump to: