Oops this is left-over of old attempt to use ICP for the zero-crossing detector. Removed from everywhere, to avoid confusion.
Also commited your targets to the main branch. Tnx.
BTW: I think, it still good idea to clear ICF1 flag after changing sensing polarity, so I left it there.
Search found 529 matches
- Thu Feb 13, 2014 1:36 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
- Wed Feb 12, 2014 12:00 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Everything is unsigned, so should not be a case.
- Tue Feb 11, 2014 1:46 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
And if you disconnect PPM input? (no receiver). You can also try to add default handler to all interrupts, to see is there are some firing:
Something like this:
Something like this:
Code: Select all
ISR(BADISR_vect) {
while (1) {
DebugLEDToggle();
__delay_ms(1000);
}
}
- Mon Feb 10, 2014 9:03 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Better connect debug LEDs..
- Mon Feb 10, 2014 1:12 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
BTW: Looks like I have found problem. You need to change this: inline void Board_Init() { TIMSK = 0; // Timer1 TCCR1A = 0; TCCR1B |= _BV(CS11); /* div 8 clock prescaler */ PORTB = PORTB_INIT; DDRB = PORTB_DD; PORTC = PORTC_INIT; DDRC = PORTC_DD; PORTD = PORTD_INIT; DDRD = PORTD_DD; ACInit(); } to th...
- Mon Feb 10, 2014 12:56 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hmm.. That would be easiest explanation.. ;( But anyway, you can quickly try inverted capture: ISR(TIMER1_CAPT_vect) { uint16_t time = ICR1; uint8_t state = (TCCR1B & _BV(ICES1)); if (state) TCCR1B &= ~_BV(ICES1); else TCCR1B |= _BV(ICES1); TIFR = _BV(ICF1); rx_ppm_callback(time, !state); }
- Sun Feb 09, 2014 1:18 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
Maybe input inverted?
Maybe input inverted?
- Fri Feb 07, 2014 10:12 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
With avr-gcc default handler is "bad_interrupt" which is infinite loop.
With avr-gcc default handler is "bad_interrupt" which is infinite loop.
- Fri Feb 07, 2014 1:41 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi Randulf,
Why you enabling Overflow interrupt?
There are no handler for it..
Why you enabling Overflow interrupt?
Code: Select all
TIMSK |= (1 << TICIE1) | (1 << TOIE1); // Timer input capture interrupt enable, overflow enable
There are no handler for it..
- Thu Feb 06, 2014 10:00 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
You can take a look here:
https://code.google.com/p/wii-esc/sourc ... 32u4_int.h
Just adjust to atmega8.
Which you pretty much did.
You can take a look here:
https://code.google.com/p/wii-esc/sourc ... 32u4_int.h
Just adjust to atmega8.
Which you pretty much did.
- Thu Feb 06, 2014 5:52 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi Randulf,
Could you please test it? In case it works, I'll include it to the "trunk"
Could you please test it? In case it works, I'll include it to the "trunk"
- Wed Feb 05, 2014 2:33 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi, ..On() ..Off() macroses was using wrong ports.. //*************************************************************** //* For RCTimer NFS 45A all n-Channel FETs * //* Original fuses are -U lfuse:w:0x2F:m -U hfuse:w:0xCA:m * //* By Nils Hogberg * //****************************************************...
- Fri Jan 31, 2014 7:22 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi raulmd,
Do you have schematic for this esc?
Do you have schematic for this esc?
- Wed Mar 27, 2013 8:23 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi crashlander, in this procedure: void wait_for_power_on() { //wait_for(rx.rcp_start + US_TO_TICKS(cfg.rcp_deadband_us), rx.rcp_max, 15); int8_t cnt = 0; while (1) { uint16_t tmp = rx_get_frame(); if (tmp > rx.rcp_zero + US_TO_TICKS(cfg.rcp_deadband_us)) cnt++; else if (tmp < rx.rcp_zero - US_TO_TI...
- Sat Mar 16, 2013 10:25 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi crashlander,
How it looks like? Is it syncing to harmonic and continues rotation in same direction?
How it looks like? Is it syncing to harmonic and continues rotation in same direction?
- Tue Mar 12, 2013 3:41 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
RCP_START - full reverse RCP_FULL - full forward (RCP_START + RCP_FULL) / 2 - zero RCP_DEADBAND - deadband around zero.. To arm, you need to set throttle inside deadband. I have changed eeprom magic number, so GUI will work only if you load new config from file. All existing targets are supported. I...
- Tue Mar 12, 2013 2:02 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Yes, 0 means programmed.
- Tue Mar 12, 2013 1:10 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
@Hamburger
Check your fuses, CKOPT should be programmed.
Check your fuses, CKOPT should be programmed.
- Tue Mar 12, 2013 1:00 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi crashlander,
Currently not, but it was easy to do, so I have created brunch "wii-esc-ng-3d". Which works surprisenly well.. If you want to test it - you welcome.
regards,
ziss_dm
Currently not, but it was easy to do, so I have created brunch "wii-esc-ng-3d". Which works surprisenly well.. If you want to test it - you welcome.
regards,
ziss_dm
- Wed Feb 20, 2013 11:30 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
- Tue Feb 19, 2013 10:54 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
1) You need board with high speed fets on both sides of the H-bridge (all nFET boards)
2) Thiker wires, high C rating battery, etc..
2) Thiker wires, high C rating battery, etc..
- Tue Feb 19, 2013 7:44 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
I think, it is easier (and cheaper) to use nFET boards with comp. PWM
- Tue Feb 19, 2013 3:34 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi Manu, Not really(atleast not with this hardware and not with this control method), as in "Braking" mode you loose ability to track BEMF (no floating phase). That means after braking you do not know rotor position any more and you need to re-start the motor. Doing this dynamically would ...
- Sun Feb 17, 2013 11:17 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
This seems to be ok, with latest changes. The "downloaded" size is smaller because SVN automatically converts CR/LF to CR..
regards,
ziss_dm
Program: 4282 bytes (52.3% Full)
(.text + .data + .bootloader)
Data: 98 bytes (9.6% Full)
(.data + .bss + .noinit)
This seems to be ok, with latest changes. The "downloaded" size is smaller because SVN automatically converts CR/LF to CR..
regards,
ziss_dm
- Sun Feb 17, 2013 9:55 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Maybe i have to check that i point to your bin libraries within the wii_esc folder?
That would be good idea..
- Sat Feb 16, 2013 11:02 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi manu,
Is pre-compilled binary working?
regards,
ziss_dm
Is pre-compilled binary working?
regards,
ziss_dm
- Sun Jan 13, 2013 5:14 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi agressiva, You need avr-gcc (WinAVR) to build this project. I'm using latest official one. The easiest way to build: 1)Download Code::Blocks (in downloads) 2)Open project wii-esc-ng.cbp 3)Setup path to avr-gcc in Code::Blocks Aalternatively, you can build using make file: make -f Makefile.avr MCU...
- Fri Jan 11, 2013 3:17 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi agressiva, The changes are included in latest release, so I have removed test binary. Wiuthout oscilloscope, it is really hard to tell what is going on (and I still do not have such boards), but comp-pwm is defenetly hard on capacitor as a inductive kick-back is discharging throug it on every PWM...
- Thu Jan 10, 2013 9:17 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi agressiva,
Is it tp_nfet fw? And TowerPro with BL8003 FET drivers and all n-FETs?
Theoretically should work: http://forums.openpilot.org/topic/11561 ... ntry141323
regards,
ziss_dm
Is it tp_nfet fw? And TowerPro with BL8003 FET drivers and all n-FETs?
Theoretically should work: http://forums.openpilot.org/topic/11561 ... ntry141323
regards,
ziss_dm
- Thu Jan 10, 2013 1:38 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi Hamburger, That depends on your willinnes to be involved. Currently I do not have much time nor test rig for this, but I can setup brunch and create requred prototypes/stubs for governor/closed loop control. The FW is written in C, so it should be relativelly easy to create PI controller for RPM ...
- Tue Dec 18, 2012 12:32 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
@Hamburger
Just run something like this:
Just run something like this:
Code: Select all
avrdude -c arduino -P COM1 -b 115200 -p m8 -u -U hfuse:w:opt_noboot.hf:i
- Tue Dec 18, 2012 1:48 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi, I had to change the following because avr-objdump and avr-nm are not in my path Tnx, fixed that.. my TCHAIN and BOARD settings are specific for my layout only the idea is to pass them through parameters: make -f Makefile.avr TCHAIN=E:/\!Work/Unsorted/arduino-1.0/hardware/tools/avr/bin/ MCU=atmeg...
- Fri Dec 14, 2012 5:06 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi jy0933, Which type of break you referring to? There are couple of options around. 1) standard "plane" break - shorts the motor at zero throttle. Usefull for gliders, to reduce prop drag. 2) RC car regenerative - you can adjust "amount of break force". Usefull for cars. 3) Comp...
- Thu Dec 06, 2012 3:12 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi Sim, We have not finished discussion about EEPROM block. Could you please refresh my memory, what was a problem? Currently I'm converting phisical units to the internal representation on the load, so I can easily change it. But, what was a point? Another question would be: Is it ok to strip USBLi...
- Fri Nov 30, 2012 10:30 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi y0933, i'll try plastic prop see if there is any change Try without garbage bin under frame. But I do not think, that there are something to worry about. Yes, SDM makes noise at low power and near 100%, this is a price for higher resolution and higher efficiency. But again, under load other types...
- Fri Nov 30, 2012 6:17 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
BTW: Is it complimentary or low side PWM version?
- Fri Nov 30, 2012 3:41 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
This is normal that there are increased noise on low power, but in your case it looks like too much. There are lot of reasons for this: loose windings on the motor, winding short, frame resonance, etc..
For the reference this is my setup:
ESC: F20A
Motor: NTM 28-26A 1200kv
http://youtu.be/rCrXZJkY0RQ
This is normal that there are increased noise on low power, but in your case it looks like too much. There are lot of reasons for this: loose windings on the motor, winding short, frame resonance, etc..
For the reference this is my setup:
ESC: F20A
Motor: NTM 28-26A 1200kv
http://youtu.be/rCrXZJkY0RQ
- Fri Nov 30, 2012 1:16 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
http://www.youtube.com/watch?v=RP9WDSkrEFY
This video has been removed by the user.
Have you soldered back cap?
This video has been removed by the user.
Have you soldered back cap?
- Thu Nov 29, 2012 11:53 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
This ones:
If you want to switch-off safety, you can change:
relpace 15 to something smaller (1 will give you start after just 1 ppm frame).
regards,
ziss_dm
If you want to switch-off safety, you can change:
Code: Select all
void wait_for_power_on() {
wait_for(rx.rcp_start + US_TO_TICKS(cfg.rcp_deadband_us), rx.rcp_max, 15);
}
relpace 15 to something smaller (1 will give you start after just 1 ppm frame).
regards,
ziss_dm
- Thu Nov 29, 2012 10:30 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Try with FC, instead of RX.
- Thu Nov 29, 2012 6:38 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
I'll try to use 3s batt... the vid is with 2s battery ... But compare to stock.. it is still a bit slower..
I'll get back here after tried with 3s
Try with FC, instead of RX.
- Thu Nov 29, 2012 6:26 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
The latest WII-ESC-Flash v0.6 has ability to program hfuse (turn on/off bootloader support)
I had impression that when using WII-ESC-Flash tool it takes care of fuse (and other) bits.
The latest WII-ESC-Flash v0.6 has ability to program hfuse (turn on/off bootloader support)
- Thu Nov 29, 2012 5:21 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
the video i took was rx directly hooked up with esc 1) RX - 50hz, FC - 500hz with FC connected delay 10x shoter, which is almost unnoticable. 2) Most FC's has "armed" state. After FC is armed motors start spinning and never stops until you "disarm". just want to smooth that lag ...
- Thu Nov 29, 2012 4:47 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
If we are talking about MultiWii, the throttle never drops below MIN_THROTTLE, which should be configured to get stable Idle RPM. Attempt to stop motors in-flight would lead to crash in 90% of cases, with any ESC or ESC FW. This is because start of sensorles brushless motor is lenghthy trial-error p...
- Thu Nov 29, 2012 4:27 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi jy0933, Generally with multi-rotors, motors always running during the flight. (throttle never drops below MIN_THROTTLE, which should be configured to get stable Idle RPM) The lag you referring is safety feature, to prevent accidental motor startups. (re-connecting connectors, rebooting FC, etc..)...
- Sun Nov 25, 2012 11:46 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi,
@Hamburger:
The schematic: http://wii-esc.googlecode.com/svn/doc/S ... y-nFET.jpg
Using multimiter, you can find them checking connction between pin 19, 22, 23 of the MCU
@jy0933:
You can disable stick calibration in EEPROM block.
regards,
ziss_dm
@Hamburger:
The schematic: http://wii-esc.googlecode.com/svn/doc/S ... y-nFET.jpg
Using multimiter, you can find them checking connction between pin 19, 22, 23 of the MCU
@jy0933:
You can disable stick calibration in EEPROM block.
regards,
ziss_dm
- Fri Nov 23, 2012 7:08 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
so removing smd caps is not an option.
Use side-cutters
regards,
ziss_dm
- Wed Nov 21, 2012 4:51 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi, Generally, you need to modify fuses only in some cases: 1) To disable watchdog (if it if enabled by default) 2) To enable bootloader (if needed) 3) On boards without OSC, it is better to set brown out detection to 4.0v (as they are running on 16Mhz) The rest is depend on schematic and component'...
- Thu Nov 08, 2012 1:01 am
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
Hi, WiiESC not "bundled" with bootloader. That means you can use any bootloader of your choice. If you do not have off-the-shelf USBLinker it is easier to use AVRRootLoader as schematic is just one resistor with FTDI (published 1 or 2 pages before). Also Wii-ESC flash tool has support for ...
- Sun Nov 04, 2012 12:18 pm
- Forum: ESCs, propellers , servos and radios
- Topic: Alternative ESC firmware (reflashing)
- Replies: 640
- Views: 374242
Re: Alternative ESC firmware (reflashing)
It can be disabled in EEPROM config.
Basically all shipped configs, except "default" have this disabled.
Basically all shipped configs, except "default" have this disabled.