Loading...
Answers
MenuWhat is the best best approach for dynamically setting the blink frequency of a multi-led arduino driven strob light?
I am building a multi-light strobe. I need to drive each of the LED's separately and want to be able to dynamically change the frequency (flash rate) of each individual light on the fly. For example, I'd like to be able to send a command to the device from my laptop to change the frequencies. This will ultimately enable me to store pre-designed sequences that could be fed into the LED strobe system. I have code to drive the individual lights now (http://123d.circuits.io/circuits/138205-multi-led-strobe/) and am curious on the approach I should take. Any help or resources is much appreciated!
Answers
It really depends on what use case you want to achieve. Will there be multiple devices controlled from a single laptop ? Do you want to remote control them ? Do you need to build a user Interface on your laptop or is command line ok ? Etc.
With respect to communication, you can simply go serial (via USB), which can be easily 'upgraded' to bluetooth using a Bluetooth serial module (search for HC-06), they are really easy to integrate with arduino.
As for the software side on the laptop, you can use pretty much anything as long as it can talk over the serial port. I personally enjoy Python for these kind of things.
Finally, you must decide on the 'protocol' you are going to use to communicate with your device. it would be simple strings that you parse, a custom binary protocol that you design, or you may want to use a serialization library that provides you with greater flexibility. I like using 'nanopb' in my arduino projects. It is a lightweight implementation of Google 'protobuffers'.
As I wrote, lots of design choices in there, feel free to plan a call if you want to discuss.
Related Questions
-
Programming language for web platform?
NOT Wordpress! Facebook uses PHP among other languages, if that tells you anything. Every programmer will be bias toward what they like and what they are used to coding with. The bigger question for you is, have you completed your due diligence? Is there a real need for another crowd funding platform? Why would yours be so different that it would stand out among the others? Who is you target market? What is your unique selling proposition? How big is your potential market? Should you go vertical or horizontal? You may have already answered these and the two dozen other questions every entrepreneur must ask before they waste valuable time and money to become another business start up statistic. Assuming you have a strong grasp of where you are heading and a solid strategic blueprint to be able to predict your growth, the last thing I will leave you with is this. The programing language is not nearly as important as your database structure and IT infrastructure for the purpose of scale. Not to say the language is not important - all three components work together. Spend time on the other two and work backwards. If you would like to discuss this further at no charge, use the link below. I provide a free 30 minute consultation to first time callers. https://clarity.fm/kevinmccarthy/FreeConsult Best regards, Kevin McCarthy www.kevinmccarthy.comKM
-
Can I make money freelancing while learning how to program JavaScript?
Most jobs in the marketplace are going to require more skill and experience than you have currently. One avenue that may allow you to make some money while expanding your skills would be to bid on projects through the platform upwork.com. This is a platform designed to help people find freelancers to assist with various projects. Upwork.com has a constant stream of web development project of all shapes and sizes. You may be able to find some projects there that fit within your skillset and bid to complete them. Another unpaid opportunity could be to begin writing free/open source scripts, utilities, or tools and post them for public use. This would allow you to expand your capabilities while also building a body of work that you could show potential clients or employers as your skills improve and you begin seeking employment. Look for common problems and find ways to solve them. Even if there are other solutions out there you can exploit your limited knowledge to create simple straight-forward solutions for other beginners like yourself who can often be overwhelmed by some of the more complex solutions and frameworks common in the marketplace.RS
-
What is the best way to do a permissions system for a low traffic administration system, PHP preferred, but general suggestion is also valuable.
Hi, I have been a PHP developer for 13 years and have experience building enterprise applications. What framework are you using? Most PHP frameworks have a built in authentication and authorization mechanism. For example, Yii has a builtin RBAC system that allow you to define a hierarchical permission system. If you're not using a framework or you just want to implement your own system for whatever reason then you can utilize Object Oriented Design and implement a Base controller (if MVC) that checks the permission for each request. That won't use a lot of if statements. Probably need more info, to give definitive guidance. Hope that helps.AP
-
I am building an image archive that will ultimately have millions of images you can search. I'd love the hear your thoughts on technologies to use.
I have worked on projects handling transfer of large image files across multiple vendors and being served on web for different targets (mobile, web etc.). I have also implemented cloud and DevOps solutions for high volume/scale of data and transactions. While I could tell you a list of technologies which can be used - the problem here is more of design and architecture. So I will start with that. Also a lot of decisions are based on more information and the use case - so I will need information on certain aspects of your application. 1) For searching an image users will enter search terms. You will have to associate the search terms/tags to actual images. While there are multiple ways to do this association - what is the link between a search term and image in your case. Do you have a separate database/service which will link given search terms to given set of images? 2) Since you are talking about handling millions of images - they will need to be partitioned logically or bucketized for optimum way to store and search. Is there a natural distribution? Do your users access all the images all over the world? 3) For any data storage related to images - we will need to go one detail further. While relational DB might serve a lot of needs, there might be use cases where considering other storages will be needed. Some questions which will lead to answers are - what kind of data per image will be stored? How frequently this data might change? How many new additions will happen on this archive? How fast would you want the updates to be visible to users/consumers? 4) What kind of traffic do you expect roughly? This will decide a lot design around auto scaling, load balancing and other aspects. 5) I am not a front end expert - but similar principles of scaling would apply to front end stack. Though I can not necessarily answer what technologies might fit your needs best.VB
-
Best way to fund my app for a startup? The programming phase is a lot of money.
Hi, check outmy response to another question similar to yours. I hope it helps. Overall what you need to do is grow your community of users, or depending on the app generate enough sales or interest typically before any investors considering joining you. Not impossible to get investors early on, but your best bet is through kickstarted if anything. My responses tend to get UpVoted by other experts. Check it out https://clarity.fm/a/8032HV
the startups.com platform
Copyright © 2025 Startups.com. All rights reserved.