Hi, my name is Paul and by trade I work in IT, specifically Microsoft SQL Server. I've been tinkering for a while with bits and pieces and I'm currently trying to automate my lounge curtains. I have had a first working test running a couple of days ago, which I've taken down, and am now looking to get it done properly. I'm using a couple of Nema17 motors, an A4988 driver and EspHome in Home Assistant.
@spe109 Welcome to the forum Paul. It sounds like you are really getting into it, keep us informed of your progress. If/when you need to post something start a new Topic in the appropriate forum/sub-forum.
Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting
@will Although it was a working version the 3d printed case is not quite right, slightly too small to fit in the Nema17 (I had to do some filling) and the wires were just dangling from a breadboard, the power supplies also dangling. It was a test to make sure the Nema17 had enough force to pull a curtain. I learned a lot from my initial design, so well worth doing. Now I'd like to change the design of the case, make it a little bigger and work out a position for the electronics, which also need an enclosure.
Ah, now I understand, thanks.
So it was more that the "packaging" was deficient than a problem with the electronics.
Experience is what you get when you don't get what you want.