We are building a house for our disabled daughter, her bedroom door is going to be a motorised sliding in to a wall. I had an idea to get the door to make the star trek opening noise, i can find a basic module to do this but we only want it to do this during the day and not at night.
What i am looking for is a sketch that can play the sound when activated by a senor and using a clock so it can be set at certain times. where do i start?
I have 2 different boards.
NodeMCU ESP8266 Development Board With 2.44 Cm OLED Display, CH340 Driver, ESP-12E WiFi Wireless Module,
Start by understanding that you can't/won't just find code to fit your particular set of requirements somewhere on the internet. You can waste a lot of time looking. Each set of requirements is unique and therefore the code will be unique.
But you will find code that will meet some of your requirements, and combine those codes to create a new code. But "combine" doesn't mean simply cut & paste. You need to understand the code well in order to successfully combine it.
If you are willing to learn and try hard, this forum will give unlimited help and advice, but not write it all for you.
An advantage of using this board would be that, as long as a WiFi signal is available, you don't need a separate clock module. By synchronising themselves with the internet, this type of board can keep excellent time, including automatic DST adjustment.
I was hoping that might be the case, i just don't know where to start lol. I have another project i have been doing using stepper motors which is going well. For this project i have not been able to find a basic sketch i can work from.
I have been trying to find some basic sketches, but with no luck. Looking for different basic sketches i how i managed to do my last project and trying to learn along the way.
It might be a bad habbit to always look for some ready code, even for the simplest tasks. Try instead write the simple task yourself, from scratch. Well, "scratch" in Arduino IDE looks like this:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Get a feeling of writing yourself something, even if it is copying say a led blinking program. Type it instead of just ctrl+c ctrl+v.
Yes it is a good starting point.
How did you make your other stepper-motor-project work?
was it a very simple plain copy & paste and it did work?
or
did you modify the code?
Almost every hardware has a library for it to make programming easier.
After installing the library. Most of these libraries have an example-folder to get started.
Lookup the example-folder of the library and then try something.
It is pretty likely that you have questions. Just ask these questions this is how this arduino-forum is meant to work.
Please post some information how much you know right now about writing code. This will help to provide you with helpful information how to take the next step.
That makes no sense. Looks like the description from one of those eBay pages where you can select one of several quite different products with different capabilities. Without knowing which one you chose, we can't advise you on it.