All Posts (11086)

Sort by

Interfacing MATLAB and Arduino

Hi friends!I have just found and tested a Blockset that interfaces MATLAB/SIMULINK and Arduino. You may find this at:http://www.mathworks.com/matlabcentral/fileexchange/24675-arduino-targetI highly suggest this program since it offers rapid prototyping capabilities to the famous and cheap arduino. The guys have build a block that interfaces with the Real Time Workshop of MATLAB and have also implemented C functions for all arduino operations (analog in, out, serial read/write etc.). Despite the fact that the code is obviously bigger one can gain advantage from the quick and abstract way of programming that simulink offers. It is a good work!Happy coding!
Read more…
3D Robotics

Does open source undermine innovation?

Krzysztof "Chris" Bosak made some important and interesting points regarding the effect of open source on the overall health of the industry in a comment on another thread yesterday, and I thought they deserved to be discussed more fully (although there are many good comments in that thread, and I'd encourage you to check out that, too). So I'll give them their own thread, starting with my own thoughts. First, here are some key points from Krzysztof's post: "Marketing that you can make Ardupilot for $25, $50, $100 is like making the others look like the monsters of greed, while declaring the work of software developer is worth NULL, while not necessarily leading to the creation of competitive product in the long term." All this has one effect: creates artificially crafted virtual reference point for price,that is used to dramatically weaken the public perception or the makers of complex electronics, without even making the makers of cheap solutions incredibly rich. At the end there is no progress, as the advance of open source is usually quickly swamped by absence of professional regression testing and all the things nobody would do for free." At the same time, I noticed a New York Times article today that suggest that almost nobody has found a successful business model for open source. Together, these raise the question of whether open source does more harm than good to innovation, and whether it will ultimately lead to a sustainable industrial model for consumers and developers alike. Needless to say, I believe that the open source development model, while not perfect, is the best one for overall innovation. But Krzysztof raises some valid concerns, which I'll tackle one by one: 1) Claims by open source developers about features and pricing tend to be unrealistic and serve to kill demand for higher-priced commercial products. I think there's some truth to this. Because open source development is done, by definition, in public, there is a lot of discussion about the broad ambitions of the project in the early stages, both to attract participation and to define the broad scope of the project. Not everything an open source project sets out to do is ultimately achieved, as the developers get into the hard work of executing. In contrast, commercial projects are usually developed in private and only revealed when the feature set is pretty much confirmed. The consequence of this is that the entry of an ambitious open source project can "freeze the market" while people wait to see if they can deliver. This is not good for the more cautious commercial players in that space. As for pricing, open source hardware projects tend to be on the far low end, due to a general philosophy (which I share) not to charge for intellectual property. Our own policy is to charge 2.6 times the cost of the hardware (this allows one 40% margin for us and another 40% margin for our retail partners), but some other open source hardware companies charge just 1.5x cost. It's very hard for those who charge for intellectual property to compete with these prices. 2) Open source tends to "de-monitize" a market, eliminating the potential for anyone to make money. In the short term, this can certainly seem to be the case. But if you believe in demand elasticity, as I do, you would expect the lower price to vastly increase demand, growing the market for all. So it's a tradeoff between high margins and high volume. In the case of ArduPilot, where the core board costs just $25 (something Krzysztof objects to, because it sets a consumer expectation that autopilots should be very cheap), we have sold about 2,000 boards this year, which makes it the best-selling amateur-level autopilot in the world by a wide margin. Although nobody make much money from those boards, the economic value around all the other parts you need to create an functioning autopilot is significant. Say there are now 500 complete ArduPilot systems out there now. That's about $800,000 in total spending (between us and our partners). Assume total margins (between wholesale and retail) are around 50%, that means $400,000 of profit in the first year. I suspect that's more than any of the commercial autopilot companies in this space can claim. Because you're charging for "atoms", not bits, open source hardware can be profitable in the way that open source software cannot, because the customer relationship starts with the assumption of paying for something. 3) Open source can't create products of equal quality to closed source, because nobody's getting rich. I think that Firefox, Linux and MySQL users would disagree with this, as would I. It's true that many open source project never achieve professional-quality polish, but that's mostly an issue of poor project management and leadership. I think you only have to look at the work HappyKillmore did on the ArduPilot configuration utility, or how Mike Black improved our GCS to see this: I'd argue that both are better than any of the ground station and configuration utilities from the commercial players in our space (and some, including Flexipilot, don't have groundstations at all). Note that these contributions were made not because someone was getting paid, but because the contributors had their own reasons to want better software. And because we set an open source standard, they chose to share their work so that others could build on it. So, to sum up: I understand why commercial developers dislike the entry of an open source project into their market and hope it will fail. But the trend lines are clear on this one: open source is here to stay and is spreading, mostly because it leads to more, cheaper products faster. ArduPilot, for example. went from concept to maturity (with the 2.5 code, now in the hands of beta testers) in a year, including a full suite of supporting tools. There is no commercial autopilot that has come close to that speed of development. And as the DIY Drones community grows and our tools of group development improve, we are extending that to a host of new products created by the members here. To hire this many engineers would be ruinous, but by creating a community of shared interest and a culture of collaboration, we can do so at almost no cost at all. It's really quite magical. Can commercial companies compete with this? I think they can, by offering more "plug and play" solutions, as Krzysztof has done with EasyUAV. Don't try to sell expensive apples to compete with our cheap apples; instead, sell oranges, with shiny bows on top. There's a market for both, and I think commercial developers would do well to find ways to do things that open source can't or don't do well, rather than just wishing that we'd go away.
Read more…

Outback Challenge - Who's up for a run??

So some time has passed, and I have a nagging in the back of my mind - why couldn't we field an Outback Challenge Team? We are already working on several projects, and combined we have a PILE of UAS time in the air. We could even purpose-design the entire system; airframe, autopilot, all of it from ongoing projects or designs here on DIYDRONES. I have no doubt we could raise a little money and could field a competitive team. I know we are spread all over the world, and that this is all OpenSource...but what better way to prove that this type of collaboration really can produce world-class results.Sooo...who's in?? Seriously, I'm in - and looking for compatriats!
Read more…
We are developing a unique, patented VTOL [Vertical Take-Off & Landing], UAV [Unmanned Aerial Vehicle] specifically targeted at urban, mountainous and maritime environments. Full details of the concept and business case can be found in a slide presentation under the SlideShare section of my LinkedIn profile… http://www.linkedin.com/in/ashleycbryant. There is also a video which can again be accessed from my LinkedIn profile or from You Tube with the following url… https://www.youtube.com/watch?v=4mmFas3jsgIWe secured a high level of interest from the UK MOD on this exciting concept. However, the devastating effects of the credit crunch have impacted the UK governments’ ability to further invest in this technology at present. As a consequence, we are therefore looking to license this technology and/or partner with a larger industry player. If you have any thoughts therefore as to where we should be directing our efforts for future project funding and any advice on key investor contacts who may have an interest investing in this technology, whether government or commercial, you views and advice would be appreciated.
Read more…
3D Robotics

ArduIMU+ V2 on sale ($99)!

ArduIMU+ V2 (flat version) is now priced at $99, which is $30 less than its orginal price. It was already the cheapest IMU/AHRS on the market, but no there's no excuse not to get one (or more!) to integrate into your own projects. The current version now has the high-pass filter removed, which was reducing the effeciency of the DCM code in earlier versions--so it's now even better! This is an unbeatable deal ;-)
Read more…
3D Robotics

Dealing with spammers on DIY Drones

Folks, you may have seen that the price of DIY Drones' increasing traffic and Page Rank is that the spammers are now targetting us pretty regularily. As a result, I've had to turn on moderation for blog posts. That means that when you post, it won't show up until a moderator (there are a couple dozen of them) approves it. Hopefully, that will always be within an hour. Sorry for the inconvinence! (This doesn't affect the discussion forum, which the spammers don't seem to target)
Read more…

THIS WEEK IN AEROSPACE

BATTLE OF THE C328

So fabricated this board to see if the wrapping wire & radio interference was making the C328 unreliable. It writes all the control codes for the C328 to make it output continuous JPEGs.

Sadly, it's no more reliable than the previous methods. The C328 needs exact baud rates. It can't convert the 115740 from a PIC into 115200. The set baudrate command isn't very reliable either.You're looking at spending tons of money on a crazy 14.7456Mhz crystal or sending all codes including ACKs over XBees. XBees seem to do exact baud rates.

In the end, got rid of the airborne microprocessors & just passed the XBees directly to the C328. Reduced their baud rate to 57600 & increased the C328 package size to 384. The trick is to send data slow enough to not overload the XBees & send the largest packages possible before the C328 crashes. This gives 7 seconds per frame, slightly faster than 115200 & 128 byte packages.The ground XBee is locking up from packet collisions. It needs frequent power cycles. If by some miracle taxes only go up 4% next year, we might have enough dough for crazy crystals.This is our C328 software. It does everything from full control on the ground to full control on the airframe.video.tarTHE MARCY MANEUVERTo conserve battery power, it's basically a 3m/s descent to 33m, 1m/s descent to 10m, & 0.5m/s to ground. The 33m transition lets you descend into your downwash without smashing into the ground. This was the 1st flight using it, a very low nose pitch caused the radio to drop out at a certain high altitude, followed by execution of the Marcy Maneuver to quickly get back down.

Here's the radio graph.

Here's the altitude showing the tapering at 33m.XBEE DIVERSITY BUSTED

Tried making an XBee diversity system. Fortunately it didn't cost anything.

Mocked up with switching circuits.

Switcher thrown in the ground station.

Ground station with dual XBees.

Aircraft with dual XBees.

The switcher. It must use 2N2222 transistors, not 2N3904.Unfortunately, it was a total failure. Each switching circuit worked when tested separately with 1 XBee. With all 4 XBees connected, nothing worked. It also had other problems. It was a ton of extra electronics, wires, stuff that can break. It should really be done on the main board instead of another breakout board. It probably needed another voltage regulator.Even though both XBees were on different frequencies, they probably detected enough power on the channels to back off. There could also be crosstalk in our UART multiplexer.Another problem is to be most effective, each transmitter would need 2 receivers rotated at 90deg, bringing the hardware to 8 Xbees. Since our problem isn't fuselage obstruction but antenna polarity, you probably don't need diversity as much as turnstile antennas, but this requires a quadrature hybrid.Time to "back off" of diversity & look at antenna placement or alternative radios. Merely keeping the antenna unobstructed by anything including foam may be enough.Here is our diversity switcher firmware.diversity.tarGOODBYE XBEETook a roundabout path, but finally got those MRF49XA's to work.

The transmitter.

The receiver.

They do indeed reach all the way across the apartment atleast. These were intended as single chip radio modems for an indoorcopter & super cheap XBee replacements, hopefully without the lockupproblems.The trick is to copy the reference software & ignore the datasheet. Thegame is all about setting a low enough baud rate & a high enough SPIrate so the FIFO's are kept up to date. If the transmit FIFO empties,it transmits 0x00. If the receive FIFO overflows, you drop bytes.The rate at which it fills & empties FIFOs is determined by the baudrate register, DRSREG. Both receiver & transmitter need the same baudrate.All communication can be done with just the SPI interface, ignoring theINT, FINT, FSK pins that the demo uses.To make it run fast, you have to use the extra pins in addition to SPI.Lowering the FSK pin causes SPI to read directly from the receive FIFOinstead of the register memory. The alternative to the FSK pin isreading the RXFIFOREG register.You also need the FINT & the INT pins to know if the receive FIFO hasdata. The alternative to the FINT & INT pins is polling the STSREGregister.It has some odd tricks like how all the registers are 16 bits framed byCS pulses, but for the TXBREG register you can write bytes indefinitelyin a single CS pulse & those bytes are transmitted.It's designed for packet communication. It scans the incoming signalfor a 2 byte start code. Then it begins filling the receieve FIFO withthe incoming signal, including the start code, until you reset the startcode scanner. You can also scan the entire incoming signal yourself.When no transmitter is on, it outputs noise in the FIFO.With pure SPI, no interrupt lines, 6 MIPS microprocessors, & wrapping wire, got 60kbps out of them.This is our firmware, which is supposed to run on the same chip as the flight controller.mrf49xa.tarMORE EXTREME ALTITUDEDid several pirouettes at a very high altitude in a secret country whereit's allowed. These were demos of high altitude capability butpirouetting video is not the reason for doing it. It's for gettingbetter images of M.M. world headquarters.This was higher altitude coverage of the area around M.M's dishes but notas high as the previous video. Made a point of documenting thisland before it was completely developed.

Some secret shots from a secret location.

Read more…
3D Robotics

Arduino in the Wall Street Journal

Cool WSJ coverage of our chosen platform, which has won the open source hardware stakes so far. Excerpt: "The Arduino represents an early entrant in the emerging open-source hardware movement, which like Linux and other open-source software projects is driven by the belief that allowing duplication is a better way to spur innovation than keeping designs under lock and key. Its success suggests that the open-source model could provide a new way for manufacturers to develop and improve upon products. The main producer of the Arduino is Smart Projects Snc, based in the tiny town of Scarmagno, Italy. This year, the two-person firm is on track to sell at least 60,000 of the microcontrollers, which retail for at least $30 a piece, up from 34,000 last year. Owner Gianluca Martino, an electrical engineer, has had to contract out much of the production to keep up with growth."
Read more…
3D Robotics
A couple new GPS shields for Arduino have just come on the market. The first is the Sparkfun GPS shield. It's a basic shield, which allows other shields to be stacked on it. No code is provided, although you can use ArduPilot code for our GPS parser. It comes with an EM406 connector, so you can use either the EM406 or the uBlox5 with our adapter. $16.95 The second is a new version (1.1) of the AdaFruit GPS shield with SD-card logger. This one improves on the original version with a better level shifter for the SD card, which should make it comptible with more cards. It's highly recommended that you use this with a Atmega328-based Arduino, rather that the Atmega168, since the limited memory in the Atmega168 makes it difficult to add any code but the most basic GPS logging. With the Atmega328, you can simultaneously log other data, such as other sensors. Also designed for the EM406 or the uBlox with our adapter. $19.95
Read more…
3D Robotics

Open Hardware Camp in London on Dec 4

ArduPilot and Paparazzi folks in the UK may be interested in attending this Open Hardware Camp. From Adafruit: "OpenBusiness is planning for 40Fires in partnership with Nesta a conference on Open Hardware on the 4th of December. The conference is an opportunity to edcuate engineers, tinkerers and designers alike on Open Hardware, a growing frontier in the field of innovation. It is also a platform for experts of Open Hardware to exchange ideas and solutions to further improve upon the workings of Open Hardware. Open Hardware works under the same framework as Open Source Software. The design is open the the public, where a virtual community of contributors could modify or build upon the existing design. Some existing projects will be showcased throughout the conference to give a basic gist of how Open Hardware functions. "
Read more…
3D Robotics
The deadline for the current T3 contest (break the Stanford UAV altitude record) is Sunday the 30th, and there's no better way to use your Thanksgiving days off (if you're in the US) than to enter. We already have a number of people who have broken the record (including, just today, Mark Griffin) and they'll all get prizes, with the top prize going to the highest altitude. Going forward, the T3 contests will be six weeks, not four, to allow for vagaries of weather and people's available flying time.
Read more…
OKThe first working firmware for OSD to display raw data from Ardupilot seems to work now .This firmware should also work with ArduIMU - but I had no chance to check it - I have not arduIMU - I hope Paul will do this .The main problem for me - is that I do not understand well how actually ardupilot works .At summer Jordi tryed to made me an expalanations but i lose all that emails :( , hard to say but I have not enought information about ardupilot and his way of work (lastly I had no time as the main reason of my incompetence) .What are exactly all this data means ? :!!!LAT:50017380,LON:20002444,SPD:19.00,CRT:0.00,AL T:0,ALH:0,CRS:8.00,BER:185,WPN:0,DST:1933,BTV:12.45,***+++ASP:0,THH:85,RLL:60,PCH:-60,***+++ASP:0,THH:85,RLL:60,PCH:-60,***+++ASP:0,THH:85,RLL:60,PCH:-60,***+++ASP:0,THH:85,RLL:60,PCH:-60,***+++ASP:0,THH:85,RLL:60,PCH:-60,***and when ardupilot is ready to fly - how it save his home position ? I need this for display - also can be nice one more info about SAT quantity .As any of you gentelmens , know how the ardu works and what represent all this data for - please let me explain (exept DST, ALT, SPD PTH RLL) - that I suppose to already know .here is the screen shot :uvs091125_001_169.gifSome more immpressions can be read and firmware can be dowloaded here - http://www.rcgroups.com/forums/showpost.php?p=13667448&postcount=294
Read more…
Developer
Some details you must remember:-Your solder skills must be advance or medium-advance to attempt this.-If you try to do it with your razor remember that you will void your warranty with SparkFun.-The same with ArduIMU, if you can't do it i will for you (free of charge).-Not all the ArduIMU's flats have high pass filters, please double check. Check if the HP resistors are already gone.To remove the capacitors and the resistors is pretty easy. First try to set the highest temp possible in your iron, then just apply heat in any of the side of the capacitor/resistors, the heat will spread in both ends melting the soldering in both sides, then just push it carefully. Try not to apply to much pressure or you may blow away the pad. I recommend to practice with the resistors first (the black ones), because if you blow away the pad it really doesn't matter (are not needed anyway), then try later with the capacitors (the brown ones), very, very carefully.Now you must make a bridge in the capacitor pads. There's many ways to it, use any wire or piece of metal to make the bridge and apply soldering to keep it there. I used breadboard cable.The next hi-res pictures indicates which components you must remove, the red arrows are the resistors and the yellow/green arrows are the capacitors. Good luck!

Read more…