Showing posts with label stabilization system. Show all posts
Showing posts with label stabilization system. Show all posts

Monday, April 16, 2018

I'm not dead! Updates and teasers.

Radio breaking squelch Is this thing on? Oh good!
It's been a LONG time since the last update and that's my fault, apologies for the delays in posts but oh the things that have happened since the last one have been AWESOME.

New generation precision suntracker, printed variant
To start off, I have passed a year at the new job and it has been a whole freaking year of awesome times, some frustration with part of the program and then elation when finally it all worked together as intended. Developing a new high precision solar tracker from the ground up has been a massive challenge due to difficulties with getting the most critical part, the imaging Multi Object Tracking sensor that is also found in modern Wiimotes, working from just a datasheet and my admittedly terrible coding skills. Getting the driver working correctly really allowed the power and incredible value of a logic analyzer for debugging a system. On the plus side, once that was working the rest was not too much harder and I have obtained permission from PXI to open source my library once that is working so anyone can unlock the power of this wonderful sensor. Another happening here was my first field campaign with my system, destination Arizona State University to do final debugging and training of the team that will be taking it to the Amazon rain forest.

Tuesday, April 25, 2017

Q1 2017 Rocket active stabilization system update; Finally have working PID for positional control of a DC motor! New gear, livestreams and the first program sponsor!

After nearly 4 and a half months of late nights, caffeine fueled jam sessions, one livestream(more on that later!) and more frustration than anticipated I FINALLY figured out implementation of PID for positional control of a DC motor with an encoder. More details after the break including a breakdown of problems I ran into, some shiny response graphs and most importantly; SOURCE CODE!?!?!
Motor control testbed using TB6612FNG motor driver

Wednesday, August 17, 2016

Q3 2016 Rocket active stabilization system update, complete hardware redesign of fin drive system with bonus sketches and a needed disclaimer

The old and new designs, massive improvements to the overall design
Update time has rolled around again now that a good chunk of progress is completed on the Arduino based rocket stabilization system. This has taken a while since I've been busy with not only work but also getting the A+ certification in computer repair and completely reworking my current workstation. After much discussion with several other rocket tinkerers, the conclusion was reached that stresses on the servo spline itself would be quite considerable and may result in damage or inoperability. Based on force distribution I surmised that flanged bearings embedded in the system shroud tube would function as not only supports but also as smooth rotation points. With the challenge of a new fin drive train in mind, I set to brainstorming. My first thought was to use linkages connecting the servo to the actuation shaft, though it would increase the diameter of the system unless the servos were staggered which would also increase the overall height of the system. Stepper motors were considered, however as I was unable to find suitably sized units and the common 28byj-48 had too low precision and torque this too was eliminated from consideration. After those two ideas were discarded, it was relegated to the back burner while I had work. The breakthrough was about a week later, while browsing patents looking at missile fin drives I noticed an old Raytheon control segment used bevel gears to transfer the motion and that became the seed for the new design. 

Sunday, February 14, 2016

Q1 2016 Rocket active stabilization system update, now with fins, nose cone and a mockup

With 2016 well underway it's time for the first update on the state of the stabilization system!
First off, apologies for the massive delays this post has had, was originally slated for mid-Jan launch but between job hunting and other stuff I've been hitting delays and trouble at every turn. Since last semester ended on Dec 18th, I'd been going to TechShop pretty much every day until Jan 18th making massive leaps and bounds of progress along the way. The most obvious of progress is the completion of the demonstration mockup airframe which will be gone into more in-depth after the break. 
The system's current state on the demonstration mockup

Wednesday, November 18, 2015

Rocket active stabilization system debugging update


Debugging the system on a cheap logic analyzer clone (review coming up soon)
        Ever since I implemented the new control code this system has been plagued with a pair of bugs that frustrated me to no end which I have dubbed "Harlem Shake" and "Mr Freeze." The "Harlem Shake" bug occurs when the IMU outputs seemingly random YPR values suggesting that it is tumbling even when the sensor is kept perfectly still. "Mr Freeze" as the name suggests, is when the system locks up out of nowhere and refuses to respond unless reset which does not prevent the glitch manifesting. After mucking around with the code and a string of long nights with quite a bit of coffee trying to figure out what the heck was wrong with the system, I finally fixed the problem. The following is just inferences based on my limited knowledge at the moment, if anyone has a better theory I'd be glad to hear it. Reading the serial logs led me to believe that the freezing glitch was caused by a FIFO (First In First Out) overflow due to the appearance of that message in the terminal just before the system locked up. Initially, I had messed with the FIFO data speed configuration from 200Khz to 400Khz to no avail before inferring that the data was coming in at a much higher rate than it was being output, being a problem in library implementation. Using a logic analyzer had not showed anything anomalous in the I2C data bus which would have signaled a problem with either the wiring or packet structure. My assumption is that the transcoding of the data  internally was taking up too much processor power or was out of sync causing it to glitch thus causing the system to grind to a halt. This is a library-level issue that I'll be investigating and attempting to fix. Googling around proved library wonkiness to be the case and the fix was to increase the baudrate to the maximum of 115200. After applying this single line fix, the system ran for 10 hours straight without any bugs or freezing at all. I have no clue as to what causes the "Harlem Shake" glitch but it has not appeared since the freezing fix was applied so I'm not going to complain, though it has me curious as to what the core of the problem is.

Thursday, September 17, 2015

Hackaday DC event recap

Giving a talk to the packed room
As some of you might have seen, I recently attended the Hackaday DC event and gave a talk on the rocket stabilization system while there in addition to explanations and demonstrations to quite a few people that came by my table. Surprisingly, the Amazon AWS crew that was there took quite an interest in my project and gave advice on code upgrades for the stabilization system, namely dynamic control movement ranges dependent on velocity.

Thursday, April 30, 2015

Spring break TechShop progress

Near-final fin with correct blending
Over this recent spring break, I'd decided to forgo the archetypal partying of the Senior year and continue work on my projects. My primary objective was to redesign the fin so it could be used with the round metal servo horns for easier integration and sturdier mounting. The main issue I was having was the splines not printing due to the low resolution of the printer which meant the servos are unable to properly engage with the fin.

Friday, February 13, 2015

February rocket active stabilization system update

Stabilization system miniaturization
Due to school preventing me from spending days at TechShop to use their printers and CAD workstations (my school lacks a technical education program sadly and my computer is on OSX so I can't use Inventor on it until I figure out how to install windows on an external hard drive) I have not made much progress on the system as of late.

Monday, December 22, 2014

Christmas break TechShop Day 1 update

Test fit
First day back at TechShop after 3 months away due to the start of school soaking up the vast majority of my time and preventing me from going into DC every day. After arriving I immediately set to work on the new integration cans as the early prototypes are about ready to be phased out. Halfway through modeling the alpha I realize that I would not be able to slot in the middle segment due to it having the fittings on both the top and bottom, preventing the middle section from being able to slide into place.

Wednesday, December 10, 2014

Contest winners announced

Thank you for all 35 great names you have submitted, choosing from the available names has been very difficult. I have decided that I will choose 2 winners, each winner will receive one(1) Arduino Nano in their choice of FTDI or CH340G UART chipset. Shipment will be via eBay fulfillment and tracking numbers(if provided by seller) will be sent to your email/DM. I have also decided that the most relevant name deserves an award due to the contextual naming, Esven will be receiving some loot.
Winners are:
@indiealexh with "Isorropías" [ισορροπίας] (Greek translation is "Stability") 
@cineboxandrew with ASCII-1 (Ascent SCheme of Increased Insanity)
Honorable mentions:
@Esven_the_drake with "Dr. Wobbles: or how I learned to stop worrying and love control theory" and "Bang-Bang Controller" [Most relevant name award]
@ibuildrockets with "Steve (because there's not enough rockets called Steve)" and  "ARSE (Active Rocket Stabilization Experiment)" [Steve award]
@fgarciasit with "Not-Wiggly-Bit" and "Wiggly-Bit" [Most whimsical name award]
@J_vandie with SOLA (Stable One Legged Antelope) [Hilarious award]
Thanks for making this contest amazing, I will definitely be doing more in the future! 

Monday, November 10, 2014

Early November active stabilization system [Codename ARGuS] update!

Finally got back on the stabilization system development track! I finished the major school project and the replacement MPU-6050s arrived. The code recently got a MAJOR upgrade thanks to Bogdan Markovik who sent me the modified MPU6050 test code that has PWM drivers in addition to full roll, pitch and yaw control as well as fully configurable degrees of freedom for each axis. Bogdan has been assisting me with everything from code to new sensor possibilities and I hope to continue working with him as the project continues. I will be eventually moving away from the MPU-6050 as it can be kind of iffy with angles sometimes and calibration is rather annoying as I'd rather not risk the very costly high power rocket airframe to loss of structural integrity due to the sensor getting confused and shaking the rocket to bits. Thanksgiving break is coming up soon and that means my probable return to TechShop and further rapid development of the system! In addition to Bogdan helping out with the system, Sagar, the original coder of the very basic code that drove the first prototypes, is a frequenter of the same TechShop and will be working on refining his own system. Video of the new code in action is right after the break.

Friday, November 7, 2014

Name my rocket and stabilization system and win an Arduino Nano [CONTEST]

Just a heads up about a contest I am running currently. Name my rocket (currently codenamed TA-1 [Test article 1]) and the stabilization system (currently codenamed ARGuS [Arduino Rocket Guidance System]). Contest ends at 12:00 EST on November 27 2014, and winner will be selected on December 10 2014 and the prize of one(1) Arduino Nano (FT232RL or CH340G at the winners request). Entries are highly welcome and I hope to see several very unique names for the rocket and system soon! :D. One entry per person, twitter account not required as an email address will suffice. If winner does not respond within 48 hours a runner up will be chosen. Form is after the break

Sunday, October 26, 2014

Slight delay due to fried parts, drop test update

I will be delayed in the development of the system on the code side due to the loss of my MPU-6050. The magic blue smoke of failure made a surprise appearance yesterday. I connected it to the 5V pin of the Arduino and suddenly wisps of smoke wafted past my screen as the power LED dimmed and powered off. I tested the temperature of the components and found the voltage regulator to be at fault. I did not over voltage it as it was rated to 5V. Likely the component was either faulty or it might have been a low quality wafer. The replacement components will be arriving in a few weeks (they have to get here from the opposite side of the planet) so until then I will be working on the physical structure of the drop test module for the test before the end of the year. Currently my objective is to secure a location from which to drop the unit from as so it can get up to the proper airspeed for the fins to come into play and control the fall of the unit. Initially I had called the local university as they have tall buildings which the town I live in does not (aside from the precinct which will not let me drop things off their roof). The administrator I talked to was extremely helpful and asked around as to wether or not I would be able to use their facilities. I was unable to use the facilities due to their insurance policies and the fact that the roof membranes are rather fragile, however he did give me several other places to ask which will hopefully allow me to test this system.

Tuesday, October 21, 2014

Update on active stabilization system [Apologies for hiatus]

 //Back again with another update! Many apologies for the extended hiatus, school is quite hectic with it being my final year and the heavier workload of AP Physics and trying to maintain a relatively good GPA in addition to some other unrelated things going on that weighs rather heavily on my time, thanks for your understanding.

Back in the beginning of September I had started work on taking a prototype shield (these) and soldering the circuits on the back using standard hook up wire and converting it into a guidance shield for easier demonstration purposes and to minimize the rats nest of loose wires hanging out all over the place. This increased the durability of the entire system but hit a major hardware snag when it did not work as it did on the breadboard.   The issue was it started moving the servos a single tiny skip then shutting the whole system down. What was happening is that the servos were drawing far too much current for the 5V pin and the Arduino shut down to protect itself as it thought it was short circuiting, not an I2C bus issue as I first surmised. I figured it out at last earlier this week, when I used an additional power supply for the servos (lots of power required to move 4 of them simultaneously). This fixed the biggest hardware problems I was having with a minimal amount of changes required to my circuitry (will need only an additional regulator) and no major changes to the code (will be moving the servo pins to PWM next revision). When you encounter an issue, first thing to check is for shorts, then to see if something else has gone wrong such as a misplaced connection or a solderblob jumped terminal that should not be connected. 

Shield top, not so great wire layout

Sunday, September 7, 2014

Stabilization system development slowing down(temporarily)

Hey there, Sorry about the rather long hiatus. School has started up and it not only is using up the vast majority of my free time but also it has removed my ability to frequent TechShop which is where most of my work is done from designing to 3D printing. My school does issue laptops with the Autodesk Suite installed, I will be requesting issuance of a computer so work can continue on the system. My school does not, however, have a 3D printer but oddly enough the middle school does. I am investigation wether or not I can book time on their machine. In return I would give a lecture and presentation to hopefully get the students excited about STEM careers and technology in general. My younger brother is the vice-president of the STEM club so he might be able to help create a line of communication and a possible partnership. Blog posts will be few and far between for a while, but when Thanksgiving and Christmas roll around they will be picking back up in frequency as I will be back at the TechShop again.

Per Audacia Ad Astra
Arsenio Dev

Thursday, August 28, 2014

Fin development

Evolution of fin design
Fin development is one of the hardest parts of designing and building a stabilization system in my experience. It has to be aerodynamically sound, servo compatible and not break when initial liftoff forces kick in.

Integration can V1 completed

Finished printing the integration can. It is based around the modified upper retaining plate that was designed so long ago.
Fin can design

Wednesday, August 20, 2014

Preliminary fin printing, lessons learned.

Yesterday I moved the fin into preliminary 3D printing. Initial print was flat on the print bed, apparently the support structure caused it to warp and the layers stacked strangely. Vertical printing worked a heck of a lot better! Also reprinted the baseplates to the correct size and spacing of servos.

Tuesday, August 12, 2014

Adding on to code for opposite fin pair drive, fixing a MAJOR problem

Today I decided to fix the issue of opposite servo pairs actuating in opposite directions which would result in a uncontrolled spin and subsequent destruction of airframe. It only took a few modifications totaling in 10 additional lines of code. This site was extremely helpful in explaining the servo drive code for opposite servo pairs.

Null1.write(valNull);

Obfuscated = valNull;

Null2.write(180-valNull);

Obfuscated = valNull;


What this does is take the opposite servo and drive it 180 degrees in the opposite direction of the reference servo(1)[Yes I censored the code because this is ITAR regulated, Deal with it. If you really do want to take a look at my code, you will have to prove you are based in the US and sign a waiver that transfers all responsibility for what you may do with my code to you].



Thursday, August 7, 2014

Working on the fins

Started work on the servo-actuated fins today, Simple extrudes and lofts based around a standard servo arm, will print these before the end deadline