Search found 73 matches

by penpen77
Mon Oct 07, 2013 7:31 pm
Forum: Shields, boards and sensors
Topic: HC-SR04 and multiwii cirus SE v2.0
Replies: 2
Views: 994

Re: HC-SR04 and multiwii cirus SE v2.0

Actualy, you CAN'T use the generic echo/pulse sonar code with atmega328 or anything below atmega1280/2560, not enough available interrupt and/or it will kill the loop exec time due to time delay of trigger/echo response. The only possibility of using any echo/pulse sonar on atmega328/32u/analog is w...
by penpen77
Fri Sep 20, 2013 9:59 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

i'm not sure the code will work with 328 based arduino
by penpen77
Tue Sep 17, 2013 5:01 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

I don't use MWC anymore, so i don't have the code under my eyes, but from what i remember with each version of the code i've given here 1. Noisy /glitch just increase LPF. Default use a 6/4 integrator from previous reading at the same frequency than baro (1/5 exec time of main loop i think). You can...
by penpen77
Sat Jun 15, 2013 6:34 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

Sorry, i wasn't come here since several weeks

If you want only code lines to change, juste make a diff of files (btw, i dont remenber if mwc still on svn or switch to git, but both have diff tools/compare fonctionnality)
by penpen77
Sat Apr 13, 2013 11:29 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

this is the same code as before, nothing as changed, it's work as shown in video
by penpen77
Fri Apr 12, 2013 9:32 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

Yes, this is a (kind of) dead topic since none of questions about request for feature has been answered.... For now, this is just a fusion/stand alone alt hold usinh baro+sonar or sonar alone I've join the sketch i'm using, building and tuning are as described before in the thread. Beware of config....
by penpen77
Thu Dec 13, 2012 10:41 pm
Forum: Boards
Topic: Stellaris Cortex M4F (preorder for september, 4.99$)
Replies: 140
Views: 25382

Re: Stellaris Cortex M4F (preorder for september, 4.99$)

both but i don't connect adc when working on gfx/ah/stab and other pure math stuff for debugging and setup, data are provided to uart and as stellaris has usb host capability, i think i'll be implement some usb keyboard handler to config osd on the field instead of strange stick combo (or having a l...
by penpen77
Sat Dec 08, 2012 12:41 pm
Forum: Boards
Topic: Stellaris Cortex M4F (preorder for september, 4.99$)
Replies: 140
Views: 25382

Re: Stellaris Cortex M4F (preorder for september, 4.99$)

This is some test i'm doing to embbed osd and multiwii (airplane version only the moment) and make a tiny/cheap osd+rth capable platform
It use an lm1881

for now, i've got some issue with the fpu unit and uart (data loss and strange behavior with several uart ) but the osd part works
by penpen77
Sat Nov 24, 2012 10:08 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

you can use others pin, but in this case, you'll have to change the other parameters/defs SONAR_GEP_TriggerPin_xxx (bit shifting, interrupt, etc...). The DEFINE list in GENERIC_ECHO_PULSE is made to make this easy: refere to arduino 2560 pinout: 12 is PB6 (so shifting 6), 11 is pb5, pcint5 so pcint0...
by penpen77
Sat Nov 24, 2012 11:14 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

i'm using a crius for my test, the default def.h I left in the archive is made for crius pinout
by penpen77
Thu Nov 22, 2012 12:16 am
Forum: Boards
Topic: Stellaris Cortex M4F (preorder for september, 4.99$)
Replies: 140
Views: 25382

Re: Stellaris Cortex M4F (preorder for september, 4.99$)

a standard 10DOF 6050/5883/5611 cost around 25/35€ (bay,drotek,glb,dx, etc). the pcb shield is bigger, the "amount production" is smaller, so the cost can't be "smoothed" without a large batch, p&p and reflow machinery, it will require more time. i see 2 options: - a "du...
by penpen77
Wed Nov 21, 2012 11:28 pm
Forum: Boards
Topic: Stellaris Cortex M4F (preorder for september, 4.99$)
Replies: 140
Views: 25382

Re: Stellaris Cortex M4F (preorder for september, 4.99$)

is the imu booster pack available somewhere ? there isn't any infos on the url "aimatt.com" labeled on the board in the pics
by penpen77
Fri Nov 02, 2012 11:20 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

updated code to r1240 with sr04/dypme007/echo-trigger generic driver

be carefull, this is my current config.h, so check each define to adapt to your config

if you want to merge change, take care of crappy piece of code added to "emulate" Baro mode presence without baro
by penpen77
Mon Oct 29, 2012 5:52 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

for "tilting issue"

http://www.robot-electronics.co.uk/htm/sonar_faq.htm
http://www.robot-electronics.co.uk/htm/srf02tech.htm

by the way, it's just a tiny piece of code which is not driver dependant nor feature dependant, so, a #define with some blabla for saying "try, may not work" and that's all. No need to argue, let's looking for feature improvement
by penpen77
Mon Oct 29, 2012 5:46 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

there isn't (at last from what i know) any implementation for serial ultrasonic sensor. Most of serial/rs232/ttl sensor are from maxbotix and there aren't cheap....

for devantech serial, they all have i2c capabilities too if i'm right
by penpen77
Mon Oct 29, 2012 11:35 am
Forum: Software development
Topic: mobiDrone nano arduino OSD for MultiWii with PID config
Replies: 295
Views: 61696

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Is there a code size issue or something which could make that "TVout" library/class unusable ? (except pinout, which i think could be swapped to mobdirone hardware) I think TVout library should made more readable your osd code, the class is alike java/.net/ui Graphics object with some nice...
by penpen77
Fri Oct 26, 2012 5:27 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

this code is not longer used, it has been corrected
by penpen77
Thu Oct 25, 2012 5:51 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

just have a try on grass/sand/ground/strange_orange_rubber_ground_of_athletism_stadium and had good behavior with above code. I've pushed more P and I term since i hadn't thing above my head. Still "sleepy/lazy" to climb/react, but different nature of ground hadn't so much bad influence, o...
by penpen77
Thu Oct 25, 2012 4:04 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

I just had a try, with sonar alone and mixing with baro, even with 1/9 ratio, it's too much, we need raw values, absolutly it's on concret in my basement since it's a little bit too windy outside for now I've recorder with a keychain this time with the sr04 which is the cheapest avaible for those wh...
by penpen77
Thu Oct 25, 2012 10:33 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

tried on concrete floor, with hcsr 04 and srf08, raw reading wasn't at all the same.... may be at 10cm of the floor with ground multipath reflection, but at 1m and more, raw values aren't the same at all. And with tilting correction, readings became stable and precise even with tilt more than 30°/45...
by penpen77
Wed Oct 24, 2012 11:50 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

but before all of this, i think we should choose a goal for each point (at this time and as said above, there many feature impl possibility): for now, we have all sensor already impl in stable branch + echo/trigger generics with olaf code snippet (hcsr04, dyp me007, etc...), so we can work direcly o...
by penpen77
Wed Oct 24, 2012 11:18 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

arducopter use tilt correction so i think it worth a try

sonarAlt is in cm

but i've the strange feeling that there are several code impl/version mixed "into the wild"

depends of which version you're based but tilt correction is buggy with wrong conversion (rad_to_deg)
by penpen77
Wed Oct 24, 2012 2:35 pm
Forum: Software development
Topic: mobiDrone nano arduino OSD for MultiWii with PID config
Replies: 295
Views: 61696

Re: mobiDrone nano arduino OSD for MultiWii with PID config

shadow is done with dimming but a little thing which can be used to move quickly in this, without taking to much time could be just to refoactoring a little bit the code..... I never really understand the SPI/SPDR/VideoBuffer in arduino, so don't see my words as a critical (i'm the one who should be...
by penpen77
Wed Oct 24, 2012 1:56 pm
Forum: Software development
Topic: mobiDrone nano arduino OSD for MultiWii with PID config
Replies: 295
Views: 61696

Re: mobiDrone nano arduino OSD for MultiWii with PID config

is it to possible to impl new layout, more "readeable" ? or a simple way in code to move different element ? i've tried to change position, but it's very difficult to do it easily since all elements are "chained". In fpv, even with dimming, i've a lot of difficulties to read uppe...
by penpen77
Tue Oct 23, 2012 8:25 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

use baro at this time but for now, it's just a kind of "dirty" impl, like a baro alt with sonar precision at low alt like in arducopter or arducopterng but it can works without baro, with minor code adjustment but you're right in one way, sonar can't give alone the same functionnality than...
by penpen77
Tue Oct 23, 2012 7:55 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

I have just tried last impl of "getAltEstimation" during a little fpv session after office day, with hc-sr04 and more smoothing on readings but it became very uneffective. I think it's a wrong idea to oversmooth readings... raw and "crispy" values should be keept. You could see i...
by penpen77
Sat Oct 20, 2012 11:55 pm
Forum: Shields, boards and sensors
Topic: mwc fw on ardupilot hardware
Replies: 3
Views: 980

Re: mwc fw on ardupilot hardware

and what about ardupilot legacy board, 328 with mux shoud be a good plateform for mwii "airplane" code. The "passthrough" mode could be handled by the muxer, failsafe already working and "hard wiring" rc control from rx in case of malfunction
by penpen77
Wed Oct 17, 2012 5:44 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

Hi guys, I have spent a lot of time this weekend to play with sonar solutions... About implementation from penpen77. I have found our at least 2 main issues with this approach: a) it's requires to average only correct raw sonar data readings but not 9999 b) there was not workable mix from sonar to ...
by penpen77
Tue Oct 16, 2012 10:56 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

yep, mistake, wrong adaptation from apm in my work dir at the time of zipping. Use code snippet instead for bug-free/less
by penpen77
Tue Oct 16, 2012 9:03 pm
Forum: Software development
Topic: Sponsored software development
Replies: 34
Views: 3103

Re: Sponsored software development

bad idea, sponsored stuff shouldn't have this place here...
by penpen77
Tue Oct 16, 2012 1:03 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

yep, you need to use the code snippet of the topic, not the archive, i have mixed 2 version by mistake (current_dev and 2.1)
by penpen77
Tue Oct 09, 2012 11:11 pm
Forum: Software development
Topic: mobiDrone nano arduino OSD for MultiWii with PID config
Replies: 295
Views: 61696

Re: mobiDrone nano arduino OSD for MultiWii with PID config

is it normal that BAT1 and BAT2 only display decimal part ?

(all is well tuned, zero-ed everywhere is just that i've powered up only for screen capture)
by penpen77
Thu Sep 27, 2012 10:22 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

it was just testing values, i've archived my working dir "as is", it's not intented to be working out the box or using perfectly tuned constants
by penpen77
Wed Sep 26, 2012 7:34 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

indeed, that was my first impl, but it's doing some probs: - until copter armed, EstAlt value isn't correct... - using some OSD (mobidrone for example) firsts reading after startup are used for offset, so if waiting too long for setting barohome, incorrect value are used - if windy day, it's good to...
by penpen77
Tue Sep 25, 2012 9:14 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

EDIT: use code snippet instead full code, based on last build (r1129) althold with sonar/baro mixed works fine, tested on sr04, dypme007 and tinygps (i dont have i2c native devantech) current define are for crius/mega board, don't forget to enable once baro mode before arming to set "baro home...
by penpen77
Tue Sep 25, 2012 9:07 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

sr04 and simili works since several months.....
by penpen77
Mon Sep 17, 2012 11:19 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

updated code for new alt hold code (for MS561101BA) works fine (on pos hold and at low speed), for better result, perform your althold pid tuning around 50% of sonar/baro fusion altitude. at "high" speed, the baro-only EstAlt could increase if not wind-protected, and sonar/baro fusion coul...
by penpen77
Mon Sep 17, 2012 12:00 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1434377

Re: Altitude Hold improvement solution

tried new althold code with baro+sonar this weekend, works fine.

Sonar alone is a little bit dampeling, but sonar+baro fusion interval has a good behavior with same pid setting than baro only
by penpen77
Wed Sep 05, 2012 10:57 am
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

@crazyal

1.2/0.0/14, i've noticed playing more with D param has better effect than playing with P,I like other mode.

@magnetron

dyp-me007 works like sr04
by penpen77
Sat Sep 01, 2012 12:13 pm
Forum: Ideas
Topic: Attemp to integrate sonar (ultrasonic sensor)
Replies: 265
Views: 139958

Re: Attemp to integrate sonar (ultrasonic sensor)

i'm using this code for my sr04 sonar/baro alt mode, juste mixing both and altering "EstAlt" as in megapirate/arducopter. No tilt correction or advanced stuff, but works fine, alt hold logic isn't altered neither code for sonar device. With a good tuned Alt hold pids value, it's working pe...
by penpen77
Fri Aug 31, 2012 3:10 pm
Forum: Ideas
Topic: MIT's autonomous flight algorithm
Replies: 14
Views: 1865

Re: MIT's autonomous flight algorithm

arf, not a relatime SLAM so.... BTW, Hamburger made a good point, MWii should be splitted now, different module with different purpose, abstract/interface with other and a common i/o, com bus. Example: - Multicopter stability module, (3/6/9 dof, and baro/sonar) responsible of multi/rc - Navigation m...
by penpen77
Thu Aug 30, 2012 4:17 pm
Forum: Ideas
Topic: MIT's autonomous flight algorithm
Replies: 14
Views: 1865

Re: MIT's autonomous flight algorithm

they use intel atom as "brain" so i think it requiere a "little bit" more cpu than a 8bit avr can do ^_^ by the way, incoming portage on 32bit ARM with more memory and computation power could bring more cool stuff ! The interesting point is their SLAM (self location and mapping) ...
by penpen77
Thu Aug 30, 2012 10:43 am
Forum: MultiWii tweaking - flying experience
Topic: [Problem] Not taking off, just hops - SOLVED
Replies: 9
Views: 1441

Re: [Problem] Not taking off, just hops

v.i.b.r.a.t.i.o.n.s..... (had this problem, crius aiop, unbalanced prop and bad-centered prop adapter) verify with "heavy" lpf (20hz,10hz), if it take off, it's a vibration prob, if not, it's something else ^^ but, dont fly with 20/10 lpf..... the mpu6050 of crius is very sensitive, and to...
by penpen77
Sat Aug 25, 2012 1:00 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 463077

Re: GPS integration

Seems strange you constrain only x speed target value and not both x and y. What's the reason ?
by penpen77
Fri Aug 24, 2012 4:13 pm
Forum: Software development
Topic: Airplane mode
Replies: 512
Views: 90418

Re: Airplane mode

Is it possible to translate/porting mwii airplane code to ardupilot hardware (the legacy one) to have benefit of mux/failsafe ?

Will AP(L) pinout let that possible ? since servo input/ouput wiring is already set.
by penpen77
Sat Jul 21, 2012 11:06 am
Forum: Getting Started - MultiWii config and setup
Topic: Community check before buying my mwc quad?
Replies: 8
Views: 627

Re: Community check before buying my mwc quad?

summary (in my opinion, feel free to change/investigate) - Battery: more 'C', like 35C/40C, and buy 2 or 3 (first flight, you dont handle throttle and attitude very well, so many up-down-up-down-up, draw current quickly, 4/5min flight, and wait for charge bat again.... very frustrating ^_^ - Motor: ...
by penpen77
Fri Jul 20, 2012 10:45 pm
Forum: Getting Started - MultiWii config and setup
Topic: Community check before buying my mwc quad?
Replies: 8
Views: 627

Re: Community check before buying my mwc quad?

a little more 'C' in your lipo, better efficiency, more lifetime, etc... 35C/40C
by penpen77
Fri Jul 20, 2012 10:33 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 463077

Re: GPS integration

TermicOne : what is your quad size/KV/prop size and what pid values did you set ? I'm using the rctimer i2c/gps board and a mtk gps from a fried APM2, working perfectly, but my Position Hold is wayyyy too touchy, yoyo effect and crazy move, even with 9 sat, and i can't find how to tune correctly my ...