Hello all you fantastic Arduino / electronic guru's...
I could do with some help and/or guidance on the back of my first ever project with Arduino and electronics in general.
So far I have managed to get a basic version of my project up and running and working to my requirements (details will be below), although if anyone can see any improvements I could/should make to the code, feel free to chip in BUT... What I have in place is basically an early/initial version of my plan, and I need help for the next phase which basically involves me moving away from basic components and trying to use more powerful ones.
Quick version of the project and requirement:
I have the project set up on an Arduino Uno (I plan to move to an Arduino Mini when all is working) and a breadboard (I plan to create a PCB when all is working), with your basic kit supplied LED's, active buzzer, momentary press buttons etc, all running off of the standard 5v pics, with the power source being from a 9v battery or USB connection.
I can try and confirm the specs for what I got in the kit if needed but my guess is it’s not that important and most of the details can be seen from the pictures I have provided (i hope).
I now want to upgrade this so that I get bigger lights and sound (as this will be used outside), and can run it from a 12v battery... And this is where I have managed to get quite lost, as I don’t have the first clue about MOSFETS, buck/boost converters or regulators other than seeing they are needed in some way to achieve what I want.
The longer version (if you’re interested):
I am due to get married in June 2021, if the world calms down in time, and we are having an outdoor wedding so plan to make it fun with a bunch of both purchased and homemade outdoor games.
One that I came up with is to make a rather large steady hand game. But ever the one for a challenge, I did not want something basic, I wanted to introduce elements to make it more interactive and enjoyable.
v1 - was learning the ropes so that I could just get the basic buzzer to go off when you touch the wire (represented as a button in the project for now), and to set off one of 3 LEDs each time you do (indicating your 'lives') then reset
v2 - was moved to adding a green LED to indicate ‘start', and 5 red LED's for your 'lives' that reduce each time you touch the wire, then a flashing sequence for GAME OVER, and a reset
v3 - Added a 'level select' option where harder levels set fewer lives and set a shorter delay in the wire touch detection.
v4 is basically due to be as per the short version above. I plan to use a 12v battery to power this, so I know there is the element of needing a drawdown to the required power, and control over the constant current supply element to ensure that I don’t blow the components and so that the current adjusts as the temperature adjusts, but I am getting really confused about what I need in place to manage this.
I know these LED’s are consuming less than the 5v supplied, but given they are 3W I believe they require a higher output right? What’s the calculation on that to know what is actually needed to get the full output?
Do I need some form of controller ‘per’ LED? Or should I be using other/better methods to group them and control them logically via code instead of one LED per pin?
Upgraded components:
I plan to upgrade the active buzzer with a Mini Piezo Siren
Operation Voltage - 8->16VDC
Consumption Current - <200mA
And I don’t think this is too complicated as I would just move the buzzer to have power supplied directly from the battery instead of via the Arduino, but I would obviously need to add in a resister to ensure the power feed don’t fry the board, so any advice on what I should use and where would be greatly appreciated. Or better still, how I should calculate this myself to understand 'why'.
As for the LED's, I have purchased some nice 3w LED's on heatsink chips/boards:
number to be used Colour nm Forward voltage forward current output lumens
x 1 Bright Blue 470 3.5 700 50
x 1 Pure Green 525 3.7 750 120
x 1 Orange 600 2.9 800 90
x 5 Bright Red 630 2.7 800 85
And I don’t have the first clue what I need in place to power them to the correct current, get the right output, not fry everything, and manage them via Arduino in an 'efficient' way.
Note: ignore the blue LED for now, that's another element I will add to trigger a 'WINNER sequence later.
Where do I start? I have been looking but so many people do it so many different ways and it's hard to know how and why when you know as little about the power consumption side of electronics as I do.
Any help or advice will be highly appreciated.