Comments (20)
I am not sure if this helps or not, but the tp_nfet firmware from SimonK works
well on these ESCs.
Original comment by [email protected]
on 6 Aug 2012 at 8:10
from wii-esc.
Ok. Just an FYI.. I validated that the config file Plush30A is not compatible
with the hobbywing (or others) 40A board. I have made changes to the config
file to make it compatible and will post back when I have it fixed.
Original comment by [email protected]
on 6 Aug 2012 at 9:23
from wii-esc.
Original comment by [email protected]
on 10 Aug 2012 at 12:34
Attachments:
from wii-esc.
Hi,
The Pentium40A.inc looks ok. The pFETS are inverted as they shold be.
But as I understand it still not working for you. What is the problem now?
Original comment by [email protected]
on 15 Aug 2012 at 3:57
from wii-esc.
Hello! Thanks for your reply. I am now able to get the three beep boot
sequence, but the motor does not spin up at all. I am using the pwm_fast_250
input config with an AfroI2C controller. I have validated that the PWM range is
correct coming from the AfroI2C.
I don't know much about the electronics of ESCs or Assembly, but I have a hunch
that there is a fundamental incompatibility in the core of wii-esc. I just
don't know what it is, but maybe it is something that is not being exposed via
the hardware config files. If I compare the Pentium40A config that I created to
the tp_nfet config file from SimonK's firmware, there are some macros that are
not used in the wii-esc firmware. Maybe those extra macros are in there because
of other differences SimonK found that needed to be abstracted up to the config
file...?
Let me know if I can help in any way. I can even mail you an ESC if you need me
to.
Thanks,
Adam
Original comment by [email protected]
on 15 Aug 2012 at 1:00
from wii-esc.
Hi,
For pwm_fast_250 you need input pulses between 800us and 1000us, to arm.
For pwm_fast_200 you need input pulses between 800us and 1100us, to arm.
Is AfroI2C configured to send pulses lower than 1000us? Can you try with normal
receiver?
I cannot test it my self, but it should be compatible. The config should be
same as Plush, except pFETs are inverted (which you already did).
Original comment by [email protected]
on 16 Aug 2012 at 12:09
from wii-esc.
Dude... if this works I am going to cry. :-D and after I have shed some tears,
I am going to send you some money. Couple more questions.
1. What about the AcInit, AcPhaseA, AcPhaseB and AcPhaseC? Those appear to be
different in the tp_nfet simonk firmware file. I am not sure what these do...
2. So both pwm_fast_250 and pwm_fast_200 BOTH require 800-1100us to arm? My
AfroI2C is configured with a range of 1000-2000us. So shouldn't 1000us be low
enough?
Thanks again.
Original comment by [email protected]
on 16 Aug 2012 at 1:24
from wii-esc.
Yes, you right. According to tp_nfet, you need:
#define mux_b 5 ; ADC5 phase input
#define mux_a 4 ; ADC4 phase input
pwm_fast_250: 800-1000us to arm
pwm_fast_200: 800-1100us to arm
So, in your case, flashing pwm_fast_200 should work without changes in AfroI2C.
Original comment by [email protected]
on 16 Aug 2012 at 1:44
from wii-esc.
Sweet. I will try that now. I have the mux integers defined properly, but I am
more concerned about those Macros. AcPhaseA, etc...
Original comment by [email protected]
on 16 Aug 2012 at 1:46
from wii-esc.
I think I will try copying the Macros directly from the tp_nfet config. Do you
know what those macros do?
Original comment by [email protected]
on 16 Aug 2012 at 1:51
from wii-esc.
Also, where is your donate button? :-)
Original comment by [email protected]
on 16 Aug 2012 at 1:52
from wii-esc.
comp_init AcInit
set_comp_phase_a AcPhaseA
set_comp_phase_b AcPhaseB
set_comp_phase_c AcPhaseC
But I'm using also helper macroses:
ACChannel <n> - set multiplexer channel to n
ACNormal - set comparator normal mode
ACMultiplexed - set comparator multiplexed mode
you can take a look definitions in common.inc.
copying the Macros directly from the tp_nfet config would be difficult, as they
are require passing temp register name as a parameter. So' you would need to
change it everywhere.
Original comment by [email protected]
on 16 Aug 2012 at 2:24
from wii-esc.
BTW: Found mistake in ACNormal macro:
http://code.google.com/p/wii-esc/source/detail?r=238
Original comment by [email protected]
on 16 Aug 2012 at 3:06
from wii-esc.
Ok. I just got done testing the file I am attaching to this comment. It
worked!!! I took the macro definitions from SimonK's firmware (mostly), with a
little tweak to make it work within wii-esc. If you want to, please feel free
to include this in the wiki and source control for others who might need it.
One thing that I did that you may want to fix is remove the DbugLed definition
which required a change in the core file that was referencing it.
Original comment by [email protected]
on 16 Aug 2012 at 3:14
Attachments:
from wii-esc.
Thank you so much. I have been bashing my head on a wall for a while now trying
to figure it out.
Original comment by [email protected]
on 16 Aug 2012 at 3:15
from wii-esc.
Donation sent. Thanks for the help.
Original comment by [email protected]
on 16 Aug 2012 at 3:55
from wii-esc.
Hi,
I have committed support for Pentium 40A. I had to make some changes, though:
1) BRAKE_PB - we need to turn on all nFETs
2) Added DbgLED - easier for now ;)
3) Changed AcPhase[x] macro to be in wii-esc style. ;) It will be easier to
change it in future.
If you can verify that it still works, we can close issue.
Tnx.
Original comment by [email protected]
on 16 Aug 2012 at 4:01
- Changed state: Fixed
from wii-esc.
Original comment by [email protected]
on 23 Aug 2012 at 4:19
- Changed state: Verified
from wii-esc.
I tested the firmware and it works well except that the throttle input is
inconsistent. What I mean is that I have eight identical escs all with the same
firmware but the motors don't start at the same pwm input. This is critical for
my Mikrokopter. Is there any way to do a live calibration like a standard esc?
Original comment by [email protected]
on 28 Aug 2012 at 2:13
from wii-esc.
Should I open a new issue for this?
Original comment by [email protected]
on 28 Aug 2012 at 2:15
from wii-esc.
Related Issues (15)
- Reduce chance of flase-positive ZC by reducing ZC window HOT 2
- Another attempt to linearize PWM HOT 4
- Improove aligment procedure. The angle between the stator and rotor magnetic fields must be in 90degΒ±30deg HOT 3
- BEMF sampling at the end of the PWM-off cycle HOT 2
- PWM still active in motor stop condition HOT 2
- Simplify HW configuration files HOT 2
- Code review request HOT 8
- Throttle Range Inconsistent - Pentium40A HOT 11
- Grinding noise on Turnigy 2217 HOT 9
- Compile error HOT 6
- reverse firmware HOT 5
- Unable to open project HOT 4
- ATmega48 based HK Redbrick HOT 1
- After flash ZTW12A with bs_nfet, OneShot and Bootloader via TurnigyLinker no Connect HOT 2
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 wii-esc.