Doesn't seem to be a FAQ section here on the forum or at least I didn't see one. I'm kinda new to electronics but have a pretty good understanding of how most things work. If not, theres google.
Before we begin let me explain what I'm looking to make with the following project but need some guidance on what components would be best suited for my needs. IE; which microcontrollers, etc
So ideally, the project would go as follows. See schematic for better explanation.
There are 12 steps, each step would have an LED controller with an LED on each side of step along with one sensor (motion, IR, etc) per step. As a person is walking on the steps, 3 steps at a time are dimmed up then down depending on placement. As the person moves to another step, the last step not in array 3 would dim to off. Ideally the step that is being stepped on is the brightest, which could be two or more steps at a time.
Schematic:
Use case:
If user steps on 1, then 1 has full brightness and 2 will be half lit, 3 and 4 are still 0V.
If user steps on 2, then 2 has full brightness while 1 and 3 will be half lit, 4 is still 0V.
If user steps on 3, then 3 has full brightness while 2 and 4 will be half lit, 1 is 0V.
and repeat for how many steps there are.
This project could be as simple as pairing each step to each sensor, and if the sensor is high/low then that step will adjust the LED brightness accordingly.
As for sourcing the components. I'm fairly confident that I will need one or more microcontrollers. I could probably get away with 2 controllers that have 15 I/O pins each. One controller for the 12 sensor inputs, one controller for 12 LED outputs and 3 pins to communicate with the two controllers of which sensor is being triggered. If my math is correct 3 pins would get me 3 * 3 * 3 output variations?
The microcontrollers that I have on hand are:
ATTINY45V-10MU
ATTINY45V-10MUR
ATTINY45-20MU
ATTINY84-15MZ
I haven't looked at the specs yet as their all still packaged in the moisture barrier bags. I'm not sure if any of these have the amount of I/O pins I require.
As for controlling the LED's would a relay or transistor be better for the job? Im guessing the latter would probably be the way to go.
To make my life easier here are a few questions:
Is there a single microcontroller that would do this job?
Is there a type of LED controller strip that could control a set of LED's using it's own microcontroller?
Any and all help is appreciated. I understand that learning more about electronics first would help me but that never works out in my favor. Usually I learn by hands on.
Thanks for taking the time to read this.
Before we begin let me explain what I'm looking to make with the following project but need some guidance on what components would be best suited for my needs. IE; which microcontrollers, etc
So ideally, the project would go as follows. See schematic for better explanation.
There are 12 steps, each step would have an LED controller with an LED on each side of step along with one sensor (motion, IR, etc) per step. As a person is walking on the steps, 3 steps at a time are dimmed up then down depending on placement. As the person moves to another step, the last step not in array 3 would dim to off. Ideally the step that is being stepped on is the brightest, which could be two or more steps at a time.
Schematic:
Code:
__
__| 4
__| 3
__| 2
| 1
If user steps on 1, then 1 has full brightness and 2 will be half lit, 3 and 4 are still 0V.
If user steps on 2, then 2 has full brightness while 1 and 3 will be half lit, 4 is still 0V.
If user steps on 3, then 3 has full brightness while 2 and 4 will be half lit, 1 is 0V.
and repeat for how many steps there are.
This project could be as simple as pairing each step to each sensor, and if the sensor is high/low then that step will adjust the LED brightness accordingly.
As for sourcing the components. I'm fairly confident that I will need one or more microcontrollers. I could probably get away with 2 controllers that have 15 I/O pins each. One controller for the 12 sensor inputs, one controller for 12 LED outputs and 3 pins to communicate with the two controllers of which sensor is being triggered. If my math is correct 3 pins would get me 3 * 3 * 3 output variations?
The microcontrollers that I have on hand are:
ATTINY45V-10MU
ATTINY45V-10MUR
ATTINY45-20MU
ATTINY84-15MZ
I haven't looked at the specs yet as their all still packaged in the moisture barrier bags. I'm not sure if any of these have the amount of I/O pins I require.
As for controlling the LED's would a relay or transistor be better for the job? Im guessing the latter would probably be the way to go.
To make my life easier here are a few questions:
Is there a single microcontroller that would do this job?
Is there a type of LED controller strip that could control a set of LED's using it's own microcontroller?
Any and all help is appreciated. I understand that learning more about electronics first would help me but that never works out in my favor. Usually I learn by hands on.
Thanks for taking the time to read this.