Could be possible to use the ADC in free running mode?

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
sturgessb
Posts: 287
Joined: 25 April 2008, 6:34 AM
Location: Norwich, UK

Post by sturgessb »

For those of you that were interested, here is a short video demo of the ZX copter

http://www.ustream.tv/recorded/509806

This is as it stood a few days ago. Since then I have implemented a sonar minimum height and height hold (works up to 5m), compass for heading hold, and improved pitch / roll stability.

Some stats:
Main processor ZX-128ne (used for main sensor collection and flight code)
Support processor ZX-24n (used for PPM decoding and low priority sensors)

Main control loop is running at 450hz (gyros, angle estimation, flight calculations, motor control)
Second loop is running at 100hz (accelerometer data)
Third loop running as 40hz (Compass, RC input, link to ZX-24)
Fouth loop running at 20hz (Sonar, barometric)
Fifth loop running at 5hz (Serial Downlink)

Ill keep you posted how it goes.

Ben
mikep
Posts: 796
Joined: 24 September 2005, 15:54 PM

Post by mikep »

Very cool video Ben.

Getting the PID constants and implementation correct is probably the hardest bit. Always good to put a face to the name as well :)
Mike Perks
liam.zbasic
Posts: 163
Joined: 24 March 2008, 23:33 PM
Location: Southern California (Blue)

Post by liam.zbasic »

Excellent work. I'm also amazed that you are able to conduct your flight tests in the same place you cook, do dishes, do laundry and make videos. May I ask how much this project has cost you in materials (not time)? Thank you.

Regards,
P.
sturgessb
Posts: 287
Joined: 25 April 2008, 6:34 AM
Location: Norwich, UK

Post by sturgessb »

not much choice with the testing environment, are waiting to complete on a new property, which will mean proper workshop etc. Until then, its the kitchen!

To date I have spent around $3000 on the electronics side of things, although obviously a lot of that was for parts that turned out to be not quite right.

It's certainly not a cheap thing to try.

B
Post Reply