Ok,
I'm attempting to create a hot wheels Drag Strip for my son for Christmas.
I'm hanging my head low and asking for help. I have an original sketch from a guy called Unexpected Maker. He's using two nanos and two HC-05 BT modules (Master, Slave) to communicate. IR modules for start and stop inputs and a button to start the sequence. I have everything wired exactly the same. I'm certain this is a programming issue as I can apply voltage to the reset button and I still do not get a reset. I'm certain the BT modules are working correctly because I can unplug one and the other loses its connection, I have verified master and slave are setup correctly. I did have to make a small program change to allow the sketch to verify. The OneButton.h library was not included. The Library I added is under #define SLAVE . I have little knowledge about this type of programming. I bought a dummies book but it'll only take you so far.
Also I should note this program has both Master, Slave. When uploading slave I'm just // commenting out master so that the sketch looks at slave. That is where i ran into my problem. When commenting out master I started getting an error about onebutton not being defined.
You should start but installing the Onebutton library. You can do this from the IDE using the library manager and searching for the library (it is there, I checked). That will at least get you past not being able to compile.
It would be useful to also include a link to the site where you found this project as background information.
Hey thank you.
I did add the library and got it to compile. That wasn't the issue I was needed help with, however thought it was important to add.
My issue is that my button is not working. I'm certain it is an issue with the sketch but like I said I am lacking experience.
gaines53:
" I did have to make a small program change to allow the sketch to verify. The OneButton.h library was not included. The Library I added is under #define SLAVE"
I suppose I should also correct this. By "verifying" the sketch I meant compile. I'm used to working with ladder logix programs.
gaines53:
I did have to make a small program change to allow the sketch to verify. The OneButton.h library was not included. The Library I added is under #define SLAVE .
I would suggest using the simple digital example to test the button. The sketch echoes the state of the switch to the serial monitor. This will allow you to at least verify the hardware connection works ok.