Comments (4)
hey! did you checked the pins from the board to the arduino? the motor are in the right side (forward to you?)
from splitflap.
I've gotten one batch of motors that turned the opposite direction for whatever reason. These things are so cheap and I think manufactured by a bunch of different companies that you tend to get slightly different products from different vendors. That said, you can change the direction in code fairly easily by reversing the elements of the step_pattern
array in splitflap_module.h:
Another thing to keep in mind is that there are two different gear ratios I've seen in motors, as mentioned on the Motor Info wiki page, so you may need to change the _GEAR_RATIO_INPUT
and _GEAR_RATIO_OUTPUT
values as described in the comment here:
The non-integer 63.684:1 gear ratio seems to be much more common in the 5V version of motors, so you may want to check for that as well if the motor doesn't seem to be aligned right after several full revolutions.
And one question out of curiosity - is the order of wires on your motor connectors Red, Orange, Yellow, Pink, Blue?
from splitflap.
Thanks, reversing the step_pattern
did the job.
const uint8_t step_pattern[] = {
MOT_PHASE_D | MOT_PHASE_A,
MOT_PHASE_C | MOT_PHASE_D,
MOT_PHASE_B | MOT_PHASE_C,
MOT_PHASE_A | MOT_PHASE_B,
};
Didn't have to touch gear ratio. And yes, colors are in the order you mentioned :)
from splitflap.
👍 Going to change the title of this issue to make it a feature request for adding a direction toggle to the code. It really should be easier to flip the direction than reversing an array.
from splitflap.
Related Issues (20)
- Replace TPL7407L with ULN2003A in Chainlink Driver BOM for now HOT 1
- Sensor PCB improvements
- KiCad 6 migration
- Help HOT 3
- Loose spool HOT 1
- Chainlink: Magnet check HOT 3
- Arduino Not Working HOT 2
- News Headlines from a API? HOT 1
- Run Chainlink Standalone on the ESP32
- task_wdt: Aborting HOT 3
- Letter horizontal misalignement in generate_fonts.py HOT 1
- HI sir HOT 1
- ImportError: cannot import name 'MutableSequence' from 'collections' HOT 4
- Loopback ERROR. Set output 0 but read incorrect value at input 0 HOT 2
- Check orientation of JST connectors in placement file
- Use ESP32 without Chainlink with up to 3 modules HOT 1
- LILYGO ESP32 doesn't show up as device despite drivers on MacBook with USC-C ports HOT 8
- Install the motor inside the spool
- How to make flaps using a series of images
- How are flaps cut professionally?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from splitflap.