Skip to main content

Posts

Showing posts with the label microcontroller

Matlab to C/C++ code development - Some learning points

Over the last few years, the engineers at the company have invested both their time and sleepless nights in formulating a process for the development of Machine learning algorithms that will satisfy real-time constraints with minimal RAM usage. This is quite a tall task as per default, that would force one to do their development directly in C language. Although that seems like the right choice, the downside is the direct correlation of the debugging time with algorithm complexity.  Such a time could have been rather used in optimizing the algorithm within the MATLAB environment which has excellent tools for the analysis, plotting and debugging. So it was decided to rather learn the Code generation process with the hope that future algorithm could be designed in a similar fashion without the hassle of the compiler-specific run-time issues. The development of this machine learning algorithm would eventually be implemented in a 32bit, 160Mhz speed, 260KB RAM microcontroll...

Setup ArduPilot flight modes with DX6 Gen 2

Hi, I've looked around the web to get an understanding the setup of the Ardupilot flight modes with a Spektrum DX6 2nd generation and there was none. So I decided to write this blog. The few things to consider when doing this: Please follow the instruction given on the ardupilot webpage . Have the Pixhawk hardware connected to Mission Planner (I have 1.3.50 - Copter V3.5.3)  Use the display bar in the Radio Calibration page as a guide while changing the rate pulse widths on your transmitter. I've used switch D to change the pulse width ranges on channel 5.

The Teensy beast - HILS phase of the project SOLVED

It's amazing how a continuous search at possibilities eventually leads to finding a "needle in a haystack". Introducing the Teensy 3.6 development. It a 32-bit Cortex M4 ARM core with (FPU) at a 1/6th of the price of the Pixhawk (The Pixhawk runs the same chip although has double the Flash memory). Granted, it doesn't have any sensors but man, that's find. Did I also mention that it works straight with arduino code. This means that I've upgraded to the most powerful MCU in the market at the same price as an Arduino Due . Wow! I overcame my shock by going to Robotics in Centurion and getting my hands on this dynamite. It can even run X-plane flight simulation controls in real-time communicating through the USB port! Ok enough ranting and raving! The point is now I can test the embedded algorithms on a similar ARM-based microcontroller as the Pixhawk and conclude the testing and validation up to HILS level with the sensors in the loop (while emulating th...

Raspberry Pi or Arduino Uno? One Simple Rule to Choose the Right Board

Here at  Make:  we see new, ingenious projects from our community every day. Many of these are made possible by the use of development boards. However, if you’re new to the subject, it can be confusing to parse out the differences between boards and the advantages of using one over another. We’ve created this super simple guide to help you get started. Then, when you’re ready check out  Arduino Uno  and  Raspberry Pi  Starter Kits, which come with all the goodies you need for your inaugural projects. Not sure you want all those peripherals yet? Start with the essentials: Grab the board of your choice and bring yourself up to speed with our  Getting Started With  series for  Arduino  and for  Raspberry Pi . Courtesy of  Tech Uni What is the difference between the two? An Arduino is a microcontroller motherboard. A microcontroller is a simple computer that can run one program at a time, over and ov...