Category: Electronics

mikroATC Concept – an Air Traffic Control System for Model Airplanes

By , April 25, 2012 9:00 am

This is a concept design for a handheld air traffic control system for model airplanes. This project is designed to allow a small handheld device to track the flight path of multiple model airplanes at a flying field. The mikroATC firmware can display either a vector map or aerial mosaic image tiles of the flying site. You can navigate the map view using the controlpad buttons.

In the YouTube video the flight pattern shown was created by the built-in mikroATC simulator routine.

The display code supports tracking multiple model airplanes at the same time. Each model airplane that is tracked has its own unique ID, display name, and telemetry struct data. This demo is powered by a MikroElektronika MMB board with a Microchip dsPic33 P33FJ256GP710A MCU and the mikromedia gaming shield.

The source code is not available for download as it is still in development.

I am currently developing the protocols for the wireless telemetry link using mikroC Pro for dsPIC. I still haven't decided on the final data modem to use for the project. It doesn't help that there seems to be a new and exciting RF modem coming to market every day!

I am reusing a lot of source code for this project from several previous experiments I did on creating a Mac based FPV / UAV Ground Station.

Here I'm using a mikromeda board to test the prototype GUI for mikroATC.

Here I'm using a mikromeda board to test the prototype GUI for mikroATC.

This is a photo of mikroATC using an aerial photomosaic image as the map background.

This is a photo of mikroATC using an aerial photomosaic image as the map background.

This is the vector graphics version of the map display.

This is the vector graphics version of the map display.

Continue reading 'mikroATC Concept – an Air Traffic Control System for Model Airplanes'»

Setting up a UDP based network serial port on a Linksys WRT54GS router.

By , March 3, 2012 6:18 pm

Introduction

This is part 2 of a tutorial I wrote on using network serial ports on a Linksys router. In part 2 of this tutorial I am going to show how to get a UDP based network serial port running on your Linksys WRT54GS dd-wrt powered router.

This is an animation of netcat receiving a Locosys GPS NMEA datastream via UDP.

This is an animation of netcat receiving a Locosys GPS NMEA datastream via UDP.

The nice thing about Linksys WRT54GS routers is that you can get them for about $25 on eBay. You need to check the model number to make sure it has enough ram to run the full version (standard generic) of dd-wrt and have plenty of memory available to create a JFFS storage partition. You can check out the details and specs of your router model on the dd-wrt router database.

You need to start by following the all the steps on my first blog post to get a working TCP based serial link before you try this tutorial. Part 2 of this tutorial also expects you to have created the JFFS partition and installed the custom build of netcat from the first tutorial. Also, you need to confirm that you are able to remotely connect by TCP to the serial port on your Linksys router and read data from the port.

For this tutorial my Linksys WRT54GS router already has the 10 pin 0.1" serial port header connector soldered onto the circuit board and the router is running dd-wrt with a local IP address of 192.168.1.30

The Linksys WRT54GS router has two serial ports. One of the serial ports is easy to use and the other serial port is tied up with the serial console on the router.

Continue reading 'Setting up a UDP based network serial port on a Linksys WRT54GS router.'»

CHDK Motion Detect Plus Script

By , February 26, 2012 11:19 pm

Version 0.1 Released Feb 26, 2012

This is a screen capture of the CHDK Motion Detect Plus script in action.

This is a screen capture of the CHDK Motion Detect Plus script in action.

I created a new CHDK motion detection script called "Motion Detect Plus" to take repetitive shots with motion detection.

This Motion Detect Plus script adds a repetitive shot feature to the standard CHDK "motion.lua" script. This is useful for compiling a motion time-lapse sequence using motion detection to trigger the photos instead of a traditional intervalometer.

The script is called motionP.lua and should work with most cameras that support CHDK.

You can download the CHDK Motion Detect Plus script here.

Continue reading 'CHDK Motion Detect Plus Script'»

Reindenting C Source Code Files With Notepad++

By , February 19, 2012 11:24 am
MikroC indented code

MikroC indented code

When you are working with source code it is nice to have the code properly indented. You can automatically reformat your unindented C / C++ files in Notepad++ to have proper indentation using the TextFX and NppAutoIndent plugins.

When using the mikroC compiler it is best to have your indentation done using 2 spaces instead of the tab character. For this task it is handy to have Notepad++ automatically convert the tab characters into spaces.

Continue reading 'Reindenting C Source Code Files With Notepad++'»

Exploring the 2012 Winter Warmup RetroChallenge 2nd Place Prize

By , February 14, 2012 10:39 pm
An awesome package arrived in the mail today!

An awesome package arrived in the mail today!

Today I had a delightful parcel arrive in the mail - my prize from the 2012 Winter Warmup RetroChallenge. The gift was sent all the way from Scotland by Royal Mail and arrived in West Dover in only 10 days. The prize was a PSION series 5 PDA that was generously donated by Dale ( wgoodf ). Thanks Dale!

This was my first time using a PSION PDA so I really appreciated Dale's tip about the battery hatch being located behind the hinge on the back. Without that tip I'm sure it would have taken me ages to find it.

The PDA has a touch sensitive greyscale screen with a green coloured backlight, a foldout keyboard, a built-in microphone and speaker, and a stylus. The PSION 5 comes with a few apps such as a word processor, a spreadsheet program, a database program, a dictionary and thesaurus, a day-timer, scientific calculator, communications program, an audio recorder, and a sketching program. The side of the PSION PDA has a CF card slot that makes it easy to transfer documents onto the PDA from your desktop computer.

Here I turned on the PSION Series 5 PDA for the first time.

Here I turned on the PSION Series 5 PDA for the first time.

Here is a photo displayed on the PSION PDA.

Here is a photo displayed on the PSION PDA.

Continue reading 'Exploring the 2012 Winter Warmup RetroChallenge 2nd Place Prize'»

Mikromedia PIC32 3D Accelerometer Demo

By , February 7, 2012 11:31 am

I created this demo to show a real-time 3D view of the ADXL345 accelerometer data using the mikromedia PIC32 board from MikroElektronika.

The onscreen numbers are the tilt in degrees. The 3D axis view compass shows the orientation of the X, Y, and Z axes. The red line is the X axis, the green line is for the Y axis, and the blue line is the Z axis.

In the demo the blue (Z axis) line always tries to point upright.

The 3D engine is based upon the code from my PIC Interactive 3D Wireframe Rendering Engine and dsPIC 3D engine. The 3D Accelerometer Demo firmware was written in MikroC Pro for PIC32.

This firmware requires a MikroMMB for PIC32 board revision 1.10

You can download the 3D Accelerometer Demo firmware from libstock.com

mikroMMB 3D Accelerometer Demo

mikroMMB 3D Accelerometer Demo