soundanalogous / advancedfirmata Goto Github PK
View Code? Open in Web Editor NEWBuilds on StandardFirmata to add additional functionality.
Builds on StandardFirmata to add additional functionality.
Add acceleration and deceleration to step sequence.
Resources:
http://picprog.strongedge.net/step_prof/step-profile.html
http://www.atmel.com/dyn/resources/prod_documents/doc8017.pdf
http://fab.cba.mit.edu/classes/MIT/961.09/projects/i0/Stepper_Motor_Speed_Profile.pdf
The trick is figuring out how to do this without using a timer because timers are used by pwm, delay and servo. This leaves 2 unknown variables in the equations referenced in the resources above.
When trying to compile AdvancedFirmata in a fresh install of the Arduino IDE (Mac OS X, 1.0.5) I get the following error. My ~/libraries folder is empty and I can load the other provided Firmatas (StandardFirmata for example) just fine. What am I doing wrong? Thanks!
AdvancedFirmata.ino: In function 'void sysexCallback(byte, byte, byte*)':
AdvancedFirmata:561: error: 'class FirmataClass' has no member named 'write'
AdvancedFirmata:562: error: 'class FirmataClass' has no member named 'write'
This is tricky because the Arduino pulseIn implementation is blocking. Also how to create a pulse out without using a delay and when there are no more timers available?
This is an easy add to AdvancedFirmata because it wraps an existing Arduino core library.
https://github.com/firmata/protocol/blob/master/tone-proposal.md
Arduino 1.0.5 Compiling Error
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper::version()': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:397: multiple definition of
FirmataStepper::version()'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:397: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper::stepMotor(unsigned char, unsigned char)': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:336: multiple definition of
FirmataStepper::stepMotor(unsigned char, unsigned char)'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:336: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper::updateStepPosition()': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:311: multiple definition of
FirmataStepper::updateStepPosition()'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:311: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper::update()': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:221: multiple definition of
FirmataStepper::update()'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:221: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper::setStepsToMove(long, int, int, int)': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:118: multiple definition of
FirmataStepper::setStepsToMove(long, int, int, int)'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:118: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:77: multiple definition of
FirmataStepper::FirmataStepper(unsigned char, int, unsigned char, unsigned char, unsigned char, unsigned char)'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:77: first defined here
FirmataStepper\FirmataStepper.cpp.o: In function FirmataStepper': C:\Program Files\Arduino\libraries\FirmataStepper/FirmataStepper.cpp:77: multiple definition of
FirmataStepper::FirmataStepper(unsigned char, int, unsigned char, unsigned char, unsigned char, unsigned char)'
FirmataStepper.cpp.o:C:\Users\Pu\AppData\Local\Temp\build2519940040659431898.tmp/FirmataStepper.cpp:77: first defined here
Subject: Arduino Yun and node.js, a good read
After spending 2 weeks working through lots of challanges with Arduino Yun and Node.js, I put together a massive article with lots of source code to cover in depth Arduino Yun and Node.js.
I also provide a pre-built binary image that you can bun onto your own Micro SD (instruction included) for the perfect Yun / Node.js setup.
I developed a serial Watchdog (for when serial bridge doesn't connect), socket.io client using binary ws for the Yun, figured our node.js live remote debug and more...
I just had too many good things to not share it with everyone, so here it is, ENJOY and please comment:
https://github.com/born2net/mediaArduino
(PS sorry that has to open an issue, but no other way to post on GitHub).
Need to test with multiple stepper motors. So far have only tested with one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.