Archive

Monthly Archives: November 2013

I’ve adapted some basic algorithms used in my Pong/Breakout game on the Teensy 2.0 MCU to control (what will eventually be) an RC car.  It currently has two ADC input channels and a serial connection which can be used to control the duty cycle of two PWM outputs.  These PWM outputs then are input into individual BJTs (base pin) which is connected to an external 9V battery for motor power supply (the 3.3V Teensy power supply doesn’t cut it).  Below is a picture of the user display and breadboard mess.

Photo 19-11-2013 10 38 56 am Photo 19-11-2013 10 38 38 am

The box in the far bottom right rises/lowers with the speed while the box to the left “turns” to indicate which direction the RC car will face.  The hope is to transmit data via an FM signal that indicates the speed and turning angle on a controller, while the serial connection will be used to send commands that stimulate a specific pre-programmed path that the RC car will follow.

One of the modules that I had to develop for an upcoming FPGA project was an LCD screen for general debugging.  The Xilinx Spartan 3E board can be seen below.

Photo 7-11-2013 1 23 27 am

The code of itself was heavily based directly off one of my supervisors tutorials, which utilises the on board PicoBlaze micro controller to interact directly with the LCD module.  The FPGA is used to bridge the micro controller and LCD module and to control all timing constraints.The FPGA was programmed in VHDL while the micro controller used a derivative of basic assembly code.  The program running can be seen in the video below.

Again I can’t share the source code as it’s strongly based off my supervisor’s tutorial and there are complications.