element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum A beginner needs help with electronics for a friend | 5 NeoPixel, 1Fan and a Arduino
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 18 replies
  • Answers 10 answers
  • Subscribers 393 subscribers
  • Views 1651 views
  • Users 0 members are here
  • arduio
  • force sensitive resistors
  • 12v
  • buttons
  • help
  • fan
  • new
  • led
  • neopixel
  • fsr
  • 5v
  • beginner
Related

A beginner needs help with electronics for a friend | 5 NeoPixel, 1Fan and a Arduino

soxx
soxx over 8 years ago

Hello Element14 Comunity,

 

If you guys can help me, and I don't mean that you should give my a compleat circuit or code, I mean good practises or ideas and say what I have done wrong.

I am pretty mutch a beginner and I want to learn.

 

I'm building a costume for a friend and he wants LEDs and a Fan, this shouldn't be hard but I thought wrong.

(I don't know if this is even possible with an Arduino....)

 

 

So here is my idea.

 

I have an Arduino that controls 5 NeoPixel LED strips and a fan, the LEDs should change colour or in the case of the fan the speed when he presses on of the 4 Buttons, in this case, FSRs (Force Sensitive Resistors).

 

The first 3 controls the Colour with an effect of some sort.

The last one has 2 modes to manage

1. when he holds the Button down the Fan should speed up, when he presses it and holds it down again in a very short amount of time the fan should slow down to a specific speed.

2. When he just press the button all LEDs should go off or on again.

 

 

I have done the first idea in Fritzing and I don't know if this is good or the worst thing you guys have ever seen.

 

I hope you guys can help me.

 

image

Attachments:
image
  • Sign in to reply
  • Cancel

Top Replies

  • gadget.iom
    gadget.iom over 8 years ago +3 suggested
    I would start by building the circuit in stages. Start with a single neo-pixel and add some code to just flat some colour etc. Then add the rest of the pixels and check functionality. Then the motor. Keep…
  • mcb1
    mcb1 over 8 years ago +2 suggested
    The neopixels come with some very good examples in the Adafruit library. You should be able to drive all 5 from a single regulator. https://learn.adafruit.com/adafruit-neopixel-uberguide/power gadget.iom…
  • mcb1
    mcb1 over 8 years ago in reply to niteowl12 +1 suggested
    niteowl12 Good spotting. The Sensing pin A0-A3 need to connect between the FSR and the pulldown resistor. Also PWM is only available on some pins. https://www.arduino.cc/en/Main/ArduinoBoardProMini You…
Parents
  • soxx
    0 soxx over 8 years ago

    Thanks for all the replies so far,

     

    I changed now something like the wrong placement of the sense wire for the buttons and the control wire for the PWM.

    My only concern is that one 5V regulator for the entire circuit,

    To estimate power supply needs, multiply the number of pixels by 20, then divide the result by 1,000 for the “rule of thumb” power supply rating in Amps. Or use 60 (instead of 20) if you want to guarantee an absolute margin of safety for all situations. For example:

     

    60 NeoPixels × 20 mA ÷ 1,000 = 1.2 Amps minimum
    60 NeoPixels × 60 mA ÷ 1,000 = 3.6 Amps minimum

     

    from the Neopixel Überguid

    and that is only for 60 NeoPixels in one stripe, I don't know how many I end up using.

    I don't know what regulator with I should use to power the entire circuit.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • niteowl12
    0 niteowl12 over 8 years ago in reply to soxx

    Please make sure you account for power dissipation. You are looking at (12v - 5v) * 3.6A = 25.2W of power(ballpark) that needs to be dissipated by that regulator. my first experience figuring this out made a board get hot enough to boil water. I would suggest finding a way to use the 12v to power the neopixels by putting them in series if you can or finding a simple DC/DC buck regulator from sparkfun or adafruit. one that's already put together to make it easy for you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • soxx
    0 soxx over 8 years ago in reply to niteowl12

    get hot enough to boil water

    Well, that is alarming... okay a DC/DC buck regulator, what exactly does it or what is the difference?

     

    I wanted to use the 30 NeoPixel version of their strips.

    30 NeoPixels × 60 mA ÷ 1,000 = 1.8 Amps minimum   // for one Strip and adafruit said 60mA is the worst case scenario soo...

    (12v - 5v) * 1.8A = 12,6W                                             // could the regulator get really so hot to boil water at 12.6W, I don't want this to be dangerous...

     

    When I use the DC/DC buck converter should I replace it with all pf the existing regulator or should I use only one to power the NeoPixel and the Arduino?

     

    DO you mean this? >KLICK<

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 8 years ago in reply to soxx
    I want a pretty long runtime for the circuit

    The first comment I'd make is the neopixels don't need to be run at 60mA (all three on).

    They are BRIGHT so unless it is in sunlight you may find you can get away with 30mA or less when it's running.

    If you're only using one colour it will be a third of whatever the figure is.

     

    The DC/DC converter is the best option to eliminate the heat component and save on energy wasted.

    You also gain a bit more run time using these.

    image

    So using 85% efficiency 1.8A out is approx 0.92A in at 12v

     

    0.92A = 920mA x 5 strips = 4600mA (ignore the fan)

    19600 / 4600 = 4.2 hours at FULL BRIGHTNESS

     

    One thing to be aware of, most of the rated mA on these battery packs aren't.

    However I think considering it won't always be on white, you should get  4 hours easily.

     

    Mark

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • soxx
    0 soxx over 8 years ago in reply to mcb1

    Thanks for all the information, 4.2h is brilliant.

    I make now a new circuit and upload it here.

     

    David

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • soxx
    0 soxx over 8 years ago in reply to mcb1

    Thanks for all the information, 4.2h is brilliant.

    I make now a new circuit and upload it here.

     

    David

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube