This entry was posted
on Sunday, May 30th, 2010 at 02:59 and is filed under .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Hi kevin, i followed your schematic diagram but instead of using 2N2222 PnP Transistors i use MPS d2396 transistor. i copy your code and upload it but i has an error, is says:
sketch_feb09b:1: error: expected constructor, destructor, or type conversion before ‘Motor’
sketch_feb09b.cpp: In function ‘void setup()’:
sketch_feb09b:80: error: ‘motorReset’ was not declared in this scope
can you help me with this? what could be my possible mistake?
@Mark, Remove the motorReset function in the void function. I forgot to remove it when I published the source code. I got no more error when testing it. I also remove it the shown code. Did you still get constructor error? Which version of Arduino software do you use?
October 20th, 2010 at 17:36
it helps me so much to control a stepper..awesome..thanks.
February 8th, 2011 at 20:52
Hi kevin, i followed your schematic diagram but instead of using 2N2222 PnP Transistors i use MPS d2396 transistor. i copy your code and upload it but i has an error, is says:
sketch_feb09b:1: error: expected constructor, destructor, or type conversion before ‘Motor’
sketch_feb09b.cpp: In function ‘void setup()’:
sketch_feb09b:80: error: ‘motorReset’ was not declared in this scope
can you help me with this? what could be my possible mistake?
thanks…
February 9th, 2011 at 10:18
@Mark, Remove the motorReset function in the void function. I forgot to remove it when I published the source code. I got no more error when testing it. I also remove it the shown code. Did you still get constructor error? Which version of Arduino software do you use?