Quantcast
Channel: ad hocumentation • n. fast documentation of ideas and solutions.
Browsing all 72 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Low-cost motor control by displaying coloured shapes on a phone or PC screen

Smart phones pack a lot of features (battery, display, sensors, audio i/o, wireless internet connectivity, computing power, etc) into a tiny, convenient, inexpensive package. A smart phone therefore...

View Article


Image may be NSFW.
Clik here to view.

Installing Microchip XC16 in CrunchBang Linux

XC16 is Microchip’s C compiler for the 16-bit dsPIC microcontrollers (PIC24, dsPIC30F, dsPIC33). I sometimes need to use it when I’m working in a live session in CrunchBang Linux. First download the...

View Article


Image may be NSFW.
Clik here to view.

Simple Phaser Framework example – Flappy Words

I spent some time this week playing Aoife Crowley’s Flappy Bod game (my top score = 8). I was really impressed by the simplicity of the Phaser Framework which it runs on, so I decided to try it out for...

View Article

Image may be NSFW.
Clik here to view.

8-channel PWM with the MSP430G2553

Last week, I spent a bit of time working out how to generate PWM for servo control using the MSP430G2553. It took me a couple of hours to work it out, but worked well once I got it going. Today, I’ve...

View Article

Image may be NSFW.
Clik here to view.

Three PWM outputs with three different frequencies using the dsPIC30F4011...

Arising out of an interesting online discussion with Jaime Mora in the Costa Rica Institute of Technology, I wrote this example program to show how three PWM outputs, each with a different frequency,...

View Article


Image may be NSFW.
Clik here to view.

Using SendInput to type unicode characters

I received a query from reader Partha D about generating unicode keystrokes using the SendInput function in Windows. As I understand it, Partha wants to generate one or more unicode keystrokes when a...

View Article

Image may be NSFW.
Clik here to view.

Fractal variations using Python

Every once in a while, I spend an hour or two playing with code to generate fractal images. I find these patterns intriguing and the process of working with them can make for a great workout in complex...

View Article

Image may be NSFW.
Clik here to view.

Faster Mandelbrot image generation using numpy in Python

# # fractal.py - Mandelbrot image generation using numpy # Written by Ted Burke - last updated 2-11-2014 # import numpy # Define image size and region of the complex plane w,h = 1280,1280 remin,remax...

View Article


Image may be NSFW.
Clik here to view.

Using a dsPIC30F4011 to generating 4 PWM signals with equal duty cycles but...

In a recent comment on one of my blog posts, Saptarshi De posed an interesting problem: How can the dsPIC30F4011 be used to generate four PWM signals of equal (but variable) duty cycle at 90 degree...

View Article


Image may be NSFW.
Clik here to view.

Very simple Python / Tkinter GUI to send selected keystrokes via serial port

Following a query from Naomi Dickerson, I was playing around with my SerialSend program, which I often use for sending arbitrary bytes or characters to a connected microcontroller circuit. Sometimes,...

View Article

Image may be NSFW.
Clik here to view.

Generating antiphase PWM signals with the dsPIC30F4011

I frequently receive queries from people who are using a dsPIC microcontroller to control power electronics of some kind, such as in an inverter, a voltage converter, or similar. Many of these queries...

View Article

Image may be NSFW.
Clik here to view.

RoboSlam @ Dublin Maker – only two days away!

batchloaf:Looking forward to Dublin Maker on Saturday in Trinity! Entry is free and all are welcome. Our stand will be the one where humans are getting tricked into building a robot army. Originally...

View Article

Image may be NSFW.
Clik here to view.

Simple 2-channel hardware PWM example for the MSP430G2452 microcontroller

// // 2-channel hardware PWM example for MSP430G2452 // Written by Ted Burke - last updated 2-11-2015 // #include <msp430.h> int main( void ) { // Watchdog timer WDTCTL = WDTPW + WDTHOLD; //...

View Article


Image may be NSFW.
Clik here to view.

What I’m working on right now…

I’ve been experimenting with creating fractal images using iterating functions of the form where . Without getting into all the details right now, within each frame of the animation every pixel...

View Article

Image may be NSFW.
Clik here to view.

Article 0

# # vary_ab.py - Written by Ted Burke, last updated 18-1-2016 # import subprocess import math centre = 0 + 0j # complex value at centre of image w,h = 400,400 # image width and height pxw = 0.02 #...

View Article


Image may be NSFW.
Clik here to view.

Julia Set Explorer

In the past, writing simple programs to generate fractal images is something I have found myself returning to over and over again. I’ve done it so many times that I can probably write a Mandelbrot Set...

View Article

Image may be NSFW.
Clik here to view.

C or Python? Comparison of execution time for Mandelbrot image generation

Because I’ve been generating a lot of fractal images recently, I’ve found myself spending quite a bit of time sitting around waiting for programs I’ve written to finish long repetitive calculations. In...

View Article


Image may be NSFW.
Clik here to view.

Example code from presentation: Ways of Seeing Julia Sets

I gave a presentation at yesterday’s DIT School of Mathematical Sciences lunchtime research seminar titled Ways of Seeing Julia Sets: Visualizing the forces that shape fractal Julia sets. This was the...

View Article

Image may be NSFW.
Clik here to view.

Fraktalismus – my presentation at Dublin Maker 2016

A zip archive of my complete Fraktalismus folder (containing all the content for the presentation) can be download here: Fraktalismus.zip (93.9 MB) This is the code I used to create the Julia Set...

View Article

Image may be NSFW.
Clik here to view.

Fraktalismus Outtakes: Sea Monsters

Sea Creature 1 // // seacreature1.c - Creates a fractal "sea creature" // Written by Ted Burke, last updated 3-8-2016 // // gcc seacreature1.c -o seacreature1 -lm // ./seacreature1 // ffmpeg -framerate...

View Article
Browsing all 72 articles
Browse latest View live