So much better.
Now, you need help with the programming and or the Bluetooth clicker?
So much better.
Now, you need help with the programming and or the Bluetooth clicker?
I need help with the programing.
what I want to achieve is that 8 led strips turnes on and off individually and takes a picture each time a led strip is turned on. I have already done this part.
The thing i need help with is to connect a button to start the program and it will stop when the last led light have turn off
I would create an array that contains each LED pin.
In loop I'd check every 85us to see if the button was pressed.
If the button was pressed I'd enter a for loop to go though the elements in the array:
After the for loop turn off all the LEDs and begin to wait for the button again.
Can you show me how to setup this or send me a link to a place that can. ![]()
Start a different program.
Research arrays and for loops.
Make a program that stores your pin assignments in an array and prints them to the serial monitor.
Hi again,
I solved the button issue and now i need help with a different issue.
Problem that i'm having is that I need more digital pins, I need 21 pins for my project and as far as I know arduino can only give me 19 pins.
I have googled for a solution and I found something called shift Register.
I'm think of connecting all my led strip to shift Register but on all examples led diode is used and they are connect to 5V on the arduino and on my project led strips uses mosfets and are connected to a 12v ac-adapter.
Here is my questions
Will a shift Register work for me and if not do you know a better solution?
Will connecting my led strips be the same as the exemples (image below) if not Do you know how i connect my led stips to a shift Register?

Please list the pins and their uses. Let's start there.
Led strips = 11 pins
Bluetooth shutter = 1 pins
LCD Screen = 2 ( with this https://www.amazon.se/gp/product/B07KQ9QYMD/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1)
Buttons = 3 pins
Stepping motor = 4 pins (Luxorparts Stegmotor med växellåda och drivare - Arduino-tillbehör | Kjell.com)
Four things:
I think you need pulldown resistors on the gates of your N-MOSes. Otherwise when your Arduino is off the lights can come on as the gates are not held definitively off.
I think you can trigger the N-MOSes with the 74HC595 with a but, the DIP has the highest power dissipation at 750mW or 150mA at 5V. You need to use that to drive all 8 pins so you can draw more than 18.75mA but best to stay under that. A 330 ohm resistor between each output on the 74HC595 and the N-MOS should limit your 5V to just over 15mA.
Save the Uno and switch to a MEGA and your programming is simpler and you don't need the shift register.
You need resistors in front of the N-MOS gates regardless so you don't over-draw your Arduino's current capabilities.
thanks so much for your help, I will upgrade to a mega and add resistors to the gates on the mosfets.
Thanks
Where is the ground connection to the Arduino?
or pencil and paper
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.