Search found 27 matches

by jihlein
Sun Dec 21, 2014 3:38 am
Forum: Software
Topic: Cleanflight aka Multiwii port to STM32 F10x and F30x
Replies: 761
Views: 1571567

Re: Cleanflight aka Multiwii port to STM32 F10x and F30x

uses different algorithms, which lessen the effect of Looptime, and ignores the 'I' Now I'm not familiar with the PID algorithms used in Cleanflight, but this make no sense to me. So feel free to take this for what it's worth....... For the PID to function properly, the I and D terms are necessaril...
by jihlein
Sat Dec 20, 2014 9:44 pm
Forum: Software
Topic: Cleanflight aka Multiwii port to STM32 F10x and F30x
Replies: 761
Views: 1571567

Re: Cleanflight aka Multiwii port to STM32 F10x and F30x

The 'I' in the P,I,D's doesn't seem to have much effect, I'm only tuning with P, and,D. Set the pid's too high and they oscillate, warble, make funny noises,and whatever else you can think of. Too low, and the Angle won't hold. The behavior you describe is caused by not using any integral gain. In ...
by jihlein
Tue Nov 11, 2014 7:26 pm
Forum: Ideas
Topic: VTail Configuration - Possible Update
Replies: 11
Views: 5518

Re: VTail Configuration - Possible Update

Starting to look at v tail mixing again. I think there are two errors in the update presented, and fortunately, they sort of cancel each other out and things work as expected. At least for the 40 degree case....... The v tail thrust formula should really be: vTailThrust = cos(d2r(vTailAngle)) For th...
by jihlein
Wed Oct 29, 2014 1:10 am
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Regarding getting the external mag to work in my build, I had a severe case of stupid going on. The F4 I2C driver I use wants the mag address as 0x1E, the F3 I2C driver I have wants the mag address as 0x32. Forgot about that little detail. Changed the address in my F3 code to 0x32, and what do you k...
by jihlein
Wed Oct 08, 2014 1:05 am
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Okay, read your code some, see you are using the sysclk at 72 MHz. Looking over your timing register values, I see how you are getting to ~400 kHz clock, but from my understanding (which obviously isn't too good), the values for SDADEL and SCLDEL don't fall within the range specified in the referenc...
by jihlein
Wed Oct 08, 2014 12:29 am
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

My concern is the using the rx input pins on the Naze32Pro for I2C may be problematic because if I recall correctly, there's a resistor between the processor pin and the I/O pin. I know the driver works as written, at least on a STM32F3 Discovery with Flying F3 shield and the ST accel/mag combinatio...
by jihlein
Tue Oct 07, 2014 11:28 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Guess I'm confused (it's been that kind of a day...). Code shows PA9/PA10: #define I2C1_SCL_GPIO GPIOA #define I2C1_SCL_PIN GPIO_Pin_9 #define I2C1_SCL_PIN_SOURCE GPIO_PinSource9 #define I2C1_SCL_CLK_SOURCE RCC_AHBPeriph_GPIOA #define I2C1_SDA_GPIO GPIOA #define I2C1_SDA_PIN GPIO_Pin_10 #define I2C1...
by jihlein
Tue Oct 07, 2014 12:14 am
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Double post deleted.......
by jihlein
Tue Oct 07, 2014 12:13 am
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Has anyone successfully gotten I2C working over the STM32F3 PB6/PB7 pins on the Naze32Pro? I'm trying to talk to an external HMC5883 with no success. I've tried both hard and soft I2C routines, each with different, non working results. Hardware I2C does not respond at all. The start SCL and SDA wave...
by jihlein
Sun Sep 28, 2014 5:51 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

1)Short BOOT0 pin 2)Power up board 3)Start DFUse application If a DFU compatible device does not show up in the upper left corner of the DFUse window, I can only think of 1 or 2 things that would cause that. 1)Board is dead. I don't think this is your issue, because it sounds like your board is oper...
by jihlein
Thu Sep 25, 2014 1:07 pm
Forum: Boards
Topic: Naze32 hardware discussion thread
Replies: 3249
Views: 1376378

Re: Naze32 hardware discussion thread

I do all my sensor calibrations in the "sensor" frame, and apply them in sensor frame. The calibrated sensor values are then rotated into the body frame for use by the estimation and control algorithms. It's pretty straight forward for the gyro and mag, the accel gets a little complicated ...
by jihlein
Mon Jul 28, 2014 1:19 pm
Forum: Software
Topic: Handling of Magnetic Compass HMC5883, possibly others
Replies: 2
Views: 2080

Re: Handling of Magnetic Compass HMC5883, possibly others

I'm not familiar with the HK MultiWii Pro controller, nor the software you're running on it, so take the following for what it's worth...... This sounds like an issue with the HMC5883 scale factors and biases being incorrectly calculated, or not calculated at all. Without the proper scale factors an...
by jihlein
Fri Jul 25, 2014 1:11 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Unfortunately, the modified reset sequences on startup had no effect on the poor bias/scale factor accuracy issue. These two MPU6000 chips may be on the outer edge of the specs, plain and simple.
by jihlein
Thu Jul 24, 2014 1:16 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Thanks, I'll give it a try tonight and report back! But this leads me to wonder about Register 106, User Control. Bit 0, SIG_COND_RESET, is defined as follows: When set to 1, this bit resets the signal paths for all sensors (gyroscopes, accelerometers, and temperature sensor). This operation will al...
by jihlein
Wed Jul 23, 2014 5:07 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Unfortunately, I have no idea how such variations are possible from a single reel...


Me neither.....
by jihlein
Wed Jul 23, 2014 1:15 pm
Forum: Boards
Topic: Naze32Pro STMF3 help thread
Replies: 61
Views: 31641

Re: Naze32Pro STMF3 help thread

Curious as to how well some of you are seeing the MPU6000 accels work on Naze32Pro Rev2 boards. I have a Naze32Pro Rev1 and the MPU6000 is usable without applying any calibration routines. I have 2 Naze32Pro Rev2 boards that are really bad, they measure better than 11.5 MPS^2 just sitting on the ben...
by jihlein
Tue Jun 24, 2014 2:45 pm
Forum: Software
Topic: Baseflight aka multiwii port to stm32
Replies: 1036
Views: 2550492

Re: Baseflight aka multiwii port to stm32

Firmware could act as usb linker


This is a really neat idea. I may take a stab at it time permitting.
by jihlein
Thu Jun 19, 2014 1:34 pm
Forum: Software
Topic: Harakiri aka multiwii port to stm32
Replies: 1502
Views: 556612

Re: Harakiri aka multiwii port to stm32

I found the my NEO6 when mounted close to the FC board would perform terribly, low satellite count, low CNOs. From past experience, the low CNOs (around 30) was a flag that this wasn't going to work well at all. I added a ground plane to the antenna, and in the same mounting orientation, I now lock ...
by jihlein
Fri Jun 06, 2014 7:32 pm
Forum: Software
Topic: Cleanflight aka Multiwii port to STM32 F10x and F30x
Replies: 761
Views: 1571567

Re: Cleanflight aka Multiwii port to STM32 F10x and F30x

One other thing that is not so obvious, is that on the F3 and F4 versions, 2 spare hardware timers are used to compute the dt value for integrations in the 500 Hz and 100 Hz loops. All this is done in an attempt to keep loop timing as consistent as possible without moving to an RTOS, and keep the in...
by jihlein
Thu Jun 05, 2014 11:55 pm
Forum: Software
Topic: Cleanflight aka Multiwii port to STM32 F10x and F30x
Replies: 761
Views: 1571567

Re: Cleanflight aka Multiwii port to STM32 F10x and F30x

IMHO, I think there are a lot of valid reasons for using a CLI. The main one for me is that when developing/debugging, I add things for debug display regularly, then remove them. Constantly having to keep a GUI configuration program up to date and in sync with the main code is a pain, it's just more...
by jihlein
Sat Jul 13, 2013 3:00 pm
Forum: Boards
Topic: DYI Flight Controller based on timecop's STM32 mini r0
Replies: 23
Views: 11287

Re: DYI Flight Controller based on timecop's STM32 mini r0

I have my F3 code ported per the IO map. Leads me to a couple questions. 1)Does this new board use native STM32 USB, or does it still have a uart-usb bridge chip? If the bridge chip, which uart is it connected to? Hope it's the bridge chip - I don't have the STM32 F3 VCP working yet...... 2)That whi...
by jihlein
Fri Jul 12, 2013 1:37 pm
Forum: Boards
Topic: DYI Flight Controller based on timecop's STM32 mini r0
Replies: 23
Views: 11287

Re: DYI Flight Controller based on timecop's STM32 mini r0

I ran out of time on the baseFlightplus code with the F103 and I2C sensors. Never got around to doing non-blocking I2C. With SPI sensors and F303, it would work (I have a version running on the Discovery F3, with mixed I2C and SPI sensors). Let me look at the pinouts and see what it would take to co...
by jihlein
Fri Jul 12, 2013 1:07 pm
Forum: Boards
Topic: DYI Flight Controller based on timecop's STM32 mini r0
Replies: 23
Views: 11287

Re: DYI Flight Controller based on timecop's STM32 mini r0

STM32 + MPU6000 + HMC5983 + MS5611 all on SPI = done, but no software written for it.


Which STM32? this sounds like a great combination for the F3......

I can modify some code I have for this configuration real quick.
by jihlein
Mon Sep 17, 2012 1:08 pm
Forum: Boards
Topic: Naze32 hardware discussion thread
Replies: 3249
Views: 1376378

Re: Naze32 hardware discussion thread

This is the sort of behavior I got when using the 5volt supply, but just a thought have you tried to change the spektrum receiver setting in CLI, "Spektrum_hires" to 1? Worked set to zero for me but I was using a satellite off a 6200 DSM2 receiver. David, From looking at the satellite ser...
by jihlein
Mon Sep 17, 2012 4:45 am
Forum: Boards
Topic: Naze32 hardware discussion thread
Replies: 3249
Views: 1376378

Re: Naze32 hardware discussion thread

This gets more interesting. With either a DSM2 and DSMX satellite, it works perfectly if I turn on the FC board/Satellite first, followed by the TX. With the reverse power up sequence, it looks as if the satellite is not getting a valid signal. It, along with the TX must be powered down, and then th...
by jihlein
Sun Sep 16, 2012 7:36 pm
Forum: Boards
Topic: Naze32 hardware discussion thread
Replies: 3249
Views: 1376378

Re: Naze32 hardware discussion thread

Question for any Spektrum Satellite users: I can take a DSM2 satellite, and bind it to my TX, either with a receiver or via an Arduino sketch. I then hook it up to the Naze, powerup, and it works fine, once. At the next powerup, the Satellite goes back into bind mode. I've tried setting the GPIO inp...
by jihlein
Sat Sep 08, 2012 3:14 pm
Forum: Boards
Topic: Naze32 hardware discussion thread
Replies: 3249
Views: 1376378

Re: Naze32 hardware discussion thread

I finally upgraded my archaic radios systems, added a Spektrum module to my 20 some odd year old JR PCM10. Planning on using the satellite RX. Where's a good place to pull 3.3 volts off the board to power the satellite?