Kurtank
I know this isn't quite the best place for it to go, but it's the closest here.
To everyone here with experience with PICs, what have you done/seen? What are your plans/ideas? One of my ideas involves using a laser rangefinder with a PICAXE-14M/PIC16F684 to control an airburst shell. But I still have to find a compatible rangefinder. Also, I'd like to know if there's a PICAXE/Opcode converter, so PICAXE-created code (for, say, a PICAXE-14M) can be used on a factory-default PIC (the PIC16F684, which is the PICAXE-14M without the PICAXE bootstrapping code)?
What I'm asking you; What do you know, and what have you done?
Reply 0 0
fold3d
Haven't done anything major with PIC processor other than program it to make a robot move from point a to point b.
Idea I had was:
Build an RC Glider with photographic equipment, GPS, Gyro and some sort of computer processor, possibly a PIC.
You launch the aircraft using your RC, flick a switch and the processor takes control and flies it to certain way points and then takes photos. When its back in range, switch on your RC transmitter and take back control and land it.
Well that's the idea . . only need one more thing . . . the time
Cheers
Paul
Reply 0 0
atfav8r
TAM
Pretty good idea. It's been done before. Read up on the TAM (Trans Atlantic Model) here http://tam.plannet21.com/ Exact concept you describe. So, it's been done on gas....now it needs to be done with electric...
(probably has been, I just haven't read about it yet.)
Reply 0 0
fold3d
Yes that's correct atfav8r. I like the idea of doing this with an Electric and the fact that it would be a glider, I image I should be able to get significant range.
I think it would be a fun project
Reply 0 0
hammerhead74k
Well... I'm not using PICs, I'm using AVRs (I can program them in Xcode with GCC on my iMac), but....
The project I'm working on is a flight control computer (which is why I'm using a dx5e, and not a dx6i or dx7 - all the "thinking" happens on the plane, not in the radio). It's still in early development, but I am making progress. The present configuration is set up for 6 pilot input channels, 8 analog sensors, 12 servos, and has two serial ports for programming and expansion (SPI and a UART).
I'm looking at rate gyros (the chips themselves, not a gyro package like from e-sky or somebody), a hot-wire anemometer for airspeed, an ultrasonic distance measurement unit as an ground-referencing altimeter, hall-effect sensors on a vane for angle-of-attack, and a ground-contact switch for auto-activating the brakes/thrust reversers.
Just about any mixing function should be possible, based off of any set of variables (sensor or pilot input), including modulating the gain of one parameter off of another.
Reply 0 0
crossroads46
That sounds like a fun project hammerhead. What kind of experience do you have with microcontrollers, programming? I was thinking of doing something similar, but at least initially, not quite as advanced. I was going to make my own pitot tube for air-speed sensing and ignore the AoA. 1 tripple axis gyro, and 1, 2, or maybe even three tripple axis acclerometers. Eventaully I'd incorporate GPS for autonomous flights.
My experience with ultra-sonic range-finders has been a little iffy (especially over grass), so I wouldn't use them for anything but automatic landing gear depoyment/retraction, and even then I'm not sure how well they would work. Regardless, you're not going to get a range of more than a couple of meters out of them.
I'm not sure what processor I want to use though... I was thinking about the SX chips and the Atmel AVR... haven't decided yet. The last microcontroller I used was the MPC-555, a 32 bit processor runing the PowerPC instruction set. A little more power than is really necesary for this project (and money... at over 100 bones for just the chip :um.
Reply 0 0
hammerhead74k
I am by trade a Software Engineer, specializing on the Mac... I've been programming since I was 13 (I'm 32 now), when my 6th grade teacher gave me her old TRS-80 Coco model III (I actually still have it in the closet... somewhere under this pile of stuff!) I've been monkeying with microcontrollers on the bench for several years, but this is my first real full-up project with them...
My understanding of pitot tubes is that they don't work well at very low airspeed... which is why I was looking at hot-wires (also, you can - supposedly, I haven't tried *yet* - make one out of a christmas tree light bulb that you've taken the glass off of).
I intend for this to support high-alpha setups (like Dave's SU-35), which is why I care about AoA - I want the computer to automatically manage keeping the canards pointed the right way, as well as the transition from flaperons to spoilerons.
The ultrasonic distance measurement is intended for automatic sink rate control during touchdown; it only has to work well out to about a foot or so...
One of the major advantages of the AVR over the SX for this is that it's got a hardware 2-cycle multiply instruction; IIRC it ends up running at about 10 times as fast as doing a multiply in software on the SX...
Reply 0 0
crossroads46
I'm a recent college grad w/ a degree in computer science. In my first year of graduate school now, working in computer science and robotics. I've done some micro controllers in school (final project I made my RC stadium truck into a wall-following bot), but haven't done much since then. Looking to change that...
From what I've seen, the pitot tubes should work OK at low speed. All the one's I've seen done on the RC plane scale have a range between 0 and something in the triple digits w/ 1mph resolution. I can send you links if you're curious, but I agree that for your project with high-alpha, your solution is more appropriate. With a pitot tube fixed to the aircraft in high-alpha, you're not going to get a very accurate reading. For mine, I would just need to know when I'm approaching stall speed. Will you have to re-calibrate your anemometer each day you fly due to changes in temprature/humidity, etc...? I'd love to hear how it turns out.
Thanks for the tip on the AVR vs. SX. I've got a few data sheets on a couple of chips, but haven't looked through them in depth yet. Where do you get your chips from? Just get the samples direct from Atmel, or is there a distributer?
Thanks
Reply 0 0
hammerhead74k
Parts sources...
I get my AVRs from DigiKey (http://www.digikey.com/), along with most of the other electronics parts (ceramic resonators, voltage regulators, etc). Tools I usually get from Circuit Specialists (http://www.web-tronics.com/) - they're OK; not the greatest, but they are low-cost. The other stuff on my bench I got off of eBay...
Other sources of parts include:
New:
http://www.mouser.com/
http://www.jameco.com/
Surplus:
http://www.allelectronics.com/
http://www.goldmine-elec-products.com/
http://www.electronics123.com/
http://www.halted.com/ (there used to be a local store in Sacramento, and I was a regular shopper there, but they closed when the guy who ran it retired - now they only have the stores in the bay area)
http://www.apexelectronic.com/ (if you are ever in the area, it's really worth a trip to the store -- they've got more stuff then they'll ever get onto their website)...
http://www.weirdstuff.com/ (again, worth a trip - they'll also never get it all online)
I don't think I'm going to have to recalibrate the hot-wire; but much depends on the operating parameters I end up with...
Reply 0 0
David393
PIC Option
Depending on what the demands are of the system you are wanting to build, an ooPIC might be an option. I've used it in a robot I built... I used a rock-crawler RC chassis and have a sonar mounted on a servo on the front that rotates for object avoidance.
The nice thing about the ooPIC is that it has several pre-defined objects that you can use and configure together to create virtual circuits in order to multi-task.
You should have no trouble having a sonar response or other sensors activate servos or anything else you want.
This is a good site for information on the ooPIC: http://www.oopic.com
-David
Reply 0 0
Vanepico
I have built a servo slow module from a PIC 12f675
Across the pond devotee!
A 2 in 1 Heli & Plane combo pilot!
Airworthy aircraft: Eflite Seafury, Cassut Racer, Accipiter (vietnamese), Hirobo Lama, Multiplex Pico Cub, Belt CP helicopter
http://www.youtube.com/user/vanepico
Reply 0 0
hammerhead74k
I was under the impression that the ooPIC didn't have a hardware multiplier?
Also... the IDE for the AVR is the same one that I use for my other programming (Xcode)... which is one of the major reasons why (all else being equal) I prefer it.
Reply 0 0
Reply