Search found 137 matches

by alex
Fri Jan 23, 2015 10:10 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

Good news: the sensor is working with my CF 1.0 thanks to Tobias' fix for issue #27. The problem was that I didn't update my sonar-mb1242 branch correctly due to my lack of experience with git. Accordingly Tobias' I2C2 interrupt fix never reached my CF. Thanks so much to everyone who contributed to...
by alex
Tue Jan 20, 2015 9:59 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

I've tested with your code an I think there has been some merge problems. The files i2croutines.c, i2croutines.h and nvic.c where not as they should. I have attached a patch so you can update them. Then the I2C2 bus should work again. git apply i2cfix.patch Ok thanks, Tobias. Now I'm sure I messed ...
by alex
Sat Jan 17, 2015 7:29 pm
Forum: Developer Discussions
Topic: CF2.0 Led ring expansion: how to program?
Replies: 7
Views: 6804

Re: CF2.0 Led ring expansion: how to program?

Yep I have a vast iOS dev experience so I will investigate how I can make the iOS client interact with the leds. I have yet to find a way to do some stable flying first - I had this for a couple weeks only and it's almost impossible with the iphone app. I'm hoping the crazy radio will solve this is...
by alex
Thu Jan 15, 2015 8:02 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

Isn't that exactly what we would expect since the MPU6050 isn't physically wired to the I2C2 bus? What was your intention? I would expect to see some failed communication showing up on the scope. No, nothing. I was trying to get hold of a mb1242 but they seem to be sold out everywhere. Would have m...
by alex
Mon Jan 12, 2015 7:29 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

Also make sure the UART isn't activated (ENABLE_UART) as it uses the same pins. Neither did I alter this setting nor do I know where to look for it. :roll: I've found our ultrasonic sensor but it is one of those that you send a pulse and measure the time, so no I2C. The start-stop condition you see...
by alex
Wed Jan 07, 2015 8:05 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

Have you called i2cdevInit(I2C2) anywhere? Yes, in stabilizerInit : void stabilizerInit(void) { if(isInit) return; motorsInit(); imu6Init(); sensfusion6Init(); controllerInit(); i2cdevInit(I2C2); mb1242Init(I2C2); rollRateDesired = 0; pitchRateDesired = 0; yawRateDesired = 0; xTaskCreate(stabilizer...
by alex
Tue Jan 06, 2015 9:13 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

As written in the post above it, a HC-SR04 ultrasonic sensor. It is very cheap and first tests have shown that it's quite accurate. The specs really are promising. The sensor's shape is much better than my MB1242 for mounting it under the CF. I should have had an eye on that before I bought it. :? ...
by alex
Sat Jan 03, 2015 11:15 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

I just ordered a LTC1754ES6-5 . Let's see how that works out :) What are you going to power with that thing? I've just pushed a fix for the I2c2 problems on Crazyflie 1.0. I've tested it with a freeIMU board connected to the i2c2 bus and it all looks good. I'm not sure how well it will work in a co...
by alex
Sun Nov 30, 2014 10:30 am
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

During Christmas holidays I'm going to connect the MB1242 to the copter's main I2C bus. Therefore I need to find some good soldering points on the PCB. If I rely on the I2C2 interface being fixed this year by the Bitcraze team, I'm gonna be disappointed even more, I think. :( Managed to print the ul...
by alex
Thu Nov 13, 2014 9:54 pm
Forum: Developer Discussions
Topic: [SOLVED] Selecting an ultrasonic sensor and interface
Replies: 71
Views: 6799453

Re: [Hover] Selecting an ultrasonic sensor and interface

Hey, got some news for you. I'm successfully running the ultrasonic sensor wired to a RN-Control V1.4 using I2C. The Crazyflie is used as a power supply only in order to achieve as practical conditions as possible. I stepped through every single bit on the I2C bus with a Rigol DS1102CD digital oscil...